Draft
Conversation
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.
This PR introduces functionality for proof aggregation and quote parsing.
Please note that, as a proof of concept, we are currently using the AggregationCircuit from the Scroll fork (pse). The next step will involve migrating the AggregationCircuit to the Clique fork, which will allow us to consolidate our tools into a single Halo2 toolchain.
The functionality for parsing Dcap Quotes has been translated from a Solidity implementation to extract the certificates.
Extracting Certificates from a Quote
Execute the following command to extract certificates from a quote:
Generating a Verifier
To generate a verifier, use the command below. The EVM bytecode will be generated and saved to
target/release/ZkVerifier.bin:Verifying Quote Certificates
Run the following command to parse the quote, generate a proof, and perform verification locally:
Gas Consumption Analysis
Solidity native secp256r1 verification: ~330k
Verifying Multiple Signatures in a Single Circuit
Aggregating Multiple Circuits to an AggregationCircuit:
TODO
Related: #1