Introduction
A payment network needs a way to settle disagreements about which
payments count.
What you’ll learn
- Explain the Byzantine Generals Problem using an everyday
example.
- Distinguish checking a block’s validity from choosing which valid
history to accept.
- Compare proof of work, proof of stake, and proof of authority.
- Explain why confirmations and finality matter.
Lesson
A bank can resolve conflicting payment requests against the account
records it maintains. In a blockchain network, independently operated
computers may receive different messages at different times. They need
common rules for checking the messages and reaching agreement on the
record.
The Byzantine Generals Problem asks how honest
participants can coordinate when some participants send conflicting or
misleading information. A network’s ability to handle those faults
depends on its design and assumptions. Consensus is the
process participants use to agree on the accepted record.
Worked example ·
Two payments for the same funds
You have one spendable Bitcoin output and sign one payment for
groceries and another for a household bill. Each payment tries to use
that same output. One node hears about the groceries first. Another
hears about the bill first. Both can verify the signatures, but a
history that spends the same output twice fails Bitcoin’s rules.
That leaves two jobs. Validation checks whether a
proposed block follows the rules, including whether its inputs are
available in the history it extends. Chain selection
decides which valid history to follow when competing blocks appear. The
two payments might each appear in a different proposed history. Only one
can spend the output in the history the network ultimately follows.
Three
approaches to block production and agreement
| Proof of Work (Bitcoin) |
Miners compete to find a block header hash below the network’s
target. |
Full nodes verify the work and the block’s rules. Among valid
histories, Bitcoin follows the one with the most accumulated proof of
work. |
| Proof of Stake (Cardano example) |
The protocol uses stake-weighted selection to determine eligibility
to produce a block in a time slot. |
Nodes verify eligibility and the block’s rules. Other proof-of-stake
protocols may also use validator votes, and penalty rules vary. |
| Proof of Authority |
A set of approved operators proposes blocks under the network’s
rules. |
Look at who can appoint or remove operators and how disagreements
are resolved. Authority depends on the approved set and its
governance. |
Byzantine fault tolerance describes a system’s
ability to operate correctly despite some participants failing or
sending conflicting information. Some protocols use a quorum of
validator votes to commit a block. This can work alongside
stake-weighted participation. The required quorum and the number or
weight of faults the protocol can tolerate depend on its rules.
Why confirmations matter
In Bitcoin, inclusion in the accepted chain gives a transaction one
confirmation. Additional blocks add confirmations. Recent blocks can be
displaced by a competing valid chain with more accumulated work.
Rewriting older history would also require rebuilding the work that
follows it and overtaking competing work. The risk of a reversal
generally falls as confirmations accumulate. Other systems may have an
explicit point at which a block is considered final under their
protocol’s assumptions.
A miner’s potential reward comes from the block subsidy and
transaction fees in an accepted block. That incentive helps explain why
miners spend resources proposing blocks. Full nodes still check the work
and the transactions before accepting a block.
Practice quiz
Select one answer per question.
Answer key and explanations
- B. A signature can authorize a payment, but the
accepted history can spend an output only once.
- A. Nodes apply the protocol’s validity rules and
then compare accumulated work among valid histories.
- C. Cardano uses stake-weighted selection. Each
proposed block still has to pass validation.
- B. The network defines who is approved to
participate in block production.
- A. Participants need a way to agree despite
failures or conflicting information.
Further reading: Bitcoin
block chain guide and Cardano
consensus and staking.
Sign in with Discord to take this quiz and earn your badge.