-
Notifications
You must be signed in to change notification settings - Fork 89
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
Separate verify #721
Separate verify #721
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @spapinistarkware and the rest of your teammates on Graphite |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #721 +/- ##
==========================================
+ Coverage 90.56% 90.60% +0.04%
==========================================
Files 76 76
Lines 10153 10274 +121
Branches 10153 10274 +121
==========================================
+ Hits 9195 9309 +114
- Misses 876 884 +8
+ Partials 82 81 -1 ☔ View full report in Codecov by Sentry. |
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 r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @spapinistarkware)
crates/prover/src/core/prover/mod.rs
line 195 at r1 (raw file):
); prove_without_commit(
and change prove to be commit_and_prove
.
Also in verifier.
Suggestion:
prove
crates/prover/src/core/prover/mod.rs
line 206 at r1 (raw file):
pub fn verify( proof: StarkProof, air: &(impl Air + AirTraceVerifier),
To be symmetric with prove
.
Suggestion:
air: &AirTraceVerifier,
072ad92
to
210bc34
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: 0 of 14 files reviewed, 1 unresolved discussion (waiting on @alonh5)
crates/prover/src/core/prover/mod.rs
line 206 at r1 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
To be symmetric with
prove
.
A bit harder, but went an extra step towards there. And added a TODO.
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 6 of 11 files at r3, 8 of 8 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @spapinistarkware)
crates/prover/src/core/prover/mod.rs
line 79 at r4 (raw file):
let interaction_elements = air.interaction_elements(channel); let interaction_trace = air.interact(&trace, &interaction_elements); if !interaction_elements.is_empty() {
Why this change? Technically a component could declare interaction elements without having an interaction trace, this would cause an panic when trying to commit on an empty vec.
crates/prover/src/core/prover/mod.rs
line 222 at r4 (raw file):
let interaction_elements = air.interaction_elements(channel); if !interaction_elements.is_empty() {
Similarly to the previous comment, this could cause an out of range index in the commitments. Once you complete the TODO you can use the column log sizes. Until then maybe check the length of the commitments?
210bc34
to
132176c
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: 13 of 14 files reviewed, 2 unresolved discussions (waiting on @alonh5)
crates/prover/src/core/prover/mod.rs
line 79 at r4 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Why this change? Technically a component could declare interaction elements without having an interaction trace, this would cause an panic when trying to commit on an empty vec.
Done.
crates/prover/src/core/prover/mod.rs
line 222 at r4 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Similarly to the previous comment, this could cause an out of range index in the commitments. Once you complete the TODO you can use the column log sizes. Until then maybe check the length of the commitments?
Done.
132176c
to
f169315
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 r5, 1 of 1 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)
This change is