-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add verifier #127
Add verifier #127
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
985d460
to
eaf520d
Compare
3a4d5f8
to
2a13cf6
Compare
eaf520d
to
b9f9680
Compare
2a13cf6
to
bf35850
Compare
a88d74d
to
07a8ae3
Compare
f7e027d
to
c1e9f50
Compare
d3c1e26
to
8c88a6f
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: 29 of 31 files reviewed, 3 unresolved discussions (waiting on @Alon-Ti and @shaharsamocha7)
stwo_cairo_verifier/src/utils.cairo
line 218 at r1 (raw file):
Previously, shaharsamocha7 wrote…
Then I don't think we need this code.
To check if a code has at least x trailing bits you only need one AND opTODO maybe?
Funnily enough already had a TODO for it https://github.com/starkware-libs/stwo-cairo/pull/127/files#diff-ab0f3eb70a743b91de89fa4b965b564f1b175f2d254fd30703e7345eea5bf9caR141-R143.
Will implement it now though.
stwo_cairo_verifier/src/poly/circle.cairo
line 104 at r1 (raw file):
Previously, shaharsamocha7 wrote…
cool, should we document that?
In the Rust code? As in make it clear the shift is to shift the coset to a canonic coset?
stwo_cairo_verifier/tests/verifier.cairo
line 24 at r2 (raw file):
Previously, shaharsamocha7 wrote…
what's that?
We have a last layer bound?
Yeah I'm just saying it's a bug in Cairo to report. When you use this value at runtime log_last_layer_degree_bound
is 4 even though it is set to 5. Yes, degree bound for last FRI layer
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: 29 of 31 files reviewed, 1 unresolved discussion (waiting on @Alon-Ti and @andrewmilson)
stwo_cairo_verifier/src/poly/circle.cairo
line 104 at r1 (raw file):
Previously, andrewmilson (Andrew Milson) wrote…
In the Rust code? As in make it clear the shift is to shift the coset to a canonic coset?
I thought we should document here that for canonic cosets the shift is identity
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 31 files at r1.
Reviewable status: 30 of 31 files reviewed, 2 unresolved discussions (waiting on @Alon-Ti and @andrewmilson)
stwo_cairo_verifier/src/verifier.cairo
line 32 at r2 (raw file):
) -> Result<(), VerificationError> { let random_coeff = channel.draw_felt();
Please add a TODO to deal with preprocessed columns
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: 30 of 31 files reviewed, 4 unresolved discussions (waiting on @Alon-Ti and @andrewmilson)
a discussion (no related file):
We should split this pr
stwo_cairo_verifier/src/pcs/verifier.cairo
line 183 at r2 (raw file):
/// Returns all column log bounds deduped and sorted in ascending order. #[inline] fn get_column_log_bounds(
can this be replaced with a dict
Code quote:
fn get_column_log_bounds(
931481a
to
98c6afb
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: 24 of 31 files reviewed, 3 unresolved discussions (waiting on @Alon-Ti and @shaharsamocha7)
stwo_cairo_verifier/src/pcs/verifier.cairo
line 183 at r2 (raw file):
Previously, shaharsamocha7 wrote…
can this be replaced with a dict
Done.
stwo_cairo_verifier/src/poly/circle.cairo
line 104 at r1 (raw file):
Previously, shaharsamocha7 wrote…
I thought we should document here that for canonic cosets the shift is identity
Resolved offline.
stwo_cairo_verifier/Scarb.toml
line 22 at r1 (raw file):
Previously, shaharsamocha7 wrote…
remove
Done.
4dee40b
to
965f058
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 7 of 7 files at r3, 2 of 2 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Alon-Ti)
2b7ff04
to
bdf91e2
Compare
965f058
to
00bc50d
Compare
bdf91e2
to
9dbf239
Compare
00bc50d
to
97b4758
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: 24 of 31 files reviewed, all discussions resolved (waiting on @Alon-Ti and @shaharsamocha7)
a discussion (no related file):
Previously, shaharsamocha7 wrote…
We should split this pr
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 7 of 7 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Alon-Ti)
ce45560
to
6ed6d7d
Compare
97b4758
to
0db0be9
Compare
This change is