What problem does it solve?
Working with EIP-7864 binary Merkle tries requires correctly deriving trie keys, packing account state, chunking bytecode, and generating inclusion proofs, which is error-prone when done manually in C#.
Core Features & Use Cases
- Trie Operations: Insert, retrieve, delete, and compute roots on a binary Merkle trie using Nethereum.Merkle.Binary.
- Key Derivation & State Packing: Map addresses and storage slots to trie keys and pack nonce, balance, and code size into BasicDataLeaf format.
- Proof Generation & Verification: Build inclusion proofs with BinaryTrieProver and verify them against a root hash with BinaryTrieProofVerifier.
- Use Case: A developer prototyping stateless Ethereum clients can derive keys for an account, insert account data and code chunks, then generate and verify a proof against the computed root.
Quick Start
Ask the AI to create a binary Merkle trie with Nethereum.Merkle.Binary, insert a key-value pair, and generate and verify an inclusion proof.