Skip to content

Commit 54271eb

Browse files
authored
Add integration with Noir verifiers (#28)
* Added integration with Noir verifiers * Clean up tests and deployment scripts * Updated .gitgnore * Refactored the Registration 3 * Refactored registration2 * Updated versions in package.json * Resolved comments after review * Cleaned up the project * Cleaned up deployment scripts * Added deployment script for rarimo-dev network
1 parent ed7ea4b commit 54271eb

File tree

17 files changed

+7991
-6258
lines changed

17 files changed

+7991
-6258
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ generated-types
1313

1414
# Hardhat migrate
1515
.storage.json
16+
17+
# Custom deployments
18+
deploy/noir-verifier
19+
deploy/update-verifier
20+
deploy/upgrade-registration
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.21;
3+
4+
interface INoirVerifier {
5+
/**
6+
* @notice Returns the hash of the verification key used by this contract.
7+
* @return The 32-byte verification key hash.
8+
*/
9+
function getVerificationKeyHash() external pure returns (bytes32);
10+
11+
/**
12+
* @notice Verify a Ultra Plonk proof.
13+
* @param _proof The serialized proof data.
14+
* @param _publicInputs An array of the public inputs for the proof.
15+
* @return True if the proof is valid, reverts otherwise.
16+
*/
17+
function verify(
18+
bytes calldata _proof,
19+
bytes32[] calldata _publicInputs
20+
) external view returns (bool);
21+
}

contracts/passport/verifiers/PUniversal2048Verifier.sol

Lines changed: 0 additions & 225 deletions
This file was deleted.

0 commit comments

Comments
 (0)