The Wayback Machine - https://web.archive.org/web/20241003153957/https://www.geeksforgeeks.org/blockchain-proof-of-work-pow/
Open In App

Blockchain – Proof of Work (PoW)

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

Proof of Work consensus is the mechanism of choice for the majority of cryptocurrencies currently in circulation. The algorithm is used to verify the transaction and create a new block in the blockchain. The idea for Proof of Work(PoW) was first published in 1993 by Cynthia Dwork and Moni Naor and was later applied by Satoshi Nakamoto in the Bitcoin paper in 2008. The term “proof of work” was first used by Markus Jakobsson and Ari Juels in a publication in 1999.

Cryptocurrencies like Litecoin, and Bitcoin are currently using PoW.  Ethereum was using PoW mechanism, but now shifted to Proof of Stake(PoS).

Principle: A solution that is difficult to find but is easy to verify.

Purpose of PoW

The purpose of a consensus mechanism is to bring all the nodes in agreement, that is, trust one another, in an environment where the nodes don’t trust each other. 

  • All the transactions in the new block are then validated and the new block is then added to the blockchain. 
  • The block will get added to the chain which has the longest block height(see blockchain forks to understand how multiple chains can exist at a point in time). 
  • Miners(special computers on the network) perform computation work in solving a complex mathematical problem to add the block to the network, hence named, Proof-of-Work. 
  • With time, the mathematical problem becomes more complex. 

Features of PoW

There are mainly two features that have contributed to the wide popularity of this consensus protocol and they are:

  • It is hard to find a solution to a mathematical problem.
  • It is easy to verify the correctness of that solution.

How Does PoW Work? 

The PoW consensus algorithm involves verifying a transaction through the mining process. This section focuses on discussing the mining process and resource consumption during the mining process. 

Mining: 

The Proof of Work consensus algorithm involves solving a computationally challenging puzzle in order to create new blocks in the Bitcoin blockchain. The process is known as ‘mining’, and the nodes in the network that engages in mining are known as ‘miners’. 

  • The incentive for mining transactions lies in economic payoffs, where competing miners are rewarded with 6.25 bitcoins and a small transaction fee.
  • This reward will get reduced by half its current value with time.

Energy and Time consumption in Mining: 

The process of verifying the transactions in the block to be added, organizing these transactions in chronological order in the block, and announcing the newly mined block to the entire network does not take much energy and time. 

  • The energy-consuming part is solving the ‘hard mathematical problem’ to link the new block to the last block in the valid blockchain. 
  • When a miner finally finds the right solution, the node broadcasts it to the whole network at the same time, receiving a cryptocurrency prize (the reward) provided by the PoW protocol. 

Mining reward:

  • Currently, mining a block in the bitcoin network gives the winning miner 6.25 bitcoins. 
  • The amount of bitcoins won halves every four years. So, the next deduction in the amount of bitcoin is due at around 2024(with the current rate and growth). 
  • With more miners comes the inevitability of the time it takes to mine the new block getting shorter. 
  • This means that the new blocks are found faster. In order to consistently find 1 block every 10 minutes. (That is the amount of time that the bitcoin developers think is necessary for a steady and diminishing flow of new coins until the maximum number of 21 million is reached (expected some time with the current rate in around 2140)), the Bitcoin network regularly changes the difficulty level of mining a new block.

Bitcoin’s PoW System

Bitcoin uses the Hashcash Proof of Work system as the mining basis. The ‘hard mathematical problem’ can be written in an abstract way like below :

Given data A, find a number x such as that the hash of x appended to A results is a number less than B.

  • The miners bundle up a group of transactions into a block and try to mine. To mine it, a hard mathematical problem has to be solved. 
  • This problem is called the proof of work problem which has to be solved to show that the miner has done some work in finding out the solution to the problem and hence the mined block must be valid. 
  • The answer to the problem needs to be a lower number than the hash of the block for it to be accepted, known as the ‘target hash’.

A target hash is a number that the header of a hashed block must be equal to or less than for a new block, along with the reward, to be awarded to a miner. 

The lower a target is, the more difficult it is to generate a block.

  • A miner continues testing different unique values (known as a nonce(s)) until a suitable one is produced. 
  • The miner who manages to solve the problem gets the bitcoin reward and adds the block to the blockchain by broadcasting that the block has been mined. 

Note: The target hash adjusts once every 2016 block or approximately once every 2 weeks. All the miners immediately stop working on the said block and start mining the next block. 

Common cryptographic protocols used in PoW: The most widely used proof-of-work consensus is based on SHA-256 and was introduced as a part of Bitcoin. Others include Scrypt, SHA-3, scrypt-jane, scrypt-n, etc. 

Challenges With PoW

