The Proof of Work vs Proof of Stake: An In-Depth Discussion
At the outset, remind yourself of the traditional ways of making financial transactions. Note that there is either a bank or the government, or some other authority that guarantees the transactions’ validity.
Now, recollect the most general explanation of Blockchain technology. It is a distributed ledger with no trusted intermediary or central governing body. The definition itself gives rise to two obvious questions: Who determines a blockchain transaction’s validity and how is it done?
The answer to the first question is straightforward. The nodes or members of the network participate in the validation process. In other words, a blockchain works upon the consensus of the nodes in its network.
The second answer, however, entails a variety of aspects and, in fact, many complexities. In blockchain, the consensus is reached using specific ‘consensus mechanisms.’ Among these, the Proof of Work (PoW) and the Proof of Stake (PoS) mechanisms are the most discussed ones due, primarily to their immense potential to establish the validity of blockchain transactions.
Both have their upsides, as well as their downsides. This insight into the Proof of Work vs. Proof of Stake debate intends to delve into depths and rise again to understand the subject.
Consensus Mechanism and Security
It is the method of reaching an agreement in a blockchain system, based on specific computational algorithms. These algorithms work with mathematical proofs and are thus virtually fault-free in themselves.
Although there can be many consensus mechanisms (and in fact there are), PoW and PoS are the most common. The process by which nodes validate transactions by solving a mathematical puzzle is called mining. The network’s consensus mechanism determines a node’s ability to participate in the mining process.
That said, it is somewhat evident that ensuring secure and valid blockchain-based transactions is one of the significant functions of consensus mechanisms. Later in this insight, you’d see that these mechanisms are devised to tackle the problems of blockchain hacks and frauds.
Blockchain technology is much revered for being immutable and secure. Yet, it would indeed be a mistake to think that the hacker community isn’t looking for newer ways to breach newer technologies. Obviously, hacking a blockchain is way more difficult than committing any other cybercrime. But it is not impossible. Not yet, at least!
Although there are a variety of breach attacks, the blockchain projects are affected by two of them the most – Distributed Denial of Service (DDoS) and 51% attacks. Since, the significant differences between PoW and PoS emanate from their ability to tackle these attacks, let’s discuss these two briefly here.
- Distributed Denial of Service
For this attack, the hackers initiate multiple, fake requests. Consequently, they consume most or all of the network’s processing resources. The obvious result? The network server crashes! When it happens, every other node in the network is cut off from it.
- 51% Attack
Theoretically, if a node acquires 51% of the network’s total mining power, it can bend the network according to its wishes. The attacker who controls a majority of the network can,
- Validate fraudulent blocks beneficial to it.
- Revert previously validated transactions.
- Enforce double-spending.
Another crucial point here is that smaller networks are more vulnerable to the majority attack. Why? Because it is easier for someone to acquire control over 51% of the network. Renting the required computational power, for about an hour or so, should be enough!
Proof of Work vs Proof of Stake at a glance
|Proof of Work||Proof of Stake|
|Participating nodes are called miners||Participating nodes are called validators or forgers|
|Mining capacity depends on computational power||Validating capacity depends on the stake in the network|
|Mining produces new coins||No new coins are formed|
|Miners receive block rewards||Validators receive transaction fees|
|Massive energy consumption||Low to moderate energy consumption|
|Significantly prone to 51% attacks||51% attacks are virtually impossible|
What is Proof of Work?
Although the idea existed before, Satoshi Nakamoto popularized the PoW consensus. The Bitcoin blockchain was the first major implementation of the PoW consensus protocol. So, PoW is often referred to as blockchain’s ‘original’ consensus mechanism.
Initially, at least, PoW was hailed as the most reliable method for blockchain consensus. It enabled the realization of the decentralized dream and ruled out intermediaries at the same time, ensuring valid transactions.
However, as the size of the blockchain networks grows, the problems of this mechanism become increasingly apparent. And, at times, it is impossible to tackle them.
How does Proof of Work work?
In PoW, miners have to solve a cryptographic puzzle to validate a transaction. One might visualize it as a race, where the miners are competing to be the first one to solve the puzzle. The answer to this puzzle is known as a hash.
So, what’s in it for the miners? For every transaction they validate, miners are rewarded with the blockchain’s native cryptocurrency, plus, a transaction fee.
The puzzles are immensely complex, and it requires massive computational power to solve them. The implementation of the PoW consensus protocol can be summarized as follows,
- A new transaction is broadcast to the network.
- Miners rush to compute a hash value that matches with that of the transaction.
- The first one to solve the hash receives the reward.
- A new “block” is created, which includes the recently concluded transaction.
A part of every new hash contains the hash value of the previous transaction in the block. It does two things. One, it prevents miners from validating fraudulent transactions. Second, it prevents double-spending.
Presently, the Bitcoin network mines one block of transactions every 10 minutes. Certain alterations to the Bitcoin blockchain have enabled Ethereum, the other primary user of PoW, to complete this task in 16 seconds (approx).
The complexity of a PoW puzzle depends upon the number of nodes in that network. Alongside, a puzzle’s complexity is directly proportional to the computational power required to solve it. It causes certain severe ramifications for a PoW-based blockchain.
Since we are interested in understanding the difference between PoW and PoS, we must resist the urge to speak about the problems of the PoW mechanism at this point. Instead, we’d discuss those in relation to the PoS mechanism.
What is Proof of Stake?
Faced with the problems posed by Bitcoin’s PoW protocol, the blockchain community is looking for a new, more beneficial way of establishing consensus. The idea of the PoS consensus was propounded by Scott Nadal and Sunny King in 2012.
Presently, the Ethereum community is working relentlessly for the mainstreaming of the PoS protocol within the blockchain world. Ethereum’s version of the PoS protocol is called Casper. When launched, it is expected to do away not only with the problems of the PoW protocol, but also those of the PoS protocol itself. For a detailed understanding in this regard, the interested reader might refer to our insight on What is Ethereum.
In PoS, computational power is replaced by currency power. It depends on the number of tokens a node has in its wallet. In other words, your ability to validate a transaction depends on how much ‘stake’ you have in the network.
It’s worthwhile to note here that there will be no ‘miners’ in the PoS system. Instead, there will be validators or forgers. Why? Because there will be no block rewards but only the transaction fee. Moreover, new coins will not be mined. Instead, they will be produced by the creators at the time of launching the network. This number would never change.
How does Proof of Stake work?
Instead of initiating a race to be the first validator, the PoS protocol randomly selects a validator based on their stake in the network.
Suppose, you have tokens worth 10% of the block in your wallet. It gives you the ability to validate only 10% of the block.
If Casper sees the daylight, we will witness the existence of validator pools. Nodes in a network will be able to join these pools at any point in time and any phase. Obviously, validators would be chosen from these pools. To uphold the principle of decentralization, there will be a ‘no priority scheme’ in this process.
So, at this point, we know what is Proof of Work and Proof of Stake. We also understand how they work. Now, we must determine which one is better and why?
Proof of Work vs Proof of Stake: Which one is better?
Massive Resource Consumption
The biggest problem with PoW is that it requires insurmountable amounts of computational power. By extension, it entails a mammoth electricity consumption. According to a report published in The Economist in 2018, Bitcoin alone consumes 22 Terawatt-hours of energy every year. The number almost equals the annual energy consumption of Ireland.
So, what’s the problem here? Most of this computational power is wasted as only one miner is rewarded for each block while thousands compete for it. Moreover, such magnitudes of energy consumption are a serious threat to the environment. Added to that, is the huge cost of the hardware required for mining under the PoW protocol.
An interesting fact! To ‘save’ on these costs, groups of PoW miners have set camps in places like Iceland. Why? To trap the geothermal energy available there and to generate electricity for crypto-mining. Elsewhere, as well, miners are known to develop small, often illegal, hydel projects to meet their energy needs.
To make things worse, PoW’s need for power will never be satiated. Because, as the network grows, so does the complexity of the algorithms. This, in turn, leads to an increasing need for hash power. So, we can witness an upward spiral where the power requirement is always on the rise.
The simple, token-based PoS system is a significant breakthrough in this regard. Indeed, PoS would also require computational power. But, that is expected to be equal to the power of a Raspberry Pi. Consequently, the implementation of full-scale PoS would mean a massive reduction in the overall power consumption of the blockchain world.
Partly to maximize the rewards, and partly to save on establishment costs, individual miners accumulate their resources and form mining pools. The biggest of the mining pools are full-scale, industry-like establishments. They employ hundreds of staff and invest millions of dollars in the process. As a result, some major issues arise.
First, they bring back centralization into the blockchain community. Second, they heighten the risks of a 51% attack.
A closer look at the mining charts of both Bitcoin and Ethereum reveals a staggering reality. More than 50% of the network’s hash power, is owned by three or four of the greatest mining pools.
If at any point, these pools decide to join hands and attack the blockchain, it would be impossible to stop them.
Under the PoS system, however, 51% of attacks are rendered virtually impossible. Here, to attack the blockchain, the node would have to own 51% of all the Ether (Ethereum’s native cryptocurrency) in the network. We are talking of billions of dollars here!
Arguably, it doesn’t seem impossible that someone purchases that much Ether. Now, there’s a catch! If someone tries to buy it, the demand in the market would be higher than the supply. Consequently, the price of the tokens would rise, and so would the overall cost. In all, 51% attacks under the PoS is so expensive that it ceases to be profitable.
Also, if you really have a 51% stake in the network, it would be foolish to attack it. Because, as and when the security of the network is compromised, the value of the tokens goes down. The value of your own wealth goes down, as well.
Apart from these, PoS is also expected to lay the foundations for a faster and more scalable blockchain. Some theoretical vulnerabilities of the PoS system have indeed been pointed out.
The Bitcoin blockchain popularised the Proof of Work protocol. Although it is still the dominant protocol followed by Blockchain giants like Bitcoin and Ethereum, it has some inherent problems. Among other things, its energy requirement is massive. And, given the presence of mining pools, it is highly prone to 51% attacks.
As a remedy, Ethereum is trying to popularise another method, namely the Proof of Stake. Ethereum’s version of PoS – to be called Casper – is expected to transform the blockchain world. It’ll not only eliminate the drawbacks of PoW but also open new horizons for Blockchain.
It’s true that PoS might also have its vulnerabilities. The benefits that it brings to the table are way more than those offered by PoW. To conclude, we might as well regard PoS as the next step to future developments in the Blockchain world.
In case you want to learn more about these consensus mechanisms or blockchain technology, request a consultation from our blockchain consultants.
Start a conversation by filling the form
All information will be kept confidential.
With the help of NFT marketplace developed on Ethereum blockchain, you can leverage open transaction history for ownership verification.
Exchange vs decentralized exchange vs swaps- exchange relies on a centralized entity to facilitate trade, whereas swaps and DEXs utilize decentralized technology and a transparent network.
Launch NFT marketplace on Cardano and leverage the benefits of scalability, sustainability, interoperability and security of third-gen Blockchain