Double spending
Double spending means trying to spend the same digital coin or token more than once. This shouldn’t be possible, because digital money needs to be reliable.
What is double spending?
In theory, a digital file can be copied or sent again. That’s why a system needs to check whether crypto has already been used for an earlier payment.
In crypto, a network of computers checks this. Transactions are recorded on the blockchain, a shared digital ledger. The network collectively decides which transaction is valid. The other transaction is rejected.
A payment is more secure once it’s confirmed. This means the transaction is included in a block on the blockchain. More confirmations make it less likely that the payment will be reversed.
An example of double spending
Someone has 0.01 Bitcoin and sends that amount to an online store and a friend at the same time. Both payments use the same Bitcoin.
Ultimately, only one payment can be added to the blockchain. If the store ships the product after an unconfirmed payment, that payment may later turn out to be invalid. The store may not have received any money.
Why is double spending important in crypto?
Double spending is a fundamental problem with digital money. Without protection, the same crypto could be used multiple times. This could make people less likely to trust crypto as a way to pay.
Double spending may come up in discussions about blockchain security or attacks. Often, it refers to the risk of payments that haven’t yet been confirmed, or an attempt to change the order of transactions.
So, just because a transaction has been sent doesn’t always mean it’s final. Network confirmations are important for determining which payment remains valid.