better measuring (#295)

This commit is contained in:
Eduard S. 2025-06-18 17:23:32 +02:00 committed by GitHub
parent 0541817116
commit df8fce76d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 40 additions and 21 deletions

View file

@ -224,8 +224,7 @@ pub struct MerkleProofExistenceTarget {
impl MerkleProofExistenceGadget {
/// creates the targets and defines the logic of the circuit
pub fn eval(&self, builder: &mut CircuitBuilder<F, D>) -> Result<MerkleProofExistenceTarget> {
let measure =
measure_gates_begin!(builder, format!("MerkleProofExistence_{}", self.max_depth));
let measure = measure_gates_begin!(builder, format!("MerkleProofExist_{}", self.max_depth));
let enabled = builder.add_virtual_bool_target_safe();
let root = builder.add_virtual_hash();
let key = builder.add_virtual_value();