Skip to content

Commit

Permalink
prove and verify now just use a dummy pk and vk
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored and TomAFrench committed Aug 22, 2023
1 parent 18d6edc commit 3218e83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crates/nargo/src/ops/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ pub fn prove_execution<B: ProofSystemCompiler>(
solved_witness: WitnessMap,
) -> Result<Vec<u8>, B::Error> {
// TODO(#1569): update from not just accepting `false` once we get nargo to interop with dynamic backend
backend.prove_with_pk(common_reference_string, circuit, solved_witness, &Vec::new(), false)
// Nargo no longer handles logic related to proving/verifying with keys.
let proving_key = Vec::new();
backend.prove_with_pk(common_reference_string, circuit, solved_witness, &proving_key, false)
}
4 changes: 3 additions & 1 deletion crates/nargo/src/ops/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ pub fn verify_proof<B: ProofSystemCompiler>(
public_inputs: WitnessMap,
) -> Result<bool, B::Error> {
// TODO(#1569): update from not just accepting `false` once we get nargo to interop with dynamic backend
// Nargo no longer handles logic related to proving/verifying with keys.
let verification_key = Vec::new();
backend.verify_with_vk(
common_reference_string,
proof,
public_inputs,
circuit,
&Vec::new(),
&verification_key,
false,
)
}

0 comments on commit 3218e83

Please sign in to comment.