Verifier in Solidity#5
Open
jtcoolen wants to merge 19 commits into
Open
Conversation
Add a Keccak256 transcript hash implementation and update the challenge sampling path to use a single Keccak squeeze with big-endian scalar encoding.
3b29e2d to
35a5064
Compare
Switch the stdlib Poseidon example to the Keccak transcript path, add final-step IVC prove/verify coverage, and publish Solidity verifier fixtures for replay.
Separate verifier options for keeping instance and fold point sets so aggregation and circuit paths can tune verifier MSM length independently.
Expose native verifier trace points across PLONK, KZG, circuit accumulator checks, and transcript wiring so Solidity verifier replay can compare intermediate values.
Move the Solidity verifier generator into the Midfall workspace with codegen, templates, docs, fixtures, scripts, tests, and validated test-command documentation.
35a5064 to
cf89e5f
Compare
Author
With Opus 4.7 (Max settings) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira ticket: https://eyblockchain.atlassian.net/browse/GBRD-13?atlOrigin=eyJpIjoiNWEwMzA0YzBmYTQxNGM1ZmE5NmI1ODAzZWZkMzM4YzUiLCJwIjoiaiJ9
What this PR does
It introduces a Keccak transcript and instruments the verifier algorithm in Rust to record an execution trace with the values of intermediate variables.
It introduces a rust library
solidity-verifierunder theproofscrate that generates verifier contracts for a specific verifying key. The relevant documentation can be found in the Jira ticket and underproofs/solidity-verifier/docs, as well as inproofs/solidity-verifier/README.How to test this PR
Append the
--traceflag for the trace equivalence test.IVC example:
Generated contracts under
proofs/solidity-verifier/target/ivc-keccak-solidity-dump/Moonlight proof (ssumes the Moonlight checkout is available at
../Moonlightand is on branchcodex/wrap-bench-cherry-picks).Generated contracts under
proofs/solidity-verifier/target/moonlight-wrap-solidity-dump/PBT tests (located in
proofs/solidity-verifier/src/test.rs):