Trie (TrieType) implements Ethereum’s Yellow Paper Appendix D Modified Merkle Patricia Trie (MPT): an immutable radix-16 key-value trie backing Ethereum’s state root, transaction root, receipt root, and contract storage roots, complete with Merkle proof generation and stateless verification.
Quick Start
@tevm/voltaire or @tevm/voltaire/Trie.
Node Types & Hex-Prefix (HP) Encoding
Hex-prefix first nibble flags:
Child references embed raw RLP inline when
rlp(child).length < 32, and store keccak256(rlp(child)) otherwise.
API Reference
Dependency-injected factories for custom crypto/RLP backends:
HashNode, Put, Del, RootHash, Prove, Verify.
Related
- RLP — Node serialization format
- BinaryTree — EIP-7864 unified BLAKE3 binary state tree
- State —
(address, slot)storage keys

