Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k points)

How does consensus algorithm in hyperledger blockchain work?

Have all nodes access to the same chain code? If yes, what is the role of consensus then? And how does it works?

1 Answer

0 votes
by (29.5k points)
edited by

The consensus algorithm decides who has the right to publish the next block in the blockchain (who becomes the "leader"). For traditional public blockchains (such as Bitcoin), the consensus algorithm is Proof of Work (PoW). That is, the node that solves a cryptographic puzzle first (generates a SHA-256 hash with the most leading 0s) wins the right to publish the next block. Unfortunately PoW is extremely wasteful of energy and active research is involved in developing new consensus algorithms.

Give yourself time to explore this field properly. Enroll in Blockchain Online Training now.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...