Merkle Trees & Roots
Efficient verification of mass data inclusion.
Simplified Verification
To prove Tx_1 exists, a light client only needs the root and the "sibling" hashes (Hash 2 and Branch 2). This is why Merkle Trees are the backbone of high-performance mobile wallets.
Tamper-Proof Root
Try changing Tx_1. Notice how the change "Avalanches" up through Branch 1 and eventually results in a completely different Merkle Root.
Technical Briefing
A Merkle Tree (or Binary Hash Tree) is a data structure used to summarize all the transactions in a block into a single 32-byte fingerprint: the Merkle Root. This root is what actually gets stored in the Block Header.
Logarithmic Efficiency: O(log n)
To prove that a transaction is part of a block containing 1,000 transactions, you don't need to provide all 1,000. You only need to provide about 10 hashes (the Merkle Proof). This allows light clients (like mobile wallets) to verify payments securely without downloading the entire blockchain.
The Propagation of Trust
The tree is built from the bottom up. Transactions are hashed, paired, and hashed again until only one hash remains. This structure ensures that if a single character in a single transaction changes, the entire Merkle Root becomes invalid, instantly alerting the network to the tampering.