Merkle Tree

Hashing leaves, climbing to a single root of trust.

What Is a Merkle Tree?

A Merkle tree is a binary tree where every non-leaf node stores the cryptographic hash of its two children. The root hash therefore summarises all leaves. Any change to a single leaf ripples upward, altering the root and exposing tampering.

Applications

Demo Instructions

The code relies on SHA-256 via the Web Crypto API and lives in games/js/demos.js.

← Back to gallery