Since the blockchain is decentralized and has no middlemen, different miners in the network need to have a process for agreeing on which transactions are valid. This process is called a consensus mechanism, which is present in the Consensus layer.
Different blockchains have different consensus mechanisms. Over the past decade, multiple consensus mechanisms have been developed featuring different rules and benefits.
In this module, we'll be discussing the top 4 most-used consensus mechanisms: Proof-of-Work (PoW), Proof-of-Stake (PoS), Delegated Proof-of-Stake (DPos), and Proof-of-Authority (PoA).
Important: To simplify our discussion on consensus mechanisms, we'll use a group of five people as an analogy. Each person represents a miner in a cryptocurrency network. This will be our base example moving forward.
Let’s start off with the first consensus mechanism that defines the cryptocurrency industry, the proof-of-work (PoW) consensus mechanism, which is the consensus mechanism of Bitcoin. Since it is the first consensus mechanism, it is also known as the original consensus mechanism.
Here’s how it works:
In a nutshell, this is how proof of work works. Computers (miners) around the world solve really hard puzzles to make sure that all the transactions in the network are real and not fake (the act of validating transactions), and the miner that solves the puzzle first gets a reward.
However, the cost of this entire process is quite steep since the miners need to consume electricity and have the proper hardware. It's called 'Proof-of-Work' because when miners solve a puzzle, the electricity and computing power used to find it prove that the miner carried out actual work.
This table summarizes the advantages and disadvantages of a PoW consensus mechanism.
The PoW is the first blockchain consensus mechanism, but did you know most cryptocurrencies are actually operating with another type of consensus mechanism? This next consensus mechanism is called proof-of-stake, which requires little to no hardware in order to validate transactions.
Proof-of-Stake (PoS) consensus mechanisms are mechanisms that mostly require “staking” a network’s tokens in order to validate transactions in the network.
To explain how PoS works, we will using our steps from earlier:
In a similar way proof of stake works by people contributing their tokens to help solve the puzzle of validating transactions, and the more tokens they contribute, the more say they have in how the network works and how rewards are distributed.
The ones who validate transactions are called validators instead of miners. Validators deposit a minimum amount of cryptocurrency into a protocol (staking) instead of using hardware and electricity. Several cryptocurrencies, such as Ethereum, Near, and Flow, have PoS as their consensus mechanism.
The next consensus mechanism is arguably a potential improvement of the PoS consensus mechanism. By making the validation process less random, participants in the network (nodes) can be more efficient, and the network can focus on scalability.
Delegated Proof-of-Stake (DPoS) is similar to PoS, with a slight change in how they function.
Here’s how it works:
This is how delegated proof of stake works. People can choose a representative to help make decisions about verifying transactions, and the representative who is chosen by the most people will have the most say in how the token works and how rewards are distributed. Transaction times vary from each DPoS network to another. However, they are generally shorter than PoS networks. Now, let’s proceed to our final consensus mechanism for this module which is also related to PoS.
Proof-of-Authority (PoA) is a variant of PoS.
Going back to our group of friends:
In PoA, a small group of trusted validators are chosen to create new blocks and verify transactions on the blockchain. They are responsible for making sure the blockchain is secure and that all transactions are valid. Because they are trusted, they have the authority to make decisions that keep the blockchain working well.
This model is best suited for hybrid blockchains. VeChain (VET) is a cryptocurrency that uses PoA.
Interestingly, the majority of cryptocurrencies in the space do not actually use a single one of the consensus mechanisms mentioned above. Most of them use lesser-known consensus mechanisms and even a combination of consensus mechanisms to innovate and try to improve upon the existing consensus mechanisms' flaws. These combinations give rise to newer consensus mechanism archetypes that might even be the new norms in the near future.