-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_patricia: from merkle node to preimage #10889
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
Conversation
f7f312b to
8a16efd
Compare
0ad4144 to
4dec46f
Compare
8a16efd to
1401601
Compare
9263426 to
fac9e2d
Compare
1401601 to
e8f7aa8
Compare
noaov1
left a comment
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.
@noaov1 reviewed 5 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avi-starkware and @AvivYossef-starkware).
crates/starknet_patricia/src/patricia_merkle_tree/node_data/inner_node_tests.rs line 38 at r1 (raw file):
#[case(Felt::ZERO, Felt::ZERO)] #[case(Felt::from(0x1234_u128), Felt::from(0xABCD_u128))] fn test_preimage_from_binary_merkle_node(#[case] left: Felt, #[case] right: Felt) {
What exactly do we test here?
Code quote:
fn test_preimage_from_binary_merkle_node(#[case] left: Felt, #[case] right: Felt) {crates/starknet_patricia/src/patricia_merkle_tree/node_data/inner_node.rs line 242 at r1 (raw file):
} impl From<&MerkleNode> for Preimage {
Why is it needed?
Code quote:
impl From<&MerkleNode> for Preimage {
Merge activity
|
AvivYossef-starkware
left a comment
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.
@AvivYossef-starkware made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avi-starkware and @noaov1).
crates/starknet_patricia/src/patricia_merkle_tree/node_data/inner_node.rs line 242 at r1 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Why is it needed?
I use it in the next PR
crates/starknet_patricia/src/patricia_merkle_tree/node_data/inner_node_tests.rs line 38 at r1 (raw file):
Previously, noaov1 (Noa Oved) wrote…
What exactly do we test here?
That the conversion works as expected
It was more of a sanity check for me.
I can delete it if you'd like
fac9e2d to
71e966f
Compare
e8f7aa8 to
356082d
Compare
356082d to
b71433d
Compare
71e966f to
74fa82a
Compare
b71433d to
a424d9b
Compare
74fa82a to
1c5c6af
Compare
meship-starkware
left a comment
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.
@meship-starkware reviewed 5 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avi-starkware, @AvivYossef-starkware, and @noaov1).
crates/starknet_patricia/src/patricia_merkle_tree/node_data/inner_node_tests.rs line 38 at r1 (raw file):
Previously, AvivYossef-starkware wrote…
That the conversion works as expected
It was more of a sanity check for me.
I can delete it if you'd like
I am in favor of deleting them. I don't think they test anything that we won't get from using the function
AvivYossef-starkware
left a comment
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.
@AvivYossef-starkware made 1 comment and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @meship-starkware).
crates/starknet_patricia/src/patricia_merkle_tree/node_data/inner_node_tests.rs line 38 at r1 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
I am in favor of deleting them. I don't think they test anything that we won't get from using the function
Done.
a424d9b to
add4651
Compare
meship-starkware
left a comment
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.
@meship-starkware reviewed 1 file and all commit messages, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @avi-starkware).
meship-starkware
left a comment
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.
@meship-starkware made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @avi-starkware).

No description provided.