What Is Proof Of Work (POW) In Blockchain

Search for a command to run...

No comments yet. Be the first to comment.
Large codebases are intimidating. Isn't it? Whether you are a new contributor trying to understand the world of open source and have come across an unfamiliar repository, or a developer returning to y

Hey guys, If you are reading this article right now I am glad you took an interest in trying out my small project. For the first step fork and clone the GitHub repository: https://github.com/<your github username>/theImageGpt Navigate to the project...
Staying productive was never an issue for me when I was in high school. I was consistently energized and motivated. However, the lockdown in 2020 brought about a drastic change in my productivity levels. That year marked a significant milestone for m...

Well recently I have again started writing articles on this blog and I plan on continuing it. Earlier I used to run another blog on a different niche and I was using WordPress for it. There I used to have a column where I would add a newsletter secti...

Hello, Aniket here. I am writing an article after such a long time. In this article, I will show you how I created a chat application in React using Appwrite. First, let me tell you about appwrite. Appwrite is an open-source backend as a service (BAA...

Proof of Work is a consensus mechanism cryptocurrencies use to validate transactions and add new blocks in a blockchain network.
In a blockchain network there are nodes all around the world that participate in the network and ensure that the network is stable and running correctly. This ensures the decentralisation of a network.
First, let us understand what a consensus mechanism is. The major problem that bitcoin solved in decentralisation was the double spending problem. Double spending means that suppose Anil sends Pooja a bitcoin and then again sends the same bitcoin to Shubham before the transaction is recorded. Since bitcoin is a digital currency it was a very big problem. This would decrease the value of the coin.
The double spending problem does not happen with physical currency because we have banks maintain a ledger to verify the transactions but in a blockchain network there is no middleman.
So, bitcoin introduced Proof of Work which is a consensus mechanism in which all the nodes participating in the network verify all the transactions that are happening and choose which transactions are legitimate and add them to the network.
Let us discuss how this process works more in detail
First, you need to know how a transaction happens in a blockchain
You can refer here. This article has explained this in detail.
Now each node is given a complex mathematical puzzle that they need to solve and whoever solves first is rewarded with bitcoins. In this way, new coins are generated in the market and blocks are added to the blockchain. Some blockchains have different processes but overall the idea is the same.
A miner needs to find a NONCE ( number only used once ) by using computational power and if he/she finds it the transaction is validated by all the other nodes present in the network and if everyone agrees then it is added to the blockchain.
The problem of double spending is solved here since each node maintains a ledger containing all the transactions which are updated whenever a transaction happens. So even if one node tries to double spend, the transaction would get invalid as the ledgers would not match with the rest of the nodes.
This is known as Proof of Work.
The proof of Work mechanism requires a lot of computational power to work. The more complex the problem the more power is required. This increases the cost for the miners since more hardware is required and more energy is consumed.
According to some news reports, this is ultimately harmful to the environment since a high amount of energy is consumed by the miners.