Skip to content

Commit

Permalink
make prove_verify test more fun
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenciak committed Mar 1, 2024
1 parent 2cda39c commit aab52fa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/cyclefold/snark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ mod test {
}

fn test_trivial_cyclefold_prove_verify_with<E: CurveCycleEquipped>() {
let num_steps = 1;
let primary_circuit = SquareCircuit::<E::Scalar> { _p: PhantomData };

let pp = PublicParams::<E>::setup(&primary_circuit, &*default_ck_hint(), &*default_ck_hint());
Expand All @@ -575,7 +574,15 @@ mod test {

res.unwrap();

let res = recursive_snark.verify(&pp, num_steps, &z0);
let res = recursive_snark.verify(&pp, 1, &z0);

res.unwrap();

let res = recursive_snark.prove_step(&pp, &primary_circuit);

res.unwrap();

let res = recursive_snark.verify(&pp, 2, &z0);

res.unwrap();
}
Expand Down

0 comments on commit aab52fa

Please sign in to comment.