← 💻 Computer Science

🌳 Merkle Proof

Recomputed path (leaf → root)
Sibling hash (proof input)
Proof size:
Leaf data:
Trusted root:
Recomputed root:
Verification:
FPS:
Drag — rotate · Scroll — zoom · Click a leaf block to select it

🌳 Merkle Trees: How a Single Hash Verifies Millions of Records

An interactive 3D binary tree of hashed data blocks. Selecting any leaf record highlights the minimal chain of sibling hashes needed to recompute the root and verify that record belongs to the dataset — without touching any other record.

🔬 What It Demonstrates

Every internal node is the hash of its two children, all the way up to a single root hash. Proving a leaf's inclusion only requires the sibling hash at each level — log₂(n) hashes for n leaves — not the whole dataset.

🎮 How to Use

Pick a leaf count and drag the leaf slider (or click a block) to select a record. Watch the cyan recomputed path and gold sibling hashes light up. Tamper with a leaf's data to see the root hash diverge from the trusted root.

💡 Did You Know?

Bitcoin block headers store only a Merkle root. A light client can verify a transaction is in a block containing thousands of others using roughly 11–12 hashes instead of downloading the entire block.