Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
The properties and features certain blockchains have solely hinge upon the problems they are to solve. This simple idea has an infinite load of underlying content related to popular delusions among people, reviews on blockchain classifications and so on. In order to avoid repetition in this article, we will delve deeper into the most popular consensus mechanisms. Understanding of how they work and namely when and why do you need one or another mechanism will help you break the myths about blockchain and get a practical understanding of the technology. Before we identify each consensus mechanism, itâs better to understand why do we actually need them.
Blockchain is only the means for organizing data
Letâs consider blockchain point by point:
-
A new approach to organizing database
-
Stores history of every single change that has ever occurred
-
Arranges data in the chain of blocks, rather than processes the last state of the accounting system
As you can see, thereâs no any reference to decentralization here. Because blockchain itself doesnât organize trustless relationships in a decentralized environment. Blockchain only provides a very flexible and secure way of arranging data, that in the combination with the consensus mechanism may allow for a successful operation of a fully or partially decentralized system.
Conclusion: Blockchain technology allows you to build a block-structured database that stores the whole history of changes, but whenever you need to organize trustless relationships in a decentralized environment â there is no way around the consensus mechanism.
So, what does consensus mechanism do?
Look, itâs pretty easy. Consensus is a way of coming to an agreement. A decentralized system without a common consensus will fall into pieces in a second. It doesnât even matter whether participants of the system trust each other particularly or do not trust at all. All the same, they need to agree on certain principles of functioning that would be common for all of them. And this is the direct role of a consensus mechanism.
For the moment, there are plenty of various consensus mechanisms. Before we review the most popular, it is important to understand two things:
-
So far, there is no one universal method of reaching consensus
-
At the same time, there is no good or bad algorithm â itâs only about the requirements of the accounting systems.
Proof of Work (PoW)
Explanation of Proof-of-Work mechanism is in its name. In order to participate in transaction validation, you should publicly proof that you did certain work. This rule prevents an attack on the system when an adversary creates fake voters. The more work youâve done â the more chances you have to propose the next block (and obtain the reward). But, itâs important to note, that itâs only the chances, but not a general rule.
If you have one lottery ticket and your friend â 10, it doesnât mean that youâre doomed to defeat.
POW is considered the easiest and at the same time the most sustainable algorithm (in the context of complete decentralization and anonymity).
Saw is always more reliable than the mill.
Thatâs how you can describe POW by the side of other consensus mechanisms. Itâs not that fast, but firm.
In order to increase the winning chances, users aim to increase the amount of work they do, (Speaking of Bitcoin, they need better mining equipment) which usually leads to some kind of âarms raceâ.
Proof of stake (PoS)
This mechanism is very similar to voting among shareholders in a company â whoever holds the largest slice of the pie gets the highest authority. So, itâs not about the number of voices but the weight of them.
Users who hold a lot of coins on stake have high incentive to make sure that consensus between the nodes of the system is achieved in the right way. Above that, itâs of their concern to keep the network safe from all kinds of attacks, failures, fake transaction confirmations and other kinds of swindlery.
The advantage of the algorithm is a simple motivation for validatorsâ honesty. Disadvantage â itâs actually hard to build the PoS-based system that considers all possible malicious scenarios of behavior.
In PoW, 51% attack is theoretically possible, though it doesnât really make a lot of sense for the attackers. While the PoS system will have serious problems if more than half of stakeholders collude with each other. Apparently, the design of PoS system is much more complex than that of PoW.
Up to now, thereâs yet no any time-proven and guaranteedly resistant system based on the PoS in the anonymous environment. They're all at the stage of development.
Delegated Proof of Stake (DPoS)
The main idea with DPoS is that each user can vote for the delegates â those who approve transactions. In general, the identities of delegates are initially known. They can be some respected people known for their achievements in the sphere, who have accounts in the system for which regular people vote.
It is important to note that system considers the weight of votes. The more native currency (stake) a particular voter has â the more he/she can influence the âelectionâ.
Due to the limited amount of validators, the DPoS algorithm provides for much higher validation capacity and faster transaction confirmation. The best example is BitShares. Having DPoS implemented, it is so far the only decentralized system that is able to compete against centralized services such as Visa or MasterCard. In this way, DPoS allows reaching a compromise between capacity and decentralization.
Proof of Importance (PoI)
PoI is kind of an extended version of PoS. Apart from considering the amount of coins participants possess, the algorithm recognizes the behavioral component between them. (For example, where, when and how often the coins are transferred) In such manner, you can eliminate the situation when only the rich become richer. Among the most popular implementations of PoI thereâs NEM (New Economy Movement).
Multisignature/Byzantine Fault Tolerance (BFT)
These algorithms are primarily used for achieving consensus among a limited group of people (In case of Multisignature, itâs a question of few participants, in BFT â dozens). BFT usually makes sense when all the parties in the process know each other, that said, they are apt to change very rarely. A good example is voting of housemates on the subject of collectively-organized repairs.
Federated Byzantine Agreement (FBA)
FBA was initially applied in Ripple and later improved in Stellar. The mechanism permits reaching consensus among a large number of participants, the total number of whom is not known.
Each participant chooses to trust a limited (by number) group of other participants, forming a circle of trust in which they easily reach consensus. Eventually, you get a number of trusted circles that somehow or another overlap, making it possible to achieve an overall consensus in the whole network.
You can draw a parallel with how seeds of revolution are sowed in the society. People spread âthe wordâ from mouth to mouth. As a result, the society becomes enthusiastic with a general idea because the chats overlap with each other.
Conclusion
We have examined the most popular consensus mechanisms, which were tested in the real-world uses. Though, itâs important to remember that none of them is absolutely perfect and there is no any universal method of reaching consensus in a decentralized or partially decentralized environment. Each has its pros and cons. Thatâs why algorithms are being continuously updated and complemented with various add-ins. Sometimes the approaches from even different consensuses mix together forming hybrids.
As you can see, the creativity field for developers is quite broad. And thatâs an exceptionally good news. Because blockchain without consensus is similar to a Smartphone without the Internet connection â kind of makes sense, but barely.
About the author
Dr. Pavel Kravchenko is the Founder of Distributed Lab, blogger, cryptographer and PhDÂ in Information Security. Pavel is working in blockchain industry since early 2014 (Stellar). Pavel's expertise is mostly focused on cryptography, security & technological risks, tokenization. He considers the company's mission in a creation of an open ecosystem that uses uniform payment and asset management protocol - so-called âfinancial web'â
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.