Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Merkle trees

A Bitcoin header has metadata that summarizes all the transactions present in the block. This is achieved by creating a digest using a special type of tree called a Merkle hash tree. As mentioned in Chapter 2, A Bit of Cryptography, a Merkle hash tree is a binary hash tree that is used to summarize large sets of data. Merkle trees are used to summarize all the transactions in Bitcoin and thus ensure the integrity of the transactions. They provide an efficient way to verify whether a transaction is included in the block.

Merkle trees recursively hash the nodes, starting from the leaves, which are hashes of transactions, until there is only one hash. This hash value summarizes all the transactions in the block and is called the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content