-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Handle aux boundary values #33
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: Handle aux boundary values #33
Conversation
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.
Looks great!
As you said, it would be great to add support for variable-length public inputs.
A couple of things worth thinking about:
- Since we are focusing on the Miden use-case for now, should we make the addition of the boundary constraints, using the provided boundary values, automatic ?
- I believe we should include the values sent by the prover to the verifier into the Fiat-Shamir transcript.
- The equality check is not necessary for soundness, at least in the current setup, as long as we have the boundary constraints from point 1 above.
|
Hi @Al-Kindi-0, putting it in review as I now have:
This is already handled in the AirScript codegen: for each bus, two constraints are automatically included in the graph:
I'll check what can be done in the prover / verifier side. |
|
Hello again @Al-Kindi-0
I have not yet put it on the branch of this PR, but could you look at this commit: 0a5752b It basically wraps the I've tested it in AirScript and it works well (in the Some caveats is that we could have duplicated constraints (so we would need to remove the boundary handling from the codegen). What do you think? |
adr1anh
left a comment
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.
Looks good!
Al-Kindi-0
left a comment
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.
Looks great, thank you Leo!
Left a few questions and nits (but I think I found the answer by the end of the review for the most important one)
This PR aims to close #17.
It adds the access of aux final values in the MidenAirBuilder.
Currently, the tests in Plonky3 fails as the
FibPermAirAir is not built on the same assumptions than the AirScript codegen.Notes:
This means that it should not be needed to commit to the values. If the prover lies on values it provides, the constraints should not be verified.