Double-spending is a failure mode of digital cash schemes, when it is possible to spend a single digital token twice. Since, unlike physical token money such as coins, electronic files can be duplicated, and hence the act of spending a digital coin does not remove its data from the ownership of the original holder, some other means are needed to prevent double-spending.
This is usually implemented using an on-line central trusted third party that can verify whether a token has been spent. This normally represents a single point of failure from both the technical and trust viewpoints.
By 2007, a number of distributed systems for double-spending prevention had been proposed.
The Bitcoin implemented a solution in early 2009. It uses a scheme called proof-of-work, to avoid the need for a trusted third party to timestamp transactions. These timestamps are recorded in its public ledger called the blockchain. This avoids anyone double-spending the currency.