Skip to content

Nakamoto Consensus

  • by
What Is Nakamoto Consensus?

What Is Nakamoto Consensus?

Nakamoto consensus is the mechanism that allows the bitcoin network to maintain an agreement on the state of the blockchain.

It is named after Satoshi Nakamoto, the pseudonymous creator of Bitcoin.

Under Nakamoto consensus, participants reach consensus by competing to solve a proof-of-work math equation. The participant who solves the equation first broadcasts their solution to a bitcoin node for verification. If it is valid, the node passes the proof of work to other nodes until the entire network has added the new block to the blockchain.

The basic idea behind Nakamoto consensus is that the longest chain is the valid one. This is because it represents the most proof of work that has been dedicated to that particular chain. This is necessary because, in a decentralized network, there is no central authority that can be trusted to maintain accurate records. Instead, each participant in the network must agree on the current state of the blockchain.

Nakamoto consensus is achieved through a combination of proof of work and the longest chain rule. Proof of work is used to ensure that new blocks are added to the blockchain in a tamper-proof way. The longest chain rule ensures that, even in the event of a chain split, all participants will eventually reach consensus on which chain is valid. These two mechanisms work together to allow decentralized networks to function without a central authority.

In the event of a chain split, miners will continue to work on both chains until one becomes longer than the other. At that point, they will switch to mining only the longer chain. This incentive system ensures that miners have an incentive to maintain the security of the network.

This system is designed to protect against double-spending via 51% attacks, and it has been incredibly successful so far.