mirror of
https://github.com/arnaucube/Nova.git
synced 2026-02-01 08:46:39 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user