Skip to content

Commit

Permalink
o1vm/pickles/main: adding timer info for the verification
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Oct 31, 2024
1 parent acacb9d commit b2b1184
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions o1vm/src/pickles/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,19 @@ pub fn main() -> ExitCode {
"Proof generated in {elapsed} μs",
elapsed = start_iteration.elapsed().as_micros()
);
let verif = verifier::verify::<
Vesta,
DefaultFqSponge<VestaParameters, PlonkSpongeConstantsKimchi>,
DefaultFrSponge<Fp, PlonkSpongeConstantsKimchi>,
>(domain_fp, &srs, &constraints, &proof);
assert!(verif);
{
let start_iteration = Instant::now();
let verif = verifier::verify::<
Vesta,
DefaultFqSponge<VestaParameters, PlonkSpongeConstantsKimchi>,
DefaultFrSponge<Fp, PlonkSpongeConstantsKimchi>,
>(domain_fp, &srs, &constraints, &proof);
debug!(
"Verification done in {elapsed} μs",
elapsed = start_iteration.elapsed().as_micros()
);
assert!(verif);
}

curr_proof_inputs = ProofInputs::new(DOMAIN_SIZE);
}
Expand Down

0 comments on commit b2b1184

Please sign in to comment.