Not All Blockchains are Born Equal: Finding the Right Consensus Algorithm

CoinSpeaker
Not All Blockchains are Born Equal: Finding the Right Consensus Algorithm

They form the backbone of blockchain technology, but consensus algorithms have a severely negligible presence online. Here, I aim to set the record straight on this invaluable process in digital security, while weighing up the best approaches in practice today.

What is a Сonsensus Algorithm?

Consensus algorithm is the name given to the process in computer science that’s used to achieve an agreement on a single data value among distributed process systems – fitting perfectly into blockchain’s distributed ledger framework.

Image Source: 101 Blockchains

The role consensus algorithms play in blockchain is to gain a level of reliability in a network built on a series of nodes. This means that if a transaction is set to take place, the algorithm will spring to work in communicating across the network in a bid to verify if the action can take place. The same process also applies to the creation of new nodes of data on a blockchain or synchronising network machines to ensure that there’s a consistency from the whole consensus.

Consensus algorithms also have to be smart enough to anticipate breakdowns in communication within a network. Automatically, the algorithm will assume that some processes and systems will be unavailable and that some communication will be lost as a result. To counter this, the consensus algorithm must be fault-tolerant and work towards achieving a predesignated consensus, or approval, from the majority of machines in the network at least.

Why are They Important?

Image Source: FreeCodeCamp

Consensus algorithms are vital in ensuring that blockchains remain wholly decentralised. Due to the decentralised nature of blockchain, there will never be a centralised authority in place to verify and update the ledger with transactions and fresh data. Due to this, the stakeholders in the network have to decide on a peer-to-peer basis as to which transactions are to be added to the blockchain.

Such a process of achieving a consensus in a widely distributed ledger would be impossible if not for a smart algorithm capable of automatically communicating and verifying the new transactions with all relevant machines on the network.

Without the presence of a fitting consensus algorithm, decentralised systems would have to give way to a centralised power that holds and processes data in one place – making the information it stores vulnerable to digital attacks and tampering by somebody who manages to gain access to its location.

Contemporary Approaches

Not all blockchains are born equal, and many vary greatly depending on the type of consensus algorithm they employ.

Image Source: Blockgeeks

Proof-of-Work (PoW): Implemented by household names of the cryptomarket like Bitcoin, Ethereum and Litecoin, the PoW approach was the first consensus algorithm to be adopted, and is widely used today.

PoW is a simple construct and known to be highly resistant to cyber attacks. This approach relies wholly on the computational powers of each member of its network to solve problems and reach a consensus when determining a transaction.

The fact that it requires the input of its network makes PoW very difficult to hack (any successful attack would require at least 50% of the hash rate of the entire network, for starters), but it also makes the consensus algorithm extremely wasteful with power. Some estimations suggest that Bitcoin uses 32TWh of energy per year, which equates to roughly the same amount as the entire nation of Denmark.

As a result, many industry experts believe that, while PoW is reliable, it’s already a little long in the tooth, and the likes of Ethereum are already said to be exploring alternative measures in upholding their decentralised values, especially when you consider that the entire crypto industry can save around $36 billion a year by using a decentralised system, according to FOTON.

Image Source: Foton (Centralised system (left) and decentralised system (right))

Proof-of-Stake (PoS): Regarded, by Ethereum at least, as the heir to the blockchain throne, PoS acts as a much more energy efficient, much more decentralised, incarnation of the consensus algorithm.

The transfer of crypto-giant Ethereum from PoW to PoS signified the potential that the alternative approach holds.

Where PoW requires the involvement of the network to work together in building nodes, PoS operates on probability. The Blockchain Council summarises PoS thus:

“Proof of Stake relies on a probabilistic model for selecting validators where the probability of a validator getting a block to solve is directly proportional to the amount of Ether they have staked to secure the network. The staked Ether is held as collateral which can be seized if any wrongdoing was seen on the part of the validator. The underlying math puzzle is similar to that employed in Proof of Work. However, the complexity of the problem is significantly reduced.”

Byzantine Fault Tolerance (BFT): Named in reference to an old mathematical conundrum, ‘The Byzantine Generals Problem’, this approach to the consensus algorithm is based largely on mass coordination. In the conundrum, a series of Byzantine generals have surrounded a city with their respective armies – they must agree on a time of attack or retreat. If a consensus isn’t agreed by the generals then the operation would unravel into a disaster.

The creators of the consensus algorithm saw a link between the issue of the Byzantine generals and that of finding a consensus within a distributed ledger. In some applications where chain cohesion is imperative, like in digital asset management platforms, the act of creating a swift communication string between networks forms the cornerstone of the blockchain used.

The perks of the BFT approach is that it’s a low-cost solution that’s scalable. However, it’s still a somewhat niche approach that’s yet to win over the trust of its peers.

Room for Improvement

The listed consensus algorithms may be the market leaders as far as today’s usage of blockchain is concerned, but there’s plenty of scope for organisations looking to improve on the models already in place.

For example, blockchain security startup, REMME, have created a ‘Proof-of-Service’ consensus algorithm that aims to address the drawbacks of its predecessors. It’s through the use of ‘masternodes’ that the formula works – by ensuring consistency and fault tolerance, masternodes are responsible for facilitating the registration and revocation of public keys on a blockchain and overseeing the conversion of transactions into additional blocks on the chain.

By utilising masternodes, the Proof-of-Service consensus algorithm maintains a tight level of security while relieving the energy burden on the rest of the network – allowing for a trustworthy and somewhat more environmentally friendly approach to blockchain than what can be seen in its predecessors.

While Proof-of-Work remains the kingpin holding up many of the most popular blockchain-based cryptocurrencies of today, Ethereum’s unease at its antiquated framework has signalled something of a gold rush among companies in finding the right consensus algorithm to drive the industry forward.

Like a siege of Byzantine guards, we may be waiting for one algorithm to take control and hold itself up as the blueprint for others to follow.

Not All Blockchains are Born Equal: Finding the Right Consensus Algorithm

LEAVE A REPLY

Please enter your comment!
Please enter your name here