What are Merkle trees for, and why can’t blocks do without them? Don’t worry—the class rep is here with the answer:
To prove that a transaction is in a particular block, you only need a few hashes along the path from that transaction to the Merkle root. The number of hashes grows logarithmically with the number of transactions.
The beauty of a Merkle tree is that a single short root hash can “lock in” thousands of transactions, and any change to even one of them will be detected.
There’s no homework for today’s lesson, but the market may spring a pop quiz.
$BTC 59877.71(-1.09%)