← New search

Other meanings of Double-spending

Cryptography & Digital Currency

Double-spending

Double-spending is the risk that a digital currency or other digital token can be spent more than once, undermining the integrity of the payment system. Unlike physical cash, digital information can be copied and replayed, so without a trusted intermediary or a robust consensus mechanism, a malicious user could send the same unit to multiple recipients. The problem is central to the design of cryptocurrencies, and solutions range from centralized ledgers to decentralized protocols like proof-of-work.

2008
Year Bitcoin whitepaper proposed proof-of-work solution
Year
51%
Attack threshold for double-spending in proof-of-work networks
Percentage
0-conf
Term for unconfirmed transactions vulnerable to double-spending
Term
1

Definition and core problem

▶

Double-spending occurs when a digital token is transferred to two or more recipients in a way that both transactions appear valid. In a centralized system, a bank or payment processor prevents this by maintaining a single ledger and verifying each transaction against it. In decentralized systems, the absence of a central authority makes double-spending a fundamental challenge, as there is no trusted party to arbitrate which transaction is legitimate.1

The problem is analogous to the Byzantine Generals Problem, where distributed components must agree on a single history of events despite potential traitors. Digital signatures alone do not solve double-spending because a user can sign multiple conflicting transactions. The solution requires a consensus mechanism that orders transactions and makes it computationally or economically infeasible to reverse them.2

2

Historical context and early digital cash

▶

Before Bitcoin, digital cash schemes such as David Chaum's eCash (1983) relied on a central issuer to prevent double-spending. Chaum's blind signatures allowed anonymous transactions, but the issuer maintained a database of spent coins, ensuring each serial number was used only once. This centralized approach was vulnerable to issuer failure or collusion.3

In 1998, Wei Dai proposed b-money, which introduced a decentralized ledger and required users to solve computational puzzles to create money, but it lacked a practical consensus mechanism. Nick Szabo's Bit Gold (1998) similarly used proof-of-work but did not fully solve the double-spending problem. These precursors laid the groundwork for Satoshi Nakamoto's 2008 Bitcoin whitepaper, which combined proof-of-work with a public timestamped ledger to achieve decentralized consensus.4

3

Solutions in blockchain and beyond

▶

Bitcoin's solution to double-spending is the blockchain: a distributed ledger where transactions are grouped into blocks, each referencing the previous block, forming an immutable chain. Miners compete to solve a proof-of-work puzzle, and the longest chain is considered the valid history. To double-spend, an attacker would need to control more than 50% of the network's hashing power to outpace the honest chain, a costly and increasingly difficult feat.5

Alternative consensus mechanisms include proof-of-stake, where validators are chosen based on their stake, and practical Byzantine fault tolerance (PBFT) used in permissioned blockchains. These systems impose economic penalties or require a supermajority of honest nodes to prevent double-spending. Additionally, payment channels and sidechains reduce the risk by enabling off-chain transactions that are settled later.6

4

Lesser-known aspects

▶

One lesser-known aspect is the "Finney attack," named after Hal Finney, where a miner pre-mines a block containing a transaction to themselves, then spends the same coins elsewhere before broadcasting the block. This attack is feasible even with low hash power but requires the attacker to be a miner.7

Another edge case is the "race attack," where an attacker broadcasts two conflicting transactions to different parts of the network, hoping that merchants accept an unconfirmed payment. Merchants can mitigate this by waiting for confirmations or using double-spend detection services. Also, the "vector76" attack involves a merchant and a customer colluding to double-spend against an exchange, exploiting the exchange's deposit confirmation policy.8

In proof-of-stake systems, the "nothing-at-stake" problem allows validators to vote on multiple chains without cost, but modern protocols use slashing conditions to penalize such behavior. Finally, the concept of "double-spending" also applies to non-currency tokens, such as digital collectibles or voting systems, where uniqueness is critical.

≡

Glossary

▶
Proof-of-work
A consensus mechanism requiring computational work to validate transactions and create new blocks.
Proof-of-stake
A consensus mechanism where validators are chosen based on the number of tokens they hold and are willing to 'stake'.
Blockchain
A distributed, immutable ledger of transactions linked by cryptographic hashes.
Byzantine Generals Problem
A problem in distributed computing where components must agree on a strategy despite the possibility of traitors.
Finney attack
A double-spending attack where a miner pre-mines a block and then spends the same coins before broadcasting the block.

Double-spending is a core security concern in any digital token system, and its solutions have shaped the evolution of decentralized finance.