-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add nargo contract command to nargo tests * verifier contract tests passing * commit latests * remove calldata print line * change fr::from_raw() to fr::from() * add second public input test with array * update pse to acvm v 0.22 * pse uses new circuit api input to compute number of public inputs * zcash updated to acm 0.22 * axiom (all) updated to acvm v0.22 * fmt/clippy * update test utilities & programs to be compatible with newest noir/ acvm * bump down to acvm 0.18.1 with cherrypicked commit 2bc7d25 to support eth_contract_from_vk without changing memory opcodes (breaks functions and arrays) * integration tests for pse working except for evm * all unit tests working except for evm tests >:( * remove if false for failing tests * update wasm * should pass all actions * fix if * add solc install to action * add poseidon * crs * downgrade solc in ci to compatible version with snark verifier * ci should pass now --------- Co-authored-by: Ian-Bright <[email protected]>
- Loading branch information
1 parent
6c76a1f
commit 6374c93
Showing
44 changed files
with
415 additions
and
193 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
use acvm::{acir::FieldElement, BlackBoxFunctionSolver, BlackBoxResolutionError}; | ||
|
||
use crate::AxiomHalo2; | ||
use acvm::{acir::native_types::Witness, pwg::OpcodeResolutionError, PartialWitnessGenerator}; | ||
|
||
impl PartialWitnessGenerator for AxiomHalo2 { | ||
impl BlackBoxFunctionSolver for AxiomHalo2 { | ||
fn schnorr_verify( | ||
&self, | ||
_initial_witness: &mut acvm::acir::native_types::WitnessMap, | ||
_public_key_x: &acvm::acir::circuit::opcodes::FunctionInput, | ||
_public_key_y: &acvm::acir::circuit::opcodes::FunctionInput, | ||
_signature: &[acvm::acir::circuit::opcodes::FunctionInput], | ||
_message: &[acvm::acir::circuit::opcodes::FunctionInput], | ||
_output: &Witness, | ||
) -> Result<acvm::pwg::OpcodeResolution, OpcodeResolutionError> { | ||
todo!() | ||
_public_key_x: &FieldElement, | ||
_public_key_y: &FieldElement, | ||
_signature: &[u8], | ||
_message: &[u8], | ||
) -> Result<bool, BlackBoxResolutionError> { | ||
Err(BlackBoxResolutionError::Unsupported(acvm::acir::BlackBoxFunc::SchnorrVerify)) | ||
} | ||
|
||
fn pedersen( | ||
&self, | ||
_initial_witness: &mut acvm::acir::native_types::WitnessMap, | ||
_inputs: &[acvm::acir::circuit::opcodes::FunctionInput], | ||
_inputs: &[FieldElement], | ||
_domain_separator: u32, | ||
_outputs: &[Witness], | ||
) -> Result<acvm::pwg::OpcodeResolution, OpcodeResolutionError> { | ||
todo!() | ||
) -> Result<(FieldElement, FieldElement), BlackBoxResolutionError> { | ||
Err(BlackBoxResolutionError::Unsupported(acvm::acir::BlackBoxFunc::Pedersen)) | ||
} | ||
|
||
fn fixed_base_scalar_mul( | ||
&self, | ||
_initial_witness: &mut acvm::acir::native_types::WitnessMap, | ||
_input: &acvm::acir::circuit::opcodes::FunctionInput, | ||
_outputs: &[Witness], | ||
) -> Result<acvm::pwg::OpcodeResolution, OpcodeResolutionError> { | ||
todo!() | ||
_input: &FieldElement, | ||
) -> Result<(FieldElement, FieldElement), BlackBoxResolutionError> { | ||
Err(BlackBoxResolutionError::Unsupported(acvm::acir::BlackBoxFunc::FixedBaseScalarMul)) | ||
} | ||
} |
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.