Consequently, cryptocurrencies need to have Byzantine Fault Tolerance (BFT) built into their protocol. Byzantine fault tolerance (BFT) means that a computer system has to keep functioning to a level of satisfaction if errors or breakdowns occur, even if some participants don’t behave according to plan and try to cheat the system.
Blockchain technology prevents double-spending through peer-to-peer file-sharing technology combined with public-key cryptography.
In line with this, ownership structures of cryptocurrencies are recorded in the blockchain, a public ledger, while being simultaneously confirmed by cryptographic protocols and the cryptocurrency community.
As all transactions are openly recorded and cryptographically secured in an open ledger running simultaneously on thousands of computers all over the globe, everyone sees the transactions that have already been made.
In the case of Bitcoin, transactions are verified by miners who ensure that all transactions during the verification process are irreversible, final and cannot be modified computationally, thus successfully solving the issue of potential double-spending.