-
Notifications
You must be signed in to change notification settings - Fork 71
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 componenet and air trace writers. #651
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #651 +/- ##
==========================================
+ Coverage 92.24% 92.49% +0.25%
==========================================
Files 69 69
Lines 9050 9025 -25
Branches 9050 9025 -25
==========================================
Hits 8348 8348
+ Misses 629 604 -25
Partials 73 73 ☔ 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 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5 and @ohad-starkware)
crates/prover/src/core/air/mod.rs
line 29 at r1 (raw file):
pub trait AirTraceVerifier { fn interaction_elements(&self, channel: &mut Blake2sChannel) -> InteractionElements; }
What is this trait?
Should this function be a part of the regular Air trait?
Code quote:
pub trait AirTraceVerifier {
fn interaction_elements(&self, channel: &mut Blake2sChannel) -> InteractionElements;
}
crates/prover/src/core/air/mod.rs
line 80 at r1 (raw file):
} // TODO(AlonH): Rethink this trait.
I think you can remove that
Code quote:
// TODO(AlonH): Rethink this trait.
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 @alonh5)
crates/prover/src/core/air/mod.rs
line 38 at r1 (raw file):
) -> ComponentVec<CircleEvaluation<B, BaseField, BitReversedOrder>>; fn to_air_prover(&self) -> &dyn AirProver<B>;
why dyn here? wouldn't it be a static type in every implementation?
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 @alonh5)
crates/prover/src/core/air/mod.rs
line 38 at r1 (raw file):
Previously, ohad-starkware (Ohad) wrote…
why dyn here? wouldn't it be a static type in every implementation?
nevermind you changed it later
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.
other than the trait seperation (every Air is an AirVerifier)
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5)
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)
crates/prover/src/core/air/mod.rs
line 29 at r1 (raw file):
Previously, shaharsamocha7 wrote…
What is this trait?
Should this function be a part of the regular Air trait?
Then AirTraceWriter
would also have to be an Air
and therefore implement components
, which it can't. This is part of the separation we needed.
crates/prover/src/core/air/mod.rs
line 80 at r1 (raw file):
Previously, shaharsamocha7 wrote…
I think you can remove that
Done.
cb15009
to
54c6c5b
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: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)
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: all files reviewed, 1 unresolved discussion (waiting on @alonh5)
54c6c5b
to
11bf7b9
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: complete! all files reviewed, all discussions resolved (waiting on @alonh5)
This change is