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.
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
Zw/recursion constraint reduction #377
Zw/recursion constraint reduction #377
Changes from 6 commits
cee6505
4e86e8f
a42e104
a996cdb
1a8e781
a24bc4c
514c974
8c0107e
8185307
0fb9f9a
ab94f8c
332bdd1
9cfb73d
bb44578
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
TODO: clearer to make this a struct.
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.
Sanity check: these are witness indices, so the multiplications being removed really are duplicates. ✔️.
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.
TODO: name and description of
evaluate_non_native_field_multiplication
are no longer correct.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.
Eliminate duplicates by shifting unique entries back to toward the beginning of the vector, then returns a pointer to the first element of the vector past the last unique element ✔️.
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.
Each
return
is a way in which we can see thatthis
andother
are different.cross_terms
entry is determined by a static formula ina, b, q, r
, hence there is no need to compare these. In case the formula were computed in a dynamic way, we'd have an issue here, but it's not worth worrying about that now.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.
TODO: comment describing
split
is incorrect. The function splitselement
and inserts it intoelement_buffer
, usingworking_element
as an auxiliary field element to accomplish this.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.
This block of code only executes for
num_challenges > 2
, which (currently) only happens in thenu
round when we need to generate short scalars. In this case, we generate 32-byte challenges and split them in half to get the relevant challenges.