forked from visoftsolutions/noir_rs
-
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.
chore(dsl): Abstract nested aggregation object from ACIR (AztecProtoc…
…ol#3765) The nested aggregation object in a RecursionConstraint is currently not used at the Noir level at all. We want to enable having the user specify whether the proof they want to verify is itself a recursive proof, but we also do not want to have an explicit field on the opcode determining this as this would be a barretenberg leakage into the ACVM recursion opcode. We instead move to having the `proof` field in the recursion constraint adhere to a barretenberg specific structure, where the expected proof should be stripped of its public inputs, except in the case where we have a nested proof. When setting up the barretenberg circuit from ACIR we can then determine how the `nested_aggregation_object` constant indices should be set from the size of the proof object. Until the recursive verifier can move to an implementation where the nested aggregation object does not have to be a circuit constant we need the user to specify whether they want to aggregation over a nested proof. If we move to not requiring these circuit constants we can have the proof inputs to the recursive aggregation builtin be the same for both use cases. # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist). --------- Co-authored-by: kevaundray <kevtheappdev@gmail.com>
- Loading branch information
1 parent
e6c9129
commit fee1130
Showing
4 changed files
with
92 additions
and
34 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