Double-Spending
Also known as: Double spend
Risk that the same unit of digital money is spent more than once, a central problem that digital cash systems and blockchains must prevent.
Double-spending is the problem of preventing a unit of digital money from being spent twice. Physical cash cannot be in two places at once, but digital information can be copied freely, so a digital currency needs some way to establish which of two conflicting payments counts. Conventional systems solve this with a trusted party, such as a bank, that keeps the authoritative ledger. Early digital cash schemes, including David Chaum's ecash, likewise relied on a central server to detect reused coins.
The Bitcoin white paper's central contribution was preventing double-spending without a trusted third party. Transactions are broadcast publicly and ordered in blocks by proof-of-work consensus; once a transaction is buried under further blocks, reversing it would require redoing all the work since. Recipients therefore wait for confirmations, and six confirmations became a common convention for larger Bitcoin payments. Attacks include racing two conflicting transactions to a merchant who accepts unconfirmed payments and, more seriously, a 51% attack that reorganizes recent blocks.
Double-spends against major networks are rare because of the cost involved, but smaller proof-of-work chains have suffered them, including Ethereum Classic in 2019 and 2020. Defenses include waiting for more confirmations on high-value transfers, using networks with fast deterministic finality and monitoring for chain reorganizations. The problem explains why every cryptocurrency needs a consensus mechanism and why the security of a payment depends on the economic cost of rewriting the ledger.
Key points
- Digital money can be copied, so systems must prevent the same unit being spent twice.
- Banks and early ecash used a central ledger to stop double-spending.
- Bitcoin solved the problem without a trusted party through proof-of-work consensus.
- Waiting for confirmations reduces the risk that a payment will be reversed.
Related entries
51% Attack
Attack in which a party controlling most of a blockchain's mining or staking power rewrites recent history, enabling double-spending or censorship.
Proof of Work
Technique in which participants prove they spent computing effort by finding a value whose hash meets a difficulty target, used in many blockchains.
Consensus Mechanism
Method by which the nodes of a distributed system agree on one shared state, such as which transactions a blockchain records and in what order.
Bitcoin
First decentralized cryptocurrency, launched in 2009, whose transactions are recorded on a public proof-of-work blockchain.
David Chaum
American cryptographer whose work on blind signatures, mix networks and digital cash laid foundations for anonymous communication and cryptocurrency.
Cryptocurrency
Digital asset that uses cryptography and a decentralized ledger, usually a blockchain, to record ownership and transfers without a central issuer.
Satoshi Nakamoto
Pseudonymous creator of Bitcoin who published its white paper in 2008 and launched its network in 2009; the creator's real identity is unknown.
Featured in guides
Referenced by
Other entries that discuss or point to Double-Spending.