-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: Update to ACVM 0.12.0 (#1339)
* chore!: Update to ACVM 0.12.0 * feat: adapted to heterogeneous bb calls * chore: update cargo tomls * test: re enabled sort test * fix: improve variable resolution * feat: use dummy constructor for bb call * updates for latest * feat!: Move WitnessMap type into ACVM to avoid leaking BTreeMap type * feat(nargo): Consume CommonReferenceString functions & manage caching (#1348) * switch to published acvm and backend * fix compilation issue * chore: Remove usage of `acvm::default_is_opcode_supported` (#1366) Co-authored-by: Blaine Bublitz <[email protected]> Co-authored-by: Tom French <[email protected]> * add issue numbers to TODOs * chore: deduplicate driver setup logic * chore: clippy --------- Co-authored-by: sirasistant <[email protected]> Co-authored-by: Tom French <[email protected]> Co-authored-by: Tom French <[email protected]> Co-authored-by: Maxim Vezenov <[email protected]>
- Loading branch information
1 parent
a21b251
commit b938c7e
Showing
31 changed files
with
666 additions
and
393 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
use acvm::acir::circuit::Circuit; | ||
use acvm::acir::{circuit::Circuit, native_types::WitnessMap}; | ||
use acvm::ProofSystemCompiler; | ||
use noirc_abi::WitnessMap; | ||
|
||
pub fn prove_execution<B: ProofSystemCompiler>( | ||
backend: &B, | ||
common_reference_string: &[u8], | ||
circuit: &Circuit, | ||
solved_witness: WitnessMap, | ||
proving_key: &[u8], | ||
) -> Result<Vec<u8>, B::Error> { | ||
backend.prove_with_pk(circuit, solved_witness, proving_key) | ||
backend.prove_with_pk(common_reference_string, circuit, solved_witness, proving_key) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
use acvm::acir::circuit::Circuit; | ||
use acvm::acir::{circuit::Circuit, native_types::WitnessMap}; | ||
use acvm::ProofSystemCompiler; | ||
use noirc_abi::WitnessMap; | ||
|
||
pub fn verify_proof<B: ProofSystemCompiler>( | ||
backend: &B, | ||
common_reference_string: &[u8], | ||
circuit: &Circuit, | ||
proof: &[u8], | ||
public_inputs: WitnessMap, | ||
verification_key: &[u8], | ||
) -> Result<bool, B::Error> { | ||
backend.verify_with_vk(proof, public_inputs, circuit, verification_key) | ||
backend.verify_with_vk(common_reference_string, proof, public_inputs, circuit, verification_key) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.