Browse Source

chore: add helper

master
Georgios Konstantopoulos 4 years ago
committed by Pratyush Mishra
parent
commit
695df979b5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      r1cs-std/src/test_constraint_counter.rs

+ 4
- 0
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<ConstraintF: Field> ConstraintSystem<ConstraintF> for TestConstraintCounter {

Loading…
Cancel
Save