Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
winderica committed Jan 10, 2025
1 parent 897ae2c commit 118d5f1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
7 changes: 4 additions & 3 deletions examples/circom_full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ fn main() -> Result<(), Error> {
let nova_preprocess_params = PreprocessorParam::new(poseidon_config, f_circuit.clone());
let nova_params = N::preprocess(&mut rng, &nova_preprocess_params)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) =
D::preprocess(&mut rng, (nova_params.clone(), f_circuit.state_len()))?;

// initialize the folding scheme engine, in our case we use Nova
let mut nova = N::init(&nova_params, f_circuit.clone(), z_0)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) = D::preprocess(&mut rng, nova_params.clone(), nova.clone())?;

// run n steps of the folding iteration
for (i, external_inputs_at_step) in external_inputs.iter().enumerate() {
let start = Instant::now();
Expand Down
7 changes: 4 additions & 3 deletions examples/full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ fn main() -> Result<(), Error> {
let nova_preprocess_params = PreprocessorParam::new(poseidon_config.clone(), f_circuit);
let nova_params = N::preprocess(&mut rng, &nova_preprocess_params)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) =
D::preprocess(&mut rng, (nova_params.clone(), f_circuit.state_len()))?;

// initialize the folding scheme engine, in our case we use Nova
let mut nova = N::init(&nova_params, f_circuit, z_0)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) = D::preprocess(&mut rng, nova_params, nova.clone())?;

// run n steps of the folding iteration
for i in 0..n_steps {
let start = Instant::now();
Expand Down
7 changes: 4 additions & 3 deletions examples/noir_full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ fn main() -> Result<(), Error> {
let nova_preprocess_params = PreprocessorParam::new(poseidon_config, f_circuit.clone());
let nova_params = N::preprocess(&mut rng, &nova_preprocess_params)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) =
D::preprocess(&mut rng, (nova_params.clone(), f_circuit.state_len()))?;

// initialize the folding scheme engine, in our case we use Nova
let mut nova = N::init(&nova_params, f_circuit.clone(), z_0)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) = D::preprocess(&mut rng, nova_params.clone(), nova.clone())?;

// run n steps of the folding iteration
for i in 0..5 {
let start = Instant::now();
Expand Down
7 changes: 4 additions & 3 deletions examples/noname_full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ fn main() -> Result<(), Error> {
let nova_preprocess_params = PreprocessorParam::new(poseidon_config, f_circuit.clone());
let nova_params = N::preprocess(&mut rng, &nova_preprocess_params)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) =
D::preprocess(&mut rng, (nova_params.clone(), f_circuit.state_len()))?;

// initialize the folding scheme engine, in our case we use Nova
let mut nova = N::init(&nova_params, f_circuit.clone(), z_0)?;

// prepare the Decider prover & verifier params
let (decider_pp, decider_vp) = D::preprocess(&mut rng, nova_params.clone(), nova.clone())?;

// run n steps of the folding iteration
for (i, external_inputs_at_step) in external_inputs.iter().enumerate() {
let start = Instant::now();
Expand Down

0 comments on commit 118d5f1

Please sign in to comment.