The Wayback Machine - https://web.archive.org/web/20240809223349/https://www.geeksforgeeks.org/blockchain-and-block-header/
Open In App

Blockchain and Block Header

Last Updated : 27 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Blockchain is a database, or broadly distributed database, used mainly for concurrent transactions and one of the most popular implementations of blockchain is Bitcoin. Blockchain has several blocks, also called nodes, and all the blocks are managed with the help of the block header.

Constituents of Block Header are :

  1. Timestamp
  2. Version
  3. Merkle Root
  4. Difficulty Target
  5. Nonce
  6. Previous Hash
Size Field Description
4 bytes Version A version number to track software/protocol upgrades.
32 bytes Previous Block Hash A reference to the hash of the previous (parent) block in the chain.
32 bytes Merkle Root A hash of the root of the merkle tree of this block’s transaction.
4 byttes Timestamp The approximate creation time of the block.
4 bytes Difficulty Target The proof of work algorithm difficulty target for this block
4 bytes Nounce A counter used for the proof of work algorithm.

Timestamp :

Timestamp in the blockchain is used as proof that the particular block is used at what instance of a time, also this timestamp is used as a parameter to verify the authenticity of any block.

Version :

It states the version that the particular block is using, there are three types of Blockchain version.

  1. Blockchain Version 1.0(cryptocurrency)-It used a public ledger to store the data, for example, Bitcoin.
  2. Blockchain Version 2.0(smart Contract)- It is called smart contracts which is self-executing programs, for example, Ethereum.
  3. Blockchain Version 3.0(DAPPS)- It is used to create a decentralized structure, for example, tor Browser.
  4. Blockchain Version 4.0(Blockchain for Industry)- It is used to create a scalable, affordable blockchain network such that more people could use it.

Merkle Root :

A Merkle root uses mathematical formulas to check if the data is not corrupted, hacked, or manipulated. For example, Suppose one block has 10 transactions, then to identify that block we need 10 transactions to combine and form one Hash Value, so it uses the concept of the binary tree to create the hash of the block and that value is called the Merkle Root(Please refer article Introduction to Merkle tree).

Difficulty Target :

It specifies the complexity and the computation power required to mine the network, if we are having a high difficulty target then it implies that we need more a computationally expensive machine to mine it. For example, in order to increase the difficulty target algorithms such as SHA-2, SHA-3. RIPEMD, MD5,BLAKE2 is used.

Nonce :

It is abbreviated as ‘number only used once’ and it is a number which blockchain miners are finding and on average, it takes almost 10 times to find out the correct nonce. A nonce is a 32-bit number, having the maximum value as 2^(32) total possible value, so the job of the bitcoins miners is to find out the correct integer value which is a random integer between 0 and 2^(32), so it becomes computationally expensive.

Previous Hash :

As Blockchain is a collection of several interconnected nodes also called a block, so previous hash stores the hashed value of the previous node’s address, First block in the blockchain is called the Genesis Block and has no previous block hash value.


Previous Article
Next Article

Similar Reads

How Block Hashes Work in Blockchain?
Blockchain is the backbone technology of the digital cryptocurrency Bitcoin. The blockchain is a distributed database of records of all transactions or digital events that have been executed and shared among participating parties. Each transaction is verified by the majority of participants of the system. It contains every single record of each tra
7 min read
Candidate block in Blockchain
As we are aware that blockchain is decentralized network which is focused mainly on transparency, Blockchain is list of growing records titled as blocks. Please refer this article, if you are beginner in blockchain domain. Role of Miners in Blockchain : Whenever transaction is made on bitcoin network transaction needs to get verified to add that tr
2 min read
Blockchain - Block Hashing
Blockchain is the backbone Technology of Digital CryptoCurrency BitCoin. The blockchain is a distributed database of records of all transactions or digital events that have been executed and shared among participating parties. Each transaction is verified by the majority of participants of the system. It contains every single record of each transac
6 min read
Genesis Block in Blockchain
A blockchain is a decentralized digital tally of deals distributed across different computer networks. Each block in the chain contains a list of deals and a reference to the former block, creating a chain of blocks that can be vindicated and traced back to the veritably first block in the chain, known as the Genesis Block. This article focuses on
10 min read
Flutter and Blockchain - Hello World Dapp
This tutorial will take you through the process of building your first mobile dapp - Hello World Dapp! This tutorial is meant for those with a basic knowledge of Ethereum and smart contracts, who have some knowledge of the Flutter framework but are new to mobile dapps. In this tutorial we will be covering: Setting up the development environmentCrea
9 min read
Integration of Artificial Intelligence and BlockChain
Artificial Intelligence and Blockchain are proving to be quite a powerful combination, improving virtually every industry in which they're implemented. These technologies can be combined to upgrade everything from food supply chain logistics and healthcare record sharing to media royalties and financial security. The integration of AI and Blockchai
8 min read
Blockchain and Data Privacy
Blockchain has been defined as a digital, decentralized ledger that keeps a record of all transactions that take place across a peer-to-peer network. It enables the secure transfer of assets without an intermediary. It also provides a record of transactions that is fully transparent and displayed in real-time for benefit of participants. Blockchain
11 min read
Difference between Blockchain and a Database
Database: Generally a database is a data structure which is used for storing information. It is a organised collection or storage of data which is able to store a new data or access a existing data. The data stored in a database can be organized using a database management system. The database administrator can modify the data stored in the databas
2 min read
Basics of the Blockchain and its various applications
The BlockChain, to begin with is undeniably one of the most ingenious inventions of mankind. Considering it to be the brainchild the pseudonym, Satoshi Nakamoto, the technology has evolved into something unimaginably great. However, the most commonly asked always arises every single time - What is this Blockchain? A BlockChain is defined as a peer
5 min read
Difference Between Bitcoin and Blockchain
Blockchain In Blockchain every block contains a cryptographic hash of the previous block, a timestamp, and transaction information. In other words, blockchain is a distributed database technology, which restricts bitcoin. In fact, any digital asset. It enables multiple parties to transact, share valuable data, and pool their resources in a secure y
4 min read
Article Tags :
three90RightbarBannerImg