-
Notifications
You must be signed in to change notification settings - Fork 180
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
Fix partition hashing #338
Conversation
air/src/options.rs
Outdated
/// Returns the size of each partition used when committing to the main and auxiliary traces as | ||
/// well as the constraint evaluation trace. | ||
pub fn partition_size<E: FieldElement>(&self, num_columns: usize) -> usize { |
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.
Would be good to clarify in the comment that the returned number of columns is the number in the field E
(rather than the base field of E
).
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.
Agreed, added
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! Thank you! I left one small comment inline. Also, could we rebase this on the main
branch?
I have now changed the base to |
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.
All looks good! Thank you!
This is a small fix for the condition under which partitioned hashing when committing is enabled.