-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: SP1VerifierGateway #7
Conversation
@@ -1,22 +1,16 @@ | |||
// SPDX-License-Identifier: MIT | |||
pragma solidity ^0.8.19; | |||
pragma solidity ^0.8.20; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: using sol 0.8.20 because that's what the OZ lib is on
|
||
/// @notice Hashes the public values to a field elements inside Bn254. | ||
/// @param publicValues The public values. | ||
function hashPublicValues(bytes calldata publicValues) public pure returns (bytes32) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw changes to this file and possibly others also need to be done in sp1/recursion/gnark-ffi/assets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bytes calldata publicValues, | ||
bytes calldata proofBytes | ||
) external view; | ||
} | ||
|
||
interface ISP1VerifierWithHash is ISP1Verifier { | ||
/// @notice Returns the hash of the verifier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should note that this is autogenerated by taking sha256 of the vkey file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
Routes proofs to the correct verifier.
Tests