-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switches to UltraHonk by default. Introduces `flavor` config variable. Supported values are `ultra_keccak_honk` (default), `ultra_plonk` or both as an array. Solidity verifiers are generated according to the `flavor` set in the config. Minimum supported bb.js version is 0.67.0 due to `ultra_keccak_honk` proof generation introduction only in that version: AztecProtocol/aztec-packages#10489.
- Loading branch information
Showing
8 changed files
with
192 additions
and
40 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
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
16 changes: 11 additions & 5 deletions
16
test/fixture-projects/hardhat-project/contracts/MyContract.sol
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,18 @@ | ||
// SPDX-License-Identifier: SEE LICENSE IN LICENSE | ||
pragma solidity ^0.8.27; | ||
|
||
import {UltraVerifier} from "../noir2/target/my_circuit.sol"; | ||
import {HonkVerifier} from "../noir2/target/my_circuit.sol"; | ||
|
||
contract MyContract { | ||
UltraVerifier public verifier; | ||
HonkVerifier public verifier = new HonkVerifier(); | ||
|
||
constructor(UltraVerifier _verifier) { | ||
verifier = _verifier; | ||
} | ||
function verify( | ||
bytes calldata proof, | ||
uint256 y | ||
) external view returns (bool) { | ||
bytes32[] memory publicInputs = new bytes32[](1); | ||
publicInputs[0] = bytes32(y); | ||
bool result = verifier.verify(proof, publicInputs); | ||
return result; | ||
} | ||
} |
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