-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update stwo and fix changes. #11
Conversation
10914d6
to
21185a0
Compare
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.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @alonh5)
stwo_cairo_prover/src/components/range_check_unit.rs
line 124 at r1 (raw file):
let mut last = SecureField::zero(); let interaction_values = zip_eq(&trace[0].values, &trace[1].values).fold(
Does it sum it in the bit_reverse order?
Also consider to rename
Suggestion:
let logup_values = zip_eq(&trace[0].values, &trace[1].values).fold(
stwo_cairo_prover/src/components/range_check_unit.rs
line 126 at r1 (raw file):
let interaction_values = zip_eq(&trace[0].values, &trace[1].values).fold( Vec::new(), |mut acc, (trace_value, multiplicity)| {
Rename
Suggestion:
|mut acc, (interaction_input, multiplicity)| {
stwo_cairo_prover/src/components/range_check_unit.rs
line 127 at r1 (raw file):
Vec::new(), |mut acc, (trace_value, multiplicity)| { let interaction_value = last + ((z - *trace_value).inverse() * *multiplicity);
Add a TODO to optimize this inverse
Code quote:
let interaction_value = last + ((z - *trace_value).inverse() * *multiplicity);
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)
stwo_cairo_prover/src/components/range_check_unit.rs
line 126 at r1 (raw file):
Previously, shaharsamocha7 wrote…
Rename
Done.
stwo_cairo_prover/src/components/range_check_unit.rs
line 127 at r1 (raw file):
Previously, shaharsamocha7 wrote…
Add a TODO to optimize this inverse
It's simple I did it here.
73fe30d
to
0c40555
Compare
f0cafe5
to
50d373e
Compare
0c40555
to
9a64b0a
Compare
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @alonh5)
9a64b0a
to
0ac1cf2
Compare
`
This change is