apollo_committer_types: add patricia proofs request and response types#13996
Conversation
8f39705 to
67c3d07
Compare
1653f27 to
b645f94
Compare
abf2f2d to
bc12ddd
Compare
5d76fac to
99bf786
Compare
bc12ddd to
9e42fdf
Compare
99bf786 to
642dad1
Compare
9e42fdf to
9ab840a
Compare
642dad1 to
13b4b25
Compare
PR SummaryMedium Risk Overview Under that feature, new In Reviewed by Cursor Bugbot for commit 2be9832. Bugbot is set up for automated code reviews on this repo. Configure here. |
714765a to
7efff01
Compare
9dc7ed9 to
2b512c8
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 2 files and all commit messages.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on ArielElp).
2b512c8 to
88b3f9b
Compare
0c04230 to
9269fa0
Compare
88b3f9b to
32233ea
Compare
9269fa0 to
c6695e5
Compare
32233ea to
c1d1d19
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware made 1 comment.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on ArielElp).
crates/starknet_committer/src/block_committer/input.rs line 84 at r6 (raw file):
Previously, yoavGrs wrote…
Yes, in the blockifier, with the same name
@ArielElp please reuse
c1d1d19 to
ed0c4b1
Compare
c6695e5 to
96591a7
Compare
ed0c4b1 to
d1e67a9
Compare
55863a3 to
65c50ec
Compare
d1e67a9 to
41940fc
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 2 files and all commit messages.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on ArielElp).
41940fc to
b170d8b
Compare
65c50ec to
74268e4
Compare
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 5 comments.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on dorimedini-starkware).
crates/apollo_committer_types/src/committer_types.rs at r6 (raw file):
Previously, dorimedini-starkware wrote…
borderline - these additions can stay here, or, can move to a new gated module... your call, but if this module will end up adding more gated stuff I would just create a new module in advance
There are no more additions on the top of the stack so I'm keeping it.
crates/starknet_committer/src/block_committer/input.rs line 84 at r6 (raw file):
Previously, dorimedini-starkware wrote…
@ArielElp please reuse
Done
crates/starknet_committer/src/patricia_merkle_tree/starknet_forest_proofs_serde.rs line 137 at r6 (raw file):
Previously, dorimedini-starkware wrote…
don't
useinline please
Done.
crates/starknet_committer/src/patricia_merkle_tree/starknet_forest_proofs_serde.rs line 139 at r6 (raw file):
Previously, dorimedini-starkware wrote…
not sure it's useful for you, but FYI: you can use
#[serde(remote = "Self")]to be able to define these custom serde impls AND derive the serde traits at the same time
Gotcha, but as you said, either this or the above bincode doesn't correspond to the derived implementation.
crates/starknet_committer/src/patricia_merkle_tree/types.rs at r6 (raw file):
Previously, dorimedini-starkware wrote…
ouch x2
are these clones really necessary? the objects can be huge..
It doesn't seem to be used anywhere in the stack. More of an apparent convention that every component's request/response type derives from clone (the new ReadPathsAndCommitBlockRequest will be a variant of CommitterRequest that currently derives from Clone, to satisfy it, I need clone on these structs). That said, nothing seems to clone CommitterRequest, so we may change that, maybe higher up?
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs made 1 comment.
Reviewable status: 2 of 7 files reviewed, 6 unresolved discussions (waiting on ArielElp and dorimedini-starkware).
crates/starknet_committer/src/patricia_merkle_tree/types.rs at r6 (raw file):
Previously, ArielElp wrote…
It doesn't seem to be used anywhere in the stack. More of an apparent convention that every component's request/response type derives from clone (the new ReadPathsAndCommitBlockRequest will be a variant of CommitterRequest that currently derives from Clone, to satisfy it, I need clone on these structs). That said, nothing seems to clone CommitterRequest, so we may change that, maybe higher up?
You need it for the infra, to pass the requests/responses across the channels.
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 5 files and all commit messages, and resolved 5 discussions.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on ArielElp).
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 1 comment.
Reviewable status: 6 of 8 files reviewed, 1 unresolved discussion (waiting on dorimedini-starkware and yoavGrs).
crates/apollo_committer_types/Cargo.toml line 10 at r6 (raw file):
Previously, dorimedini-starkware wrote…
now that this is here, please add this crate to Yoav's workflow testing this feature
Done, I think.
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 2 files and all commit messages, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 2 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).

No description provided.