Bitcoin is a peer-to-peer network that uses public key cryptography and proof-of-work to securely record transactions in a distributed ledger called the blockchain without the need for a central authority. Users can send bitcoins to each other by digitally signing transaction messages that get broadcast to the network and recorded in the blockchain after validation by nodes in the network. The blockchain prevents double spending by ensuring that inputs are not spent more than once through a consensus mechanism involving proof-of-work.