starknet_committer: define StarknetForestProofs serde#13994
Conversation
2092a49 to
f0e3f55
Compare
19be0db to
7768006
Compare
6d8fca8 to
f34a751
Compare
88273cc to
482d5eb
Compare
f34a751 to
540e432
Compare
482d5eb to
8149407
Compare
48f73db to
40a2552
Compare
PR SummaryMedium Risk Overview
Round-trip Reviewed by Cursor Bugbot for commit 1f3d5ed. Bugbot is set up for automated code reviews on this repo. Configure here. |
a5cc604 to
7b294f1
Compare
5a5ff22 to
bfb567c
Compare
7b294f1 to
982711b
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 5 files and all commit messages, made 2 comments, and resolved 4 discussions.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on ArielElp).
crates/starknet_committer/src/patricia_merkle_tree/starknet_forest_proofs_serde.rs line 67 at r6 (raw file):
.collect(); bincode::serialize(&(classes, contract_nodes, contract_leaves, storage))
general question: why did you choose this crate to convert to/from bytes?
Code quote:
bincodecrates/starknet_committer/src/patricia_merkle_tree/starknet_forest_proofs_serde.rs line 105 at r6 (raw file):
let mut contracts_trie_storage_proofs = HashMap::new(); for (addr, facts) in storage {
why not do the same into_iter().try_fold pattern as above?
Code quote:
let mut contracts_trie_storage_proofs = HashMap::new();
for (addr, facts) in storage {982711b to
8d5ff04
Compare
bfb567c to
7b6b74f
Compare
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on ArielElp and dorimedini-starkware).
crates/starknet_committer/src/patricia_merkle_tree/starknet_forest_proofs_serde.rs line 67 at r6 (raw file):
Previously, dorimedini-starkware wrote…
general question: why did you choose this crate to convert to/from bytes?
What about this approach:
sequencer/crates/apollo_storage/src/accessed_keys.rs
Lines 14 to 15 in 9bf46f6
8d5ff04 to
08c1864
Compare
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 2 comments.
Reviewable status: 5 of 6 files reviewed, 2 unresolved discussions (waiting on dorimedini-starkware).
crates/starknet_committer/src/patricia_merkle_tree/starknet_forest_proofs_serde.rs line 67 at r6 (raw file):
Previously, yoavGrs wrote…
What about this approach:
sequencer/crates/apollo_storage/src/accessed_keys.rs
Lines 14 to 15 in 9bf46f6
Just a simple approach to storage that was recommended by AI. Given that everything is experimental and gated, it seemed weird to deep dive into the best representation. I'm fine with Yoav's suggestion too, though JSON is probably somewhat wasteful. Up to you.
Regarding compression, this is probably a must, given that we suspect this will be a non-trivial storage increase that we may need to prune regularly, but we can also compress bincode's bytes. Did it for now.
crates/starknet_committer/src/patricia_merkle_tree/starknet_forest_proofs_serde.rs line 105 at r6 (raw file):
Previously, dorimedini-starkware wrote…
why not do the same
into_iter().try_foldpattern as above?
No good reason, changed.
08c1864 to
0cfc5ca
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 3 files and all commit messages, and resolved 2 discussions.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).
7b6b74f to
22afd6e
Compare
0cfc5ca to
21b871e
Compare
22afd6e to
5ab5e3f
Compare
21b871e to
2e82fa4
Compare
2e82fa4 to
d978ebb
Compare
|
Artifacts upload workflows: |
d978ebb to
057831d
Compare
057831d to
1f3d5ed
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 3 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).

No description provided.