follow us on twitter . like us on facebook . follow us on instagram . subscribe to our youtube channel . announcements on telegram channel . ask urgent question ONLY . Subscribe to our reddit . Altcoins Talks Shop Shop


This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here

Author Topic: What is Consensus Algorithm in Blockchain and Why Do We Need it?  (Read 3801 times)

Offline Ozark

  • Hero Member
  • *
  • Activity: 1130
  • points:
    6028
  • Karma: 12
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: November 20, 2021, 03:05:37 PM
    • View Profile

  • Total Badges: 20
    Badges: (View All)
    10 Posts First Post Fifth year Anniversary
What is Consensus Algorithm in Blockchain and Why Do We Need it?
« on: December 14, 2018, 04:15:02 PM »
Blockchains are not decentralized by default, which is where consensus protocols come into play. This post discusses how consensus algorithms work and gives examples of some of the most popular ones.


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 a 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 processing 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 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?

It’s quite simple. 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 several 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 a certain amount 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, a 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.

Until now, there’s no time-proven and guaranteed resistant system based on PoS in the anonymous environment. They're all at the development stage

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.


SOURCE

Altcoins Talks - Cryptocurrency Forum

What is Consensus Algorithm in Blockchain and Why Do We Need it?
« on: December 14, 2018, 04:15:02 PM »

This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here


Offline Xisadu

  • Baby Steps
  • *
  • Activity: 27
  • points:
    207
  • Karma: 2
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: September 25, 2023, 12:19:41 PM
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Fifth year Anniversary Fourth year Anniversary 10 Posts
Re: What is Consensus Algorithm in Blockchain and Why Do We Need it?
« Reply #1 on: January 25, 2019, 06:42:51 AM »
Excellent thread. And fully agree with conclusion.Yes, there is a huge space for developers as there are significant improvements in this technology waiting to be solved. However, this technology is taking currently only baby steps, there is path to significant development until it reaches maturity

Offline Hawk~Eye

  • Jr. Member
  • *
  • Activity: 61
  • points:
    153
  • Karma: 0
  • Crypto Hunter
  • Trade Count: (0)
  • Referrals: 1
  • Last Active: April 22, 2019, 08:47:58 AM
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    10 Posts First Post Fifth year Anniversary
Re: What is Consensus Algorithm in Blockchain and Why Do We Need it?
« Reply #2 on: February 02, 2019, 06:18:03 AM »
Oh! Such a good information with full details. Thank you for giving proper information and I think your information is helpful for every cryptolover!  :)

Offline CryptoYears

  • 1 strike
  • Sr. Member
  • *
  • Activity: 352
  • points:
    3833
  • Karma: -25
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: February 25, 2022, 09:05:56 PM
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Fourth year Anniversary
Re: What is Consensus Algorithm in Blockchain and Why Do We Need it?
« Reply #3 on: February 05, 2019, 09:20:11 AM »
Thanks for the explanation, it’s very helpful and any beginner should be interested in getting into this. But it is also important to say that this should not be the ONLY location.

I suggest looking at Cryptolinks, which is like the Crypto dictionary for multiple reasons. But here you can also find some useful links as far Crypto knowledge is concern and more so, there are links for Crypto Knowledge via Videos, which is incredibly interesting!

Offline dentolas

  • Hero Member
  • *
  • Activity: 1070
  • points:
    3962
  • Karma: 0
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: November 01, 2020, 08:59:55 PM
    • View Profile

  • Total Badges: 18
    Badges: (View All)
    10 Posts First Post Fifth year Anniversary
Re: What is Consensus Algorithm in Blockchain and Why Do We Need it?
« Reply #4 on: February 05, 2019, 09:27:12 AM »
thank you for such a usefull post, nicely done! I think this tech has room for huge improvement as there is still a lot to be done, created and experimented before society can integrate it completely... things are just a bit above experimental
We are still at the dawn...
cheers

 

ETH & ERC20 Tokens Donations: 0x2143F7146F0AadC0F9d85ea98F23273Da0e002Ab
BNB & BEP20 Tokens Donations: 0xcbDAB774B5659cB905d4db5487F9e2057b96147F
BTC Donations: bc1qjf99wr3dz9jn9fr43q28x0r50zeyxewcq8swng
BTC Tips for Moderators: 1Pz1S3d4Aiq7QE4m3MmuoUPEvKaAYbZRoG
Powered by SMFPacks Social Login Mod