Merkle Tree Batch Verification
Interactive 3D Merkle tree for pharmaceutical batch records: tamper one leaf, watch the hash avalanche cascade to the root, and compare an O(log n) Merkle proof against an O(n) full re-scan.
A pharmaceutical blockchain doesn't store every batch record inside every block — it stores one Merkle root, a single hash that commits to the whole ledger. This simulator builds a real Merkle tree in 3D from 4, 8 or 16 drug-batch records, hashing leaves and internal nodes with a genuine FNV-1a mix. Tamper with any one batch and watch the avalanche effect ripple up the tree as only the ancestor chain recomputes; toggle the Merkle proof view to see how a verifier confirms a single batch's authenticity by checking just log₂(n) sibling hashes instead of re-hashing the entire ledger.
Build a 3D Merkle tree from pharmaceutical batch records, tamper with one batch to watch the hash avalanche cascade to the root, and compare an O(log n) Merkle proof against an O(n) full ledger re-scan.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install