Consensus models are the mechanisms that allow nodes to work together to maintain the integrity of the blockchain and ensure that all transactions are accurate and secure. To ensure that nodes agree that a transaction is valid, consensus models use different mechanisms. Let's see what consensus models are, how they work and which ones are the most popular.
What are consensus models?
In the world of blockchain technology, consensus models are the protocols used by network nodes to reach agreement on the validity of transactions carried out on the blockchain. In other words, consensus models are the mechanisms that allow nodes to work together to maintain the integrity of the blockchain and ensure that all transactions are accurate and secure. Consensus models They are essential for the functioning of blockchain technology because without them, the network could not remain decentralized and reliable.. Instead of having a central authority that validates transactions, validation is done through the cooperation of the nodes that are part of the network. This means that Any node can participate in the validation of transactions and there is no single entity that has absolute control over the network.
How does a consensus model work?
Consensus models work in different ways, but in general, They involve network nodes working together to validate transactions. The validation process begins when a node proposes a transaction and sends it to the network. The other nodes then review the transaction and compare it to previous transactions on the blockchain to make sure it is valid. If a majority of nodes agree that the transaction is valid, then it is added to the blockchain and considered confirmed. To ensure that nodes agree that a transaction is valid, consensus models use different mechanisms. Some consensus models use proof of work (PoW), which requires that nodes perform intensive calculations to validate transactions. Other consensus models, such as proof of stake (PoS), require that nodes have a certain amount of cryptocurrency tokens to validate transactions. There are also other consensus models such as Proof of Authority (PoA) and Proof of Time (PoT).
Scheme of representation of a consensus model. Source: MercadoCrypto.
What are the most popular consensus models?
The most popular consensus models in blockchain technology include proof-of-work (PoW), proof-of-stake (PoS), and proof-of-authority (PoA).
Proof of Work (PoW):
Proof of work is the consensus model used by the Bitcoin network. In this model, nodes must perform intensive calculations to validate transactions. The nodes that perform these calculations are known as miners and receive rewards for their work in the form of new Bitcoin coins. The PoW has been criticized for its high energy consumption and its slow confirmation of transactions, that is why Ethereum decided to update the Merge to migrate from a proof-of-work consensus model to a proof-of-stake one.
Proof of work operation. Source: Ledger.
Proof of stake (PoS)
Proof of stake (PoS) is a consensus model used by several cryptocurrencies, including Ethereum. In this model, Nodes must have a certain amount of cryptocurrency tokens to validate transactions. Nodes that validate transactions on the network receive rewards in the form of new cryptocurrency coins. PoS has been considered more efficient in terms of energy consumption. It is the consensus model currently used by the BNB Chain, Ethereum, etc…
Proof of stake operation. Source: Affidaty.SpA
Proof of Authority (PoA)
Proof of authority (PoA) is another consensus model used by some cryptocurrencies and private blockchain networks. In this model, instead of nodes performing intensive calculations or holding a certain number of tokens, Validation of transactions is carried out through a group of nodes designated as authorities. These nodes They are pre-selected and are responsible for ensuring that the network functions properly. Nodes that are not authorities on the network do not have the ability to validate transactions, making PoA a more centralized consensus model compared to PoW and PoS.
Differences between the consensus models that we have explained. Source: Changelly.