Skip to content

Commit

Permalink
solve conflicts (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpaulino authored Jul 17, 2023
1 parent 409b8ed commit e4e4309
Show file tree
Hide file tree
Showing 15 changed files with 801 additions and 177 deletions.
162 changes: 162 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ bellperson = { workspace = true }
bincode = { workspace = true }
blstrs = { workspace = true }
clap = { version = "4.3.10", features = ["derive"] }
config = "0.13.3"
dashmap = "5.4.0"
ff = { workspace = true }
generic-array = "0.14.6"
Expand Down
10 changes: 5 additions & 5 deletions benches/end2end.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ fn prove_benchmark(c: &mut Criterion) {

b.iter(|| {
let result = prover
.prove(&pp, frames.clone(), &mut store, lang_pallas_rc.clone())
.prove(&pp, &frames, &mut store, lang_pallas_rc.clone())
.unwrap();
black_box(result);
})
Expand Down Expand Up @@ -307,13 +307,13 @@ fn verify_benchmark(c: &mut Criterion) {
.get_evaluation_frames(ptr, empty_sym_env(&store), &mut store, limit, &lang_pallas)
.unwrap();
let (proof, z0, zi, num_steps) = prover
.prove(&pp, frames, &mut store, lang_pallas_rc.clone())
.prove(&pp, &frames, &mut store, lang_pallas_rc.clone())
.unwrap();

b.iter_batched(
|| z0.clone(),
|z0| {
let result = proof.verify(&pp, num_steps, z0, &zi[..]).unwrap();
let result = proof.verify(&pp, num_steps, &z0, &zi[..]).unwrap();
black_box(result);
},
BatchSize::LargeInput,
Expand Down Expand Up @@ -352,7 +352,7 @@ fn verify_compressed_benchmark(c: &mut Criterion) {
.get_evaluation_frames(ptr, empty_sym_env(&store), &mut store, limit, &lang_pallas)
.unwrap();
let (proof, z0, zi, num_steps) = prover
.prove(&pp, frames, &mut store, lang_pallas_rc.clone())
.prove(&pp, &frames, &mut store, lang_pallas_rc.clone())
.unwrap();

let compressed_proof = proof.compress(&pp).unwrap();
Expand All @@ -361,7 +361,7 @@ fn verify_compressed_benchmark(c: &mut Criterion) {
|| z0.clone(),
|z0| {
let result = compressed_proof
.verify(&pp, num_steps, z0, &zi[..])
.verify(&pp, num_steps, &z0, &zi[..])
.unwrap();
black_box(result);
},
Expand Down
2 changes: 1 addition & 1 deletion benches/fibonacci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn fibo_prove<M: measurement::Measurement>(name: &str, iterations: u64, c: &mut
b.iter_batched(
|| (frames.clone(), lang_rc.clone()), // avoid cloning the frames in the benchmark
|(frames, lang_rc)| {
let result = prover.prove(&pp, frames, &mut store, lang_rc).unwrap();
let result = prover.prove(&pp, &frames, &mut store, lang_rc).unwrap();
black_box(result);
},
BatchSize::LargeInput,
Expand Down
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ allow = [
"CC0-1.0",
"Apache-2.0",
"Unicode-DFS-2016",
"ISC",
]
# List of explicitly disallowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
Expand Down
2 changes: 1 addition & 1 deletion examples/sha256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ fn main() {
println!("Verifying proof...");

let verify_start = Instant::now();
let res = proof.verify(&pp, num_steps, z0, &zi).unwrap();
let res = proof.verify(&pp, num_steps, &z0, &zi).unwrap();
let verify_end = verify_start.elapsed();

println!("Verify took {:?}", verify_end);
Expand Down
2 changes: 1 addition & 1 deletion fcomm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ impl<'a> Proof<'a, S1> {
let verified = claim_iterations_and_num_steps_are_consistent
&& self
.proof
.verify(pp, self.num_steps, public_inputs, &public_outputs)
.verify(pp, self.num_steps, &public_inputs, &public_outputs)
.expect("error verifying");

let result = VerificationResult::new(verified);
Expand Down
Loading

0 comments on commit e4e4309

Please sign in to comment.