Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ensdomains/merkle-builder

Repository files navigation

merkle-builder

  • Low-level Merkle-Patricia storage trie implementation
  • Matches Ethereum and Foundry results
  • Memory efficient (copy-on-write, shared subexpressions)
  • Compute efficient (branch nodes hash once)
  • Multiple storage encodings (object, bytes, JSON)

Roadmap


Setup

  1. foundryup
  2. forge i
  3. bun i

Test

Demo

  • Replicate eth_getProof for L2ReverseRegistrar (requires .env for provider)
    • bun demo/app.ts -c <chain>
      • ✅️ op93 names as of 2026-01-20
      • ✅️ base1,763,909 names as of 2026-01-20
      • ✅️ arb150 names as of 2026-01-20
      • ✅️ linea → 76 names as of 2026-01-20
      • ✅️ scroll49 names as of 2026-01-20
  • Deserialize from trunk and limb with precomputed hashes, perform surgery, and produce correct eth_getProof
    • bun demo/memory.ts -c <chain> -d <depth>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published