Optimizations (#100)

* avoid creating commitments to zero vectors

* reduce the number of constraints in each iteration from 4 to 3
This commit is contained in:
Srinath Setty
2022-07-27 14:07:44 -07:00
committed by GitHub
parent 3dc26fd7e4
commit 06192ac3d4
6 changed files with 51 additions and 10 deletions

View File

@@ -135,6 +135,14 @@ where
self.r1cs_shape_secondary.num_cons,
)
}
/// Returns the number of variables in the primary and secondary circuits
pub fn num_variables(&self) -> (usize, usize) {
(
self.r1cs_shape_primary.num_vars,
self.r1cs_shape_secondary.num_vars,
)
}
}
/// A SNARK that proves the correct execution of an incremental computation