Przeglądaj źródła

removed unneeded constraint

narodnik 5 lat temu
rodzic
commit
b022fadcf9
1 zmienionych plików z 0 dodań i 12 usunięć
  1. 0 12
      src/basic_minimal.rs

+ 0 - 12
src/basic_minimal.rs

@@ -41,18 +41,6 @@ impl Circuit<bls12_381::Scalar> for MyCircuit {
             },
         )?;
 
-        let coeff = bls12_381::Scalar::one();
-        let lc0 = bellman::LinearCombination::zero() + (coeff, x_var);
-        let lc1 = bellman::LinearCombination::zero() + (coeff, CS::one());
-        let lc2 = bellman::LinearCombination::zero() + (coeff, x_var);
-
-        cs.enforce(
-            || "multiplication constraint",
-            |_| lc0,
-            |_| lc1,
-            |_| lc2,
-        );
-
         // x2 = x * x
 
         let x2_var = cs.alloc(