#trie-node #patricia #merkle #root #ethereum #mpt #rlp

kona-mpt

Utilities for interacting with and iterating through a merkle patricia trie

11 releases

new 0.1.3 Mar 10, 2025
0.1.1 Dec 4, 2024
0.1.0 Nov 20, 2024
0.0.2 Jun 22, 2024

#6 in #mpt

Download history 20/week @ 2024-11-13 284/week @ 2024-11-20 21/week @ 2024-11-27 172/week @ 2024-12-04 14/week @ 2024-12-11 6/week @ 2024-12-18 57/week @ 2025-01-01 92/week @ 2025-01-08 15/week @ 2025-01-15 9/week @ 2025-01-22 9/week @ 2025-01-29 23/week @ 2025-02-05 62/week @ 2025-02-12 18/week @ 2025-02-19 9/week @ 2025-02-26

114 downloads per month
Used in 3 crates (2 directly)

MIT license

67KB
1K SLoC

kona-mpt

CI Kona MPT License Codecov

A recursive, in-memory implementation of Ethereum's hexary Merkle Patricia Trie (MPT), supporting:

  • Retrieval
  • Insertion
  • Deletion
  • Root Computation
    • Trie Node RLP Encoding

This implementation is intended to serve as a backend for a stateless executor of Ethereum blocks, like the one in the kona-executor crate. Starting with a trie root, the TrieNode can be unravelled to access, insert, or delete values. These operations are all backed by the TrieProvider, which enables fetching the preimages of hashed trie nodes.

Dependencies

~7MB
~122K SLoC