chore: add helper

This commit is contained in:
Georgios Konstantopoulos
2020-03-23 10:02:07 +02:00
committed by Pratyush Mishra
parent 951a6226c9
commit 695df979b5

View File

@@ -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 {