Skip to content

Instantly share code, notes, and snippets.

@RobertBarrow
Last active March 12, 2018 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertBarrow/7b9ba9819d782f8b1a8ca9b2a51a44c4 to your computer and use it in GitHub Desktop.
Save RobertBarrow/7b9ba9819d782f8b1a8ca9b2a51a44c4 to your computer and use it in GitHub Desktop.
Merkel Tree

Merkel Tree

The Merkle tree, also known as a binary hash tree, is a data structure that is used to store hashes of the individual data in large datasets in a way to make the verification of the dataset efficient. It is an anti-tamper mechanism to ensure that the large dataset has not been changed. The word 'tree' is used to refer to a branching data structure in computer science, as seen in the image below.

Merkel Tree

According to Andreas M. Antonopoulos, in the Bitcoin protocol:

"Merkle trees are used to summarize all the transactions in a block, producing an overall digital fingerprint of the entire set of transactions, providing a very efficient process to verify whether a transaction is included in a block."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment