Skip to content

Commit

Permalink
more example fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed Dec 20, 2024
1 parent 017490b commit 77ffdcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/aggregation/script/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ fn main() {
let proof_1 = tracing::info_span!("generate fibonacci proof n=10").in_scope(|| {
let mut stdin = SP1Stdin::new();
stdin.write(&10);
client.prove(&fibonacci_pk, stdin).compressed().run().expect("proving failed")
client.prove(&fibonacci_pk, &stdin).compressed().run().expect("proving failed")
});
let proof_2 = tracing::info_span!("generate fibonacci proof n=20").in_scope(|| {
let mut stdin = SP1Stdin::new();
stdin.write(&20);
client.prove(&fibonacci_pk, stdin).compressed().run().expect("proving failed")
client.prove(&fibonacci_pk, &stdin).compressed().run().expect("proving failed")
});
let proof_3 = tracing::info_span!("generate fibonacci proof n=30").in_scope(|| {
let mut stdin = SP1Stdin::new();
stdin.write(&30);
client.prove(&fibonacci_pk, stdin).compressed().run().expect("proving failed")
client.prove(&fibonacci_pk, &stdin).compressed().run().expect("proving failed")
});

// Setup the inputs to the aggregation program.
Expand Down Expand Up @@ -76,6 +76,6 @@ fn main() {
}

// Generate the plonk bn254 proof.
client.prove(&aggregation_pk, stdin).plonk().run().expect("proving failed");
client.prove(&aggregation_pk, &stdin).plonk().run().expect("proving failed");
});
}

0 comments on commit 77ffdcb

Please sign in to comment.