Explore Courses Blog Tutorials Interview Questions
0 votes
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)

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.

Browse Categories