0 votes
1 view
in Blockchain by (11.8k 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 (27.7k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...