Module1_Lect4
Module1_Lect4
Blockchain
and DLT
(BLCH)
ITC801
Subject In-charge
Dr. Joanne Gomes
Professor Dept. of Information Technology SFIT
Room No. 316
email: [email protected]
Module 1
Lecture 4
Introduction To Blockchain Technology
Topics
• Block in a Blockchain:
– Structure of a Block,
– Block Header
– Hash and Block Height
– The Genesis Block
– Linking Blocks in the Blockchain
– Merkle Tree.
Structure of a Block in Blockchain
• The blockchain data structure is an ordered,
back-linked list of blocks of transactions, which
are connected with each other using hash
pointers.
• Each block within the blockchain is identified by
a hash and consists of a header section and a
body section.
• Th block header:
– It consists of six components such as version,
previous block hash, merkle tree hash,
timestamp, difficulty level and nonce.
• Block Header:
➢ Version: This 4-byte field indicates the version number of
Bitcoin protocol being used, typically contains value “1.”
➢ hashPrevBlock: This 32-byte field contains a 256-bit hash
of the previous block header.
➢ hashMerkleRootHash: This 32-byte field contains a
256-bit hash of the root hash of the Merkle tree of
all the transactions in the current block.
➢ Time: This 4-byte field contains a timestamp of the
current block that is used to situate it
chronologically in the blockchain.
➢ Bits: This 4-byte field contains the target difficulty of
the current Bitcoin block which determines how
difficult the target hash will be to find.
➢ Nonce: This 4-byte field contains a 32-bit number
that a miner must alter in order to correctly solve
the computational puzzle for the current block.
Structure of a Block-header
• Sample size of a block-header in Bitcoin blockchain