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

feat: kona-mpt crate #128

Merged
merged 4 commits into from
Apr 22, 2024
Merged

feat: kona-mpt crate #128

merged 4 commits into from
Apr 22, 2024

Conversation

clabby
Copy link
Collaborator

@clabby clabby commented Apr 21, 2024

Overview

Note

Blocked by alloy-rs/alloy#596, which will allow for continuously testing @ tip rather than a fixed block that contains no blob transactions. edit: will just update later

Adds a new crate, kona-mpt, where we can put utilities for interacting with the Merkle Patricia Trie in the client program.

Features

To start off, this crate includes the OrderedListWalker, which allows for traversing over a merkle patricia trie root that represents an ordered list (i.e., the transactions or receipt root in ETH block headers.) It does so by taking in a preimage fetching function, which is able to return the raw RLP of blinded nodes within the MPT.

@clabby clabby added K-feature Kind: feature K-meta Kind: meta A-mpt Area: kona-mpt crate labels Apr 21, 2024
@clabby clabby self-assigned this Apr 21, 2024
Copy link
Collaborator

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Very solid just one comment/question

crates/mpt/src/node.rs Show resolved Hide resolved
@clabby clabby added this pull request to the merge queue Apr 22, 2024
Merged via the queue into main with commit e639e83 Apr 22, 2024
13 checks passed
@clabby clabby deleted the cl/kona-mpt branch April 22, 2024 04:18
@github-actions github-actions bot mentioned this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mpt Area: kona-mpt crate K-feature Kind: feature K-meta Kind: meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants