Unknown Affiliation
A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. This paper introduces a solution to the double-spending problem using a peer-to-peer network. Transactions are timestamped into a continuous chain of hash-based proof-of-work, forming a record that cannot be changed without redoing the proof-of-work. The system is secure as long as honest nodes collectively control more CPU power than any cooperating group of attacker nodes.
The need for an electronic payment system based on cryptographic proof instead of trust allows any two willing parties to transact directly without the need for a trusted third party. Digital signatures provide part of the solution, but the main benefits are lost if a trusted party is still required to prevent double-spending. We propose a solution to the double-spending problem using a peer-to-peer network.
Before diving into the Bitcoin system, it's essential to understand the underlying technologies and challenges, such as cryptographic hashes, digital signatures, and the double-spending problem.
Bitcoin operates as a decentralized network where transactions are verified by network nodes and recorded in a public distributed ledger called a blockchain. The system relies on cryptographic proof-of-work to achieve consensus and maintain the integrity of the ledger.
Transactions in Bitcoin are structured as a chain of digital signatures. Each owner transfers the coin to the next by digitally signing a hash of the previous transaction and the public key of the next owner.
{
"prev_tx": "abcd1234...",
"outputs": [
{
"value": 0.5,
"scriptPubKey": "OP_DUP OP_HASH160 <PubKeyHash> OP_EQUALVERIFY OP_CHECKSIG"
}
],
"inputs": [
{
"txid": "1234abcd...",
"vout": 0,
"scriptSig": "<Signature> <PubKey>"
}
]
}
Where \( h \) is the hash output, \( H \) is the cryptographic hash function, and \( m \) is the input message.
To implement a distributed timestamp server on a peer-to-peer basis, Bitcoin uses a proof-of-work system. This involves scanning for a value that when hashed, such as with SHA-256, the hash begins with a number of zero bits.
Nodes must find a nonce that satisfies the condition, ensuring the difficulty of modifying the blockchain.
The security of the Bitcoin network relies on the assumption that honest nodes control more CPU power than any attacker. Various attacks, such as the 51% attack, are considered and mitigated through the proof-of-work consensus mechanism.
Bitcoin presents a decentralized solution to the double-spending problem using a peer-to-peer network and proof-of-work consensus. It enables online payments without a trusted intermediary, opening possibilities for new financial innovations.