Bitcoin uses a decentralized peer-to-peer network and cryptographic proof instead of trust to allow users to transact directly without intermediaries. The network maintains a public distributed ledger called the blockchain that records all transactions. Consensus on the blockchain is reached through proof-of-work mining, where miners validate transactions and are rewarded with new bitcoins. Users can obtain, store, and spend bitcoins using wallets that control private keys to digitally sign transactions on the blockchain.