The Proof-of-Work consensus mechanism has some issues which are as follows:

  • The 51% risk: If a controlling entity owns 51% or more than 51% of nodes in the network, the entity can corrupt the blockchain by gaining the majority of the network.
  • Time-consuming: Miners have to check over many nonce values to find the right solution to the puzzle that must be solved to mine the block, which is a time-consuming process.
  • Resource consumption: Miners consume high amounts of computing power in order to find the solution to the hard mathematical puzzle. It leads to a waste of precious resources(money, energy, space, hardware). It is expected that 0.3% of the world’s electricity will be spent to verify transactions by the end of 2028.
  • Not instantaneous transaction: Transaction confirmation takes about 10–60 minutes. So, it is not an instantaneous transaction; because it takes some time to mine the transaction and add it to the blockchain thus committing the transaction.

Previous Article
Next Article

Similar Reads

Difference between Proof of Work (PoW) and Proof of Stake (PoS) in blockchain
1. What is Proof of Work (PoW) ? The term “proof of work” was coined by Markus Jakobsson and Ari Juels during a document published in 1999.It is related to bitcoin. Proof of Work (PoW) may be a protocol designed to form digital transactions secure without having to believe a 3rd party. This work builds on previous puzzle solutions. PoW may be a way
4 min read
Proof of Weight (PoW) Consensus Mechanism in Blockchain
Proof of Weight (PoW) is a consensus mechanism used in blockchain technology to secure networks and validate transactions. Unlike traditional Proof of Work (PoW), which relies on solving complex cryptographic puzzles, Proof of Weight bases its consensus on the amount of "weight" or stake that participants hold in the network. This weight often corr
10 min read
Types of Attacks on PoW (Proof of Work) based systems
Prerequisite - Proof of Work (PoW) As we know, the idea of Proof of Work was by Cynthia Dwork and Moni Naor. This permissionless consensus uses double SHA 256 which makes it secure from hackers. With proof of work, miners compete with each other to complete the transaction and get the bounty. Even it has many advantages like solving the double-spen
3 min read
Implementing the Proof-of-Work Algorithm in Python for Blockchain Mining
Blockchain technology is a decentralized and immutable ledger of digital transactions that has the potential to revolutionize many industries. Mining is one of the key components of blockchain, which is the process of validating transactions and creating new blocks on the blockchain. The Proof-of-Work (PoW) algorithm is used to ensure that miners a
10 min read
Proof of Stake (PoS) in Blockchain
Proof of Stake (PoS) is a type of algorithm which aims to achieve distributed consensus in a Blockchain. This way to achieve consensus was first suggested by Quantum Mechanic here and later Sunny King and his peer wrote a paper on it. This led to Proof-of-Stake (PoS) based Peercoin. A stake is value/money we bet on a certain outcome. The process is
5 min read
Proof of Burn Consensus Algorithm in Blockchain
Blockchain is the backbone technology of digital cryptocurrency Bitcoin that allows digital information to be decentralized and distributed. It provides immutability, privacy, security, and transparency. In Blockchain no central authority is present to validate and verify the transactions, yet every transaction in the Blockchain is completely secur
6 min read
Proof of Elapsed Time( PoET) in Blockchain
Proof of Elapsed Time (PoET) is a network consensus algorithm that prevents high resource utilization and energy consumption. It implements a fair lottery system to keep the process more efficient. This article focuses on discussing Proof of Elapsed Time (PoET) in detail. Table of Content What is Proof of Elapsed Time( PoET)?Key Features of PoET3 F
10 min read
Proof of Importance (PoI) in Blockchain
Proof of Importance (PoI) is a consensus algorithm used in blockchain networks to validate transactions and secure the network. Unlike traditional methods such as Proof of Work (PoW) and Proof of Stake (PoS), PoI focuses on the overall importance of a node based on both its stake and its activity in the network. This article focuses on discussing P
11 min read
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
Proof of Authority consensus
In blockchain platforms, consensus mechanisms can be divided into permissionless (eg., Ethereum, Bitcoin) and permissioned (eg Hyperledger, Ethereum Private). Unlike permissionless blockchain where anyone can become node, in permissioned blockchain all nodes are pre-selected. This allows to use consensus types with high scalability and bandwidth. O
4 min read
Delegated Proof Of Stake (DPoS)
Delegated Proof Of Stake (DPoS) is a consensus algorithm which is an advancement of the fundamental concepts of Proof Of Stake. Delegated Proof of Stake (DPoS) consensus algorithm was developed by Daniel Larimer, founder of BitShares, Steemit and EOS in 2014. In Proof of Stake consensus system, each person who stakes a token can participate to the
5 min read
Interactive Zero Knowledge Proof
The goal of Zero-knowledge proofs (ZKP) is for 'verifier' to prove itself as possessor of some information called as 'witness' to 'verifier' by satisfying some relations and not revealing witness to anyone else. Interactive zero-knowledge proof requires live interaction of verifier and prover. The idea underlying zero-knowledge proofs first came to
2 min read
Proof of Capacity
Proof-of-Capacity mining is a very new mining method that is presently being employed by one cryptocurrency, Burstcoin. Despite this, many people believe that proof of capacity is a feasible alternative to the currently used mining techniques. It enables mining through the use of hard disk space. A strategy like this offers a lot of benefits, and i
7 min read
Casper Proof of Stake Algorithm in Ethereum
Ethereum pioneered a good-sized change in its consensus mechanism with the release of Casper, moving from the greater power-extensive Proof of Work (PoW) to the more sustainable Proof of Stake (PoS) version, in a way to the constantly converting landscape of the blockchain era. An in-depth dialogue of Casper's layers, the Friendly Finality Gadget (
3 min read
Zero Knowledge Proof
Zero Knowledge Proof (ZKP) is an encryption scheme originally proposed by MIT researchers Shafi GoldwasserZero-knowledge protocols are probabilistic assessments, which means they don't prove something with as much certainty as simply revealing the entire information would. They provide unlinkable information that can together show the validity of t
3 min read
Non-Interactive Zero Knowledge Proof
Non-Interactive Zero Knowledge Proofs (NIZKs) have emerged as a main concept in the world of cryptography and engineering mathematics. These proofs enable one party to prove the validity of a statement to another party without revealing any additional information beyond the validity of the statement itself. Unlike traditional zero-knowledge proofs
6 min read
Generalized Proof-of-Stake Mining in Cryptocurrencies
Generalized Proof-of-Stake (GPoS) is a concept in cryptocurrency mining that builds upon the traditional Proof-of-Stake (PoS) mechanism. While PoS allows users to validate transactions and create new blocks based on the number of coins they hold, GPoS expands on this idea to include a broader range of staking methods and reward structures. GPoS int
8 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
How to use GANACHE Truffle Suite to Deploy a Smart Contract in Solidity (Blockchain)?
There are various processes involved in deploying a smart contract using Ganache and Truffle Suite: 1. Install Ganache first. Ganache is a personal blockchain for Ethereum development. You must first download and install it. It is available for download from https://www.trufflesuite.com/ganache, the official website. 2. Install Truffle Suite: The n
4 min read
Introduction to Blockchain technology | Set 2
Blockchain technology has been garnering great hype recently. It gained popularity after the introduction of Bitcoin in 2009 by the person or group of people by the pseudonym Satoshi Nakamoto. Many people confuse and believe blockchain to be bitcoin. But, bitcoin is one application of the blockchain technology. There are many other applications and
5 min read
What is Blockchain Wallet?
A blockchain wallet is a software that enables sending and receiving cryptocurrencies such as Bitcoin, Ethereum, etc. It stores the record of transactions and also public and private keys which are used to perform transactions. A public key is similar to an account number. If A wants to send some money to B using Bitcoin when A sends the public key
10 min read
What is Consortium Blockchain?
A consortium blockchain is a group of multiple financial institutions where each financial institution has its private blockchain. In this blockchain, a pre-selected set of nodes are allowed to control the consensus process. What is Consortium Blockchain?Consortium blockchains are managed and run by a number of organizations or entities. As a permi
9 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
Consensus Algorithms in Blockchain
Prerequisites: Introduction to Blockchain technology | Set 1, Set 2 We know that Blockchain is a distributed decentralized network that provides immutability, privacy, security, and transparency. There is no central authority present to validate and verify the transactions, yet every transaction in the Blockchain is considered to be completely secu
5 min read
Blockchain to Secure IoT Data
INTRODUCTION: Internet of things and Blockchain are two technologies which are gaining popularity since the time of their creation. In the near future, IoT is going to influence almost every day-to-day items we use. As the usage of this technology increases, the threat to misuse it also increases. Existing technologies are not enough to deal with t
7 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
What Are Cryptoasssets in Blockchain
So as you are aware of Blockchain technology and have of the basic idea of it, in this article we will be talking about the cryptocurrency part of the blockchain, more specifically about the crypto-assets. As we know, an asset is something that holds value, similarly, a crypto-asset is an asset that is based on cryptography. Mostly it is a virtual
3 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
Features of Blockchain
Here In this article, we will discuss the features of blockchain technology and how they make it a revolutionary and highly desirable platform for various applications. A blockchain is a chain of blocks that contains information. Most people think that Blockchain is Bitcoin and vice-versa. But it’s not the case. In fact, Bitcoin is a digital curren
7 min read