Skip to content
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

WEB3-293: feat: Add risc0-ethereum-trie #391

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

WEB3-293: feat: Add risc0-ethereum-trie #391

wants to merge 19 commits into from

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Jan 16, 2025

This PR introduces the new risc0-ethereum-trie crate consolidating all functionality related to sparse Merkle-Patricia Tries (MPT).

Merge #390 first

@Wollac Wollac requested a review from a team as a code owner January 16, 2025 13:12
@Wollac Wollac changed the base branch from chore/move-crates to main January 16, 2025 13:13
@Wollac Wollac requested a review from capossele as a code owner January 16, 2025 13:13
@github-actions github-actions bot changed the title feat: Add risc0-ethereum-trie WEB3-293: feat: Add risc0-ethereum-trie Jan 16, 2025
Copy link
Contributor

@nategraf nategraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've started to look through this. No substantial comments so far. Did you work on this with @hashcashier? In either case, it'd be great to have Rami's review. I'm definitely lacking some understanding of the Ethereum Trie that would be required to really find issues here.

crates/trie/README.md Outdated Show resolved Hide resolved
Comment on lines 5 to 12
# Nightly
max_width = 100
comment_width = 100
imports_granularity = "Crate"
wrap_comments = true
format_code_in_doc_comments = true
doc_comment_code_block_width = 100
format_macro_matchers = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've generally turned off nightly features for rust fmt in other crates.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a shame, I think those settings improve readability.
I removed the nightly options, but kept the non-nightly ones because I think they add a lot to readability.

Copy link

@hashcashier hashcashier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very neat overhaul

crates/trie/src/mpt/mod.rs Show resolved Hide resolved
crates/trie/src/mpt/nibbles.rs Show resolved Hide resolved
Copy link
Contributor

@nategraf nategraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving based on Rami's review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants