diff --git a/r1cs-std/src/test_constraint_counter.rs b/r1cs-std/src/test_constraint_counter.rs index 6fc4c72..78e6883 100644 --- a/r1cs-std/src/test_constraint_counter.rs +++ b/r1cs-std/src/test_constraint_counter.rs @@ -17,6 +17,10 @@ impl TestConstraintCounter { num_constraints: 0, } } + + pub fn num_constraints(&self) -> usize { + self.num_constraints + } } impl ConstraintSystem for TestConstraintCounter {