-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: scroll parallel state root #100
Conversation
Signed-off-by: Gregory Edison <gregory.edison1993@gmail.com>
Signed-off-by: Gregory Edison <gregory.edison1993@gmail.com>
Signed-off-by: Gregory Edison <gregory.edison1993@gmail.com>
a70ce81
to
1414d3d
Compare
Signed-off-by: Gregory Edison <gregory.edison1993@gmail.com>
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.
Looks good. Left a comment inline around packing nibbles. In scroll we use a bit representation for the key so when packing we should use the pack_bits
method. I think the reason you don't catch it in the test is because you do not provide a TrieInput
when invoking the ParallelStateRoot
. Maybe you can add a test which sequentially computes the state root upon updates to state.
Signed-off-by: Gregory Edison <gregory.edison1993@gmail.com>
Signed-off-by: Gregory Edison <gregory.edison1993@gmail.com>
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.
Thanks, looks good! Left one comment about opening an issue for no_std
support. LGTM!
Adds the parallel state root computation to the state-commitment crate for live syncing root compute.