-
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
QM31 #4
QM31 #4
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @spapinistarkware and the rest of your teammates on Graphite |
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 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @spapinistarkware)
stwo_cairo_verifier/src/fields/qm31.cairo
line 16 at r1 (raw file):
#[generate_trait] impl QM31Impl of QM31Trait { fn inverse(self: QM31) -> QM31 {
should fail on zero. Is it ok to ignore that?
Code quote:
fn inverse(self: QM31) -> QM31 {
stwo_cairo_verifier/src/fields/qm31.cairo
line 70 at r1 (raw file):
pub impl CM31IntoQM31 of core::traits::Into<CM31, QM31> { fn into(self: CM31) -> QM31 { QM31 { a: self, b: core::num::traits::zero::Zero::zero() }
Suggestion:
b: Zero::zero()
3552bc8
to
ffa3b7b
Compare
ef59d12
to
1efae97
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @shaharsamocha7)
stwo_cairo_verifier/src/fields/qm31.cairo
line 16 at r1 (raw file):
Previously, shaharsamocha7 wrote…
should fail on zero. Is it ok to ignore that?
Done.
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 4 of 4 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @spapinistarkware)
stwo_cairo_verifier/src/fields/cm31.cairo
line 12 at r2 (raw file):
pub impl CM31Impl of CM31Trait { fn inverse(self: CM31) -> CM31 { assert_ne!(self, core::num::traits::Zero::zero());
Consider
Suggestion:
assert_ne!(self, Zero::zero());
1efae97
to
1e2fe3a
Compare
a86e564
into
spapini/05-09-merkleverifier
This change is