Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
XuyangSong committed Aug 18, 2023
1 parent 4d887a9 commit eb3a0e2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions taiga_halo2/benches/vp_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use pasta_curves::pallas;
use rand::rngs::OsRng;
use rand::Rng;
use taiga_halo2::{
circuit::{vp_circuit::ValidityPredicateInfo, vp_examples::TrivialValidityPredicateCircuit},
circuit::{vp_circuit::ValidityPredicateCircuit, vp_examples::TrivialValidityPredicateCircuit},
constant::{NUM_NOTE, SETUP_PARAMS_MAP},
note::{Note, NoteType, RandomSeed},
nullifier::{Nullifier, NullifierKeyContainer},
Expand Down Expand Up @@ -87,7 +87,8 @@ fn bench_vp_proof(name: &str, c: &mut Criterion) {
vp_circuit.clone(),
&[public_inputs.inner()],
&mut rng,
);
)
.unwrap();
})
});

Expand All @@ -105,9 +106,9 @@ fn bench_vp_proof(name: &str, c: &mut Criterion) {
let verifier_name = name.to_string() + "-verifier";
c.bench_function(&verifier_name, |b| {
b.iter(|| {
proof
assert!(proof
.verify(pk.get_vk(), &params, &[public_inputs.inner()])
.is_ok();
.is_ok());
})
});
}
Expand Down

0 comments on commit eb3a0e2

Please sign in to comment.