mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-12 09:01:28 +01:00
spark-based commitments to R1CS matrices (#152)
* spark-based commitments to R1CS matrices * small fixes
This commit is contained in:
@@ -975,8 +975,7 @@ mod tests {
|
||||
let mut cs: ShapeCS<G2> = ShapeCS::new();
|
||||
let _ = synthesize_smul::<G1, _>(cs.namespace(|| "synthesize"));
|
||||
println!("Number of constraints: {}", cs.num_constraints());
|
||||
let shape = cs.r1cs_shape();
|
||||
let ck = cs.commitment_key();
|
||||
let (shape, ck) = cs.r1cs_shape();
|
||||
|
||||
// Then the satisfying assignment
|
||||
let mut cs: SatisfyingAssignment<G2> = SatisfyingAssignment::new();
|
||||
@@ -1017,8 +1016,7 @@ mod tests {
|
||||
let mut cs: ShapeCS<G2> = ShapeCS::new();
|
||||
let _ = synthesize_add_equal::<G1, _>(cs.namespace(|| "synthesize add equal"));
|
||||
println!("Number of constraints: {}", cs.num_constraints());
|
||||
let shape = cs.r1cs_shape();
|
||||
let ck = cs.commitment_key();
|
||||
let (shape, ck) = cs.r1cs_shape();
|
||||
|
||||
// Then the satisfying assignment
|
||||
let mut cs: SatisfyingAssignment<G2> = SatisfyingAssignment::new();
|
||||
@@ -1063,8 +1061,7 @@ mod tests {
|
||||
let mut cs: ShapeCS<G2> = ShapeCS::new();
|
||||
let _ = synthesize_add_negation::<G1, _>(cs.namespace(|| "synthesize add equal"));
|
||||
println!("Number of constraints: {}", cs.num_constraints());
|
||||
let shape = cs.r1cs_shape();
|
||||
let ck = cs.commitment_key();
|
||||
let (shape, ck) = cs.r1cs_shape();
|
||||
|
||||
// Then the satisfying assignment
|
||||
let mut cs: SatisfyingAssignment<G2> = SatisfyingAssignment::new();
|
||||
|
||||
Reference in New Issue
Block a user