-
Notifications
You must be signed in to change notification settings - Fork 0
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: arbitrary sized circuits #95
Conversation
fab752c
to
69ebdd7
Compare
// both should be 0 or 1 together | ||
signal is_new_state_digest_zero <== IsEqual()([new_state_digest, 0]); | ||
signal is_step_out_zero_matched <== IsEqual()([step_out[0], value_digest]); | ||
0 === is_new_state_digest_zero - is_step_out_zero_matched; // verify final value matches |
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.
👍
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.
I am quite familiar with most of these changes and the tests of the circom circuits seem to imply this is functioning correctly as far as we can tell. Likewise, it is working with the Rust witness generation tooling.
I have no issue merging this. It has my greenlight.
closes #90
TODO:
circuit diagram: https://miro.com/app/board/uXjVLVedPM8=/
