-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added verifying functions and test cases on Summa contract
- Loading branch information
Showing
6 changed files
with
320 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.18; | ||
|
||
/** | ||
* @dev Zero-knowledge proof verifier | ||
*/ | ||
interface IInclusionVerifier { | ||
/** | ||
* @dev Verify a proof | ||
* @param vk The verification key | ||
* @param proof The proof | ||
* @param challenges The pre-calculated g2 points with challenge | ||
* @param values The user data that includes username, balance of currency 1 | ||
* @return true if the proof is valid, false otherwise | ||
*/ | ||
function verifyProof( | ||
address vk, | ||
bytes calldata proof, | ||
uint256[] calldata challenges, | ||
uint256[] calldata values | ||
) external view returns (bool); | ||
} |
Oops, something went wrong.