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

Block header

The block header stores the metadata of the block, and its size is 80 bytes, as shown in the previous table. It stores version information with which you can identify the block. hashPrevBlock stores a 256-bit hash value of the previous block, which links the blocks and ensures the integrity of the blockchain. hashMerkleRoot is the hash digest of the transactions and ensures the integrity of transactions.

The time, difficulty bits, and nonce fields are related to the Proof of Work consensus algorithm:

Field

Purpose

Size

Version

Block version

4 bytes

hashPrevBlock

256-bit hash of the previous block header

32 bytes

hashMerkleRoot

256-bit hash based on all of the transactions in the block

32 bytes ...

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