|
@ -404,10 +404,7 @@ mod tests { |
|
|
let mut cs: ShapeCS<G1> = ShapeCS::new();
|
|
|
let mut cs: ShapeCS<G1> = ShapeCS::new();
|
|
|
let _ = circuit1.synthesize(&mut cs);
|
|
|
let _ = circuit1.synthesize(&mut cs);
|
|
|
let (shape1, gens1) = (cs.r1cs_shape(), cs.r1cs_gens());
|
|
|
let (shape1, gens1) = (cs.r1cs_shape(), cs.r1cs_gens());
|
|
|
println!(
|
|
|
|
|
|
"Circuit1 -> Number of constraints: {}",
|
|
|
|
|
|
cs.num_constraints()
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
assert_eq!(cs.num_constraints(), 20584);
|
|
|
|
|
|
|
|
|
// Initialize the shape and gens for the secondary
|
|
|
// Initialize the shape and gens for the secondary
|
|
|
let circuit2: NIFSVerifierCircuit<G1, TestCircuit<<G1 as Group>::Base>> =
|
|
|
let circuit2: NIFSVerifierCircuit<G1, TestCircuit<<G1 as Group>::Base>> =
|
|
@ -422,10 +419,7 @@ mod tests { |
|
|
let mut cs: ShapeCS<G2> = ShapeCS::new();
|
|
|
let mut cs: ShapeCS<G2> = ShapeCS::new();
|
|
|
let _ = circuit2.synthesize(&mut cs);
|
|
|
let _ = circuit2.synthesize(&mut cs);
|
|
|
let (shape2, gens2) = (cs.r1cs_shape(), cs.r1cs_gens());
|
|
|
let (shape2, gens2) = (cs.r1cs_shape(), cs.r1cs_gens());
|
|
|
println!(
|
|
|
|
|
|
"Circuit2 -> Number of constraints: {}",
|
|
|
|
|
|
cs.num_constraints()
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
assert_eq!(cs.num_constraints(), 21124);
|
|
|
|
|
|
|
|
|
// Execute the base case for the primary
|
|
|
// Execute the base case for the primary
|
|
|
let zero1 = <<G2 as Group>::Base as Field>::zero();
|
|
|
let zero1 = <<G2 as Group>::Base as Field>::zero();
|
|
|