Double-spending
Written by GPT-6 Luna from the web 17 of 61 sentences cited
An AI wrote this article, and it can be wrong.
Double-spending is the risk that the same unit of digital money can be used in more than one payment. It arises because digital information can be copied: a payment system must decide which of two conflicting transactions, if any, should count. Preventing that outcome is essential to the integrity of digital money, whether the system is run by a central operator or by a distributed network.1
Digital payment systems address the problem in different ways. A bank or payment provider can maintain a central record and reject a payment that tries to use funds already spent. In a decentralized cryptocurrency such as Bitcoin, independent participants use a shared transaction history and a consensus process to determine which transactions are accepted. These designs can reduce the risk, but they do not make every payment immediately final: for example, Bitcoin transactions that have not yet been included in a block are more exposed to conflicting payments than transactions recorded in several successive blocks.234
The problem
A digital file can be duplicated without removing the original. If digital money were simply a copyable file, its owner could send a copy to one recipient and then send another copy to someone else. A digital signature can help show that a payment was authorized by its owner, but on its own it does not determine whether the same funds have already been used. That requires a system to track spending and resolve conflicting claims.32
In a ledger-based payment system, the money is represented by recorded claims or balances rather than by a unique digital object that cannot be copied. The double-spending question is therefore whether the system accepts more than one valid-looking payment against the same funds. If it does, a recipient may provide goods or services without receiving a payment that remains valid in the accepted record. The problem concerns the rules and operation of the payment system, not merely whether a transaction message carries a valid cryptographic signature.14
Early approaches
Early electronic-cash proposals explored how digital payments could work while preserving user privacy. In a centralized design, a bank or other issuer can check its records to determine whether a digital coin has already been spent. This puts the authority to resolve conflicting payments in one institution, which can keep a consistent ledger but must be trusted and available to process or verify payments.32
A different approach was proposed by David Chaum, Amos Fiat and Moni Naor in their work on untraceable electronic cash, published in the proceedings of CRYPTO ’88. Their design sought to allow payments without a bank checking each transaction in real time, while making it possible to identify a user who spent the same coin more than once. This illustrates a longstanding design tension: a payment system may try to combine offline use and privacy with ways to detect or deter reuse.56
Ledgers and consensus
Bitcoin’s 2008 white paper proposed a peer-to-peer payment system that would order transactions through a distributed timestamping process. In Bitcoin, transactions are grouped into blocks, and proof of work links successive blocks into a public history. Participants use that history to check whether a transaction attempts to spend funds already used by an earlier accepted transaction. The white paper presented this as a way to address double-spending without relying on a central financial institution.3
The system does not settle conflicts by asking which of two messages arrived first at every computer. Network messages can arrive at different times, and participants may briefly see competing versions of recent history. Instead, Bitcoin’s proof-of-work rules make the accepted transaction history depend on the chain with the most accumulated work. A transaction included in a block is described as having one confirmation; additional blocks build on that record and make replacing it more difficult, though not impossible.34
Forms of attack
A basic double-spend attempt involves creating two conflicting transactions that use the same funds: one pays a recipient, while the other redirects the funds elsewhere. Before either transaction is confirmed, a recipient who treats a broadcast payment as complete may face uncertainty about which one the network will accept. Bitcoin’s developer guide therefore warns that zero-confirmation transactions should not generally be trusted without assessing the risk.4
Other attacks try to change which transaction appears in the accepted history after a recipient has relied on it. In a proof-of-work system, an attacker may try to build a competing chain that excludes the payment and then persuade the network to accept that chain instead. A majority of the relevant mining power can make such a reorganization more feasible, but “51 percent attack” is a description of a broad class of risk, not a guarantee that every attack requires exactly that share: success depends on the protocol, circumstances and what the attacker is trying to achieve.78
Confirmations and risk
Confirmations are a way of expressing how deeply a transaction is embedded in a proof-of-work chain. Each additional block added after the block containing a payment raises the amount of work an attacker would generally need to replace that history. Bitcoin’s developer documentation describes the confirmation count as an updating measure of confidence, while cautioning that even a transaction with one confirmation can still be at risk from a block replacement.4
The number of confirmations needed is not a universal guarantee. The risk depends in part on an attacker’s share of mining power and the time allowed for an attack, and research has examined how the probability of success changes with those factors. A 2018 mathematical analysis revised the probability calculation presented in Bitcoin’s original white paper. In practice, a recipient’s decision about when to treat a payment as sufficiently secure is therefore a risk-management decision, not proof that reversal has become mathematically impossible.3
Other designs
A centrally operated ledger can prevent reuse by checking and updating account records through a single authority or a coordinated set of operators. This avoids the specific need for an open network to choose between competing chains, but it places responsibility for the ledger’s availability, integrity and transaction decisions on the operator or operators. Centralized payment systems and decentralized cryptocurrencies thus address the same underlying problem through different institutional and technical arrangements.1
Offline electronic cash poses a particular challenge because a merchant may not be able to check a central ledger at the time of payment. Chaum, Fiat and Naor’s proposal addressed this by designing a system in which repeated spending could expose information about the spender. For digital-currency systems more broadly, other possible safeguards include tamper-resistant devices, a central ledger, or consensus among distributed participants. Each relies on different assumptions about connectivity, trust, hardware or network security.62
Incidents and limits
Double-spending risk is not limited to deliberate attacks. In March 2013, differences between Bitcoin software versions caused a temporary split in the blockchain: some nodes accepted a block that older versions rejected. Bitcoin’s post-mortem says that at least one large double-spend occurred during the episode, which was described as experimental rather than an attempt to steal. The event showed how incompatible software rules and network coordination can disrupt the shared transaction history.910
Double-spends have also been reported in attacks on smaller proof-of-work networks. In August 2020, CoinDesk reported that a reorganization of 4,236 Ethereum Classic blocks resulted in a successful double-spend valued at $1.68 million, citing an investigation by Bitquery. That case illustrates why security depends not only on how a protocol is designed but also on the resources supporting its network. It does not, by itself, establish the risk level of other cryptocurrencies, which may have different architectures and security conditions.11
No single prevention method eliminates every way a payment record can be disputed, delayed or reversed. Centralized systems rely on operators and their records; distributed systems rely on consensus rules, network participants and assumptions about the resources available to attackers. For recipients, a key distinction is between a payment that has merely been announced and one that has been incorporated into a record they consider sufficiently reliable. Double-spending therefore remains a central concern in designing payment systems, even where the rules make successful attacks costly or unlikely.4
References
11 sourcesExamining CBDC and Wholesale Paymentsfederalreserve.govSep 8, 2023· cited 3×
Untraceable Electronic Cash - Abstractwisdom.weizmann.ac.il
Chaum fiat naor ecashcise.ufl.edu· cited 2×
Security Considerations for a Central Bank Digital Currencyfederalreserve.govFeb 3, 2022
BIP 50: March 2013 Chain Fork Post-Mortembitcoin.orgMar 20, 2013
11/12 March 2013 Chain Fork Informationbitcoin.orgMar 11, 2013
Ethereum classic attacker successfully double spends 168m in second attack reportcoindesk.comAug 7, 2020