What is Proof-of-Work (PoW)?
| — Proof-of-work (abbreviated to PoW) is one of the consensus mechanisms for achieving agreement on the blockchain network to confirm transactions and produce new blocks to the chain.|
— With Proof of work, miners compete against each other to validate transactions and get rewarded.
— The probability of being selected to build the next block is linked to computation power.
You keep hearing the phrase, but you still have no idea what it means – don’t worry, you’re not alone! Consensus mechanisms are a complex subject, and most don’t understand them when they buy their first cryptocurrency.
However, consensus mechanisms provide the building blocks of the public blockchains we know and love. Basically, the way a blockchain processes your transactions relies entirely on its consensus mechanism.
Proof-of-Work was the first ever consensus mechanism, created for the Bitcoin network by anonymous founder, Satoshi Nakamoto. Since then, it has inspired the creation of plenty more blockchains than just Bitcoin. In fact, the second biggest crypto, Ethereum, also once used this consensus mechanism too.
Besides being the base of many blockchains, Proof-of-work actually created the building blocks for more recent consensus innovations, such as Proof-of-stake.
But before we get there, let’s go back to the beginning. In fact, what is a proof-of-work blockchain exactly?
What is Proof-of-Work?
Proof-of-work (PoW) is a consensus mechanism for blockchain networks that is the underlying consensus model of Bitcoin.
In the words of its anonymous founder, Satoshi Nakamoto,
“Proof-of-work also solves the problem of determining representation in majority decision making. If the majority were based on one-IP-address-one-vote, it could be subverted by anyone able to allocate many IPs. Proof-of-work is essentially one-CPU-one-vote. The majority decision is represented by the longest chain, which has the greatest proof-of-work effort invested in it. If a majority of CPU power is controlled by honest nodes, the honest chain will grow the fastest and outpace any competing chains.”
If that sounds a bit wordy, let’s break it down. The fundamentals aren’t as complicated as you might think.
How Does Proof-of-Work (PoW) Work?
PoW relies on the conversion of electrical energy into digital blockchain “weight,” affording unforgeable costliness to PoW blockchains like Bitcoin in the process. Driving an incentive structure that produces a byzantine fault-tolerant (BFT) distributed network. Put simply, PoW relies on a mathematical puzzle to solve for a value below a specific threshold (nonce) that produces the next block broadcast to the network.
Block leaders, those who produce the next block, are chosen in a lottery-like format corresponding directly to their computing contribution (i.e., hash) power. Put simply, the longest chain has the most work, and therefore, the most power.
There are two primary participants in the PoW consensus model: miners and full node operators.
Miners in a PoW Consensus
Miners in a proof-of-work network compete to produce a block and broadcast it to the network. The winning miner then recieves both the block reward and any transaction fees as a reward. This incentivized miners to remain honest in their propagation of blocks.
On the bitcoin network, these miners produce a block every 10 minutes, and the current reward is at about 12.5BTC per block. While that may seem like a lot, mining crypto is actually quite costly.
In short, crypto mining requires expensive hardware equipment. Plus, there’s no way of getting around the complex computations that creating a block involves. The only way to solve the equation is through brute force and continual computation. This means it takes a large amount of power, which also has its own costs.
Now you know miners recieve rewards, but what about bad actors who might try to subvert the mining process?
Well, firstly, this would disturb the whole integrity of the network, making BTC less valuable. This means their investment in hardware would become more costly since the ROI in BTC awarded from the block reward would be worth less than before. Plus, miners earn their block rewards directly in BTC, not cash. This means bad actors would only harm themselves by organizing attacks on the network.
This system means that, put very simply, miners convert a real-world resource (electricity) into the production of BTC. Further, these costly consequences simply protects it against bad actors,
Then, since proof-of-work chains rely on hashes, transactions are nearly impossible to change. To learn more about mining, check out the full article on Bitcoin mining.
Full Node Operators
But it’s not just miners participating in a proof-of-work consensus. Bitcoin, like all blockchain networks, rely on crypto nodes to validate transactions. On the bitcoin network, full nodes are software clients running the Bitcoin software that automatically validate and propagate transactions and blocks in the network.
Using cryptographic proofs and Bitcoin’s consensus rules, full node operators are the heartbeat of the network and the ultimate validators of the network’s state. Full node clients can also be mining clients, and clients reject invalid blocks and transactions on the network. To explain, it’s down to the full node operators to decide which transactions they will (or won’t) add to a block.
Disadvantages of Proof-of-Work
While Proof-of-work is known for its impressive security, it also has its downsides. Its energy-intensive design and low-performance capacity for on-chain transaction execution has attracted criticism. While proof-of-work itself is indeed consumptive of power, in practice it works out quite differently. That’s because the vast majority of Bitcoin’s mining is executed using renewable energy. Balancing the costs of energy expenditure with Bitcoin’s overall value and wealth generation is a convoluted task. Regardless, PoW is a significant innovation.
Proof of Work (PoW) Vs Proof of Stake (PoS): What’s The Difference?
So now you know what proof-of work is, you might be wondering how it compares to other consensus mechanisms like proof-of-stake.
Well, PoW consensus mechanisms rely on miners to solve very complex equations with very powerful computing equipment. As mentioned, this also consumes power which can be costly, even when it’s environmentally conscious. As an answer to this, proof-of-stake was created. Instead of miners, proof-of-stake uses validators. Instead of expending computing energy to solve a puzzle, validators put up a certain amount of funds as collateral. This is called crypto staking. While these methods differ in security and execution, they aim to achieve the same thing:
To explain, bad actors on a proof-of-work network would need an impossible amount of computing power to overrule 51% of the network, and tampering with their own transactions would be against their interests of making rewards. On a proof-of-stake network, a bad actor would need to own more than 51% of the coins staked at that time. Controlling 51% of all staked coins on the network is so difficult that it makes such an attack extremely unlikely. Plus, the punishment of losing your stake via slashing incentivizes validating transactions honestly. Using either method, there’s a reward for behaving honestly and a punishment for acting maliciously. However, proof-of-work is still the most secure option, as it’s almost impossible to hack.
Proof-of-Work in Bitcoin and Beyond
Whether knowingly or unknowingly, every blockchain transaction you make requires a consensus mechanism of some kind. While the security focused usually side with proof-of-work chains like Bitcoin, some are looking for other options that can build upon its success. While proof-of-work was the first consensus mechanism, it seems to be far from the last. And it’s thanks to this mechanism, that we even have a history of cryptocurrencies. That said, while many networks move away from this consensus, others move towards it; With more than a decade-long existence, Bitcoin is proving the inherent value of a system that is both secure and fair; while providing the framework for many other networks in crypto past and future.
Knowledge is power – so keep on learning! If you enjoy getting to grips with crypto and blockchain, check out our School of Block video Ethereum Layer 2.