-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify groth verifier contracts for better test-ability and extendabi…
…lity (#414) This PR does the following: * adds the `virtual` tag to several functions in `Groth16VerifierExtension.sol` - this allows us to override the functions in a parent contract, which makes it much easier to test. With these changes, we can test as much of the response codepath as possible without actually having to generate proofs. This will also make it easier to tweak or extend verification logic for specific chains. Ex on polygon (and in the future on scroll) we want to skip blockhash verification. This will be much easier to do once we have this setup. * moves `verifyBlockhash()` to it's own function. This is specifically for the `isCDK()` case where we want to override this function. * renames `verifier.sol` => `Verifier.sol` and `Groth16VerifierExtensions.sol` => `Groth16VerifierExtension.sol` for consistency with the contracts codebase * Changes the name of the `Query` contract to `Groth16VerifierExtension` for consistency
- Loading branch information
Showing
9 changed files
with
45 additions
and
22 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
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