Bitcoin is a peer-to-peer payment network with no central authority. That is the whole thing. Everything else — private keys, blocks, mining, hash rate — is engineering detail supporting that single design goal. This article explains how Bitcoin actually works under the hood: how ownership is defined, how transactions get finalized, how new bitcoin is created, and why the whole system stays secure even though nobody is running it.
The one-sentence description of Bitcoin
Bitcoin is a public database of who owns what, updated by consensus, that anyone can send instructions to, and that nobody controls.
That database is called the blockchain. The instructions are called transactions. The consensus mechanism is called proof-of-work. The people running the network are called nodes. This article walks through each piece. For context on why Bitcoin exists at all, read What Is Bitcoin first.
Private keys: what actually gives you ownership
Bitcoin ownership is defined by cryptography, not by databases or accounts. Every bitcoin address is derived from a private key — a 256-bit random number. Whoever has the private key controls the bitcoin at that address. There is no account to log into, no password to reset, no customer support to call.
The workflow at the cryptography level:
- A wallet generates a random private key (a huge number, roughly 10^77).
- A one-way mathematical function derives a public key from the private key.
- Another one-way function hashes the public key into a Bitcoin address (the "bc1..." string).
- You share the address with anyone who wants to pay you.
- When you spend, your wallet signs the transaction with the private key. Any node can verify the signature using the public key.
This is why "not your keys, not your coins" is the universal rule. Whoever holds the private key holds the coins — including exchanges holding coins for their customers.
For the practical implications of this — how to store keys safely — see Hot vs Cold Wallets and How to Secure Your Crypto Wallet.
Transactions: what actually moves on the network
A Bitcoin transaction is a signed message that says "the funds at address A belong to address B now." When you press Send in a wallet, the following happens in the next few seconds:
- Your wallet constructs the transaction, specifying inputs (previous transactions you're spending) and outputs (where the money goes).
- Your wallet signs it with your private key, producing a signature that only your key could have generated.
- Your wallet broadcasts the transaction to nearby nodes.
- Those nodes verify it (correct signature, no double-spending, adequate fee) and forward it to their peers.
- Within seconds, tens of thousands of nodes around the world have the transaction sitting in their "mempool" — a pool of pending transactions waiting to be confirmed.
At this point, the transaction exists but is not yet permanent. Making it permanent requires the next step — a miner including it in a block.
Blocks and the blockchain
The blockchain is Bitcoin's public ledger — a chronologically ordered chain of blocks, where each block contains hundreds or thousands of transactions.
Key facts about blocks:
- A new block is added about every 10 minutes.
- Each block references the previous block via a cryptographic hash. Change one block and every subsequent hash breaks.
- Each block contains a Merkle tree of its transactions — a way to compress thousands of transactions into a single hash you can verify.
- The entire history of Bitcoin — every transaction since 2009 — is contained in the blockchain. It's currently around 700 GB.
The "chain" part matters. Because each block references the previous one, changing any historical transaction would require rewriting every subsequent block — which, given how mining works (below), is economically impossible.
Mining and proof-of-work: how new blocks get added
Miners are computers that compete to add the next block to the blockchain. The competition is a race to solve a cryptographic puzzle called proof-of-work.
The puzzle in plain English:
- Take the pending block of transactions.
- Append a random number (a "nonce").
- Hash the whole thing with SHA-256.
- Does the resulting hash start with a specific number of zeros?
- If not, change the nonce and try again. Repeat billions of times per second.
When a miner finally finds a nonce that produces a hash meeting the difficulty target, they broadcast the completed block. Other nodes verify it in milliseconds and add it to their copies of the blockchain. The winning miner receives newly-minted bitcoin (currently 3.125 BTC per block, halving every 4 years) plus the fees from all transactions in the block.
This is why Bitcoin uses so much electricity — miners are constantly trying trillions of combinations per second. But that electricity IS the security. To reverse a confirmed transaction, an attacker would have to redo all that work faster than the entire honest network is doing it. This is what makes Bitcoin's history essentially immutable. See Proof of Stake vs Proof of Work for the alternative approach Ethereum uses.
Confirmations: how many are "enough"?
When a transaction appears in a block, it has 1 confirmation. When another block is added on top, the original transaction now has 2 confirmations. And so on.
Standard guidance:
- 1 confirmation — ~10 minutes. Fine for small consumer payments ($10-500).
- 3 confirmations — ~30 minutes. Standard for medium payments and most retail deposits.
- 6 confirmations — ~1 hour. Traditional standard for large payments. Probability of reversal after this is effectively zero.
Exchanges typically require 1-3 confirmations for small deposits and 6 for large ones. This latency is the trade-off Bitcoin makes for security. Payment networks like Lightning (built on top of Bitcoin) offer instant settlement for small amounts, but that's another article.
The 21 million cap and halvings
Bitcoin's supply is capped at 21 million coins, ever. This is not an economic policy — it's a rule enforced by the software running on every node. Changing it would require every operator to agree, which they will not.
New bitcoin enters circulation only as miner rewards. That reward halves every 210,000 blocks (~4 years):
- 2009-2012: 50 BTC per block
- 2012-2016: 25 BTC per block
- 2016-2020: 12.5 BTC per block
- 2020-2024: 6.25 BTC per block
- 2024-2028: 3.125 BTC per block
- 2028-2032: 1.5625 BTC per block
- ...and so on, until the last fraction of a bitcoin is mined around the year 2140.
About 94% of all bitcoin that will ever exist has already been mined. The remaining 6% will trickle out over the next century. This programmed scarcity is a core reason Bitcoin is compared to gold.
Why the whole thing stays secure without a boss
Bitcoin has no CEO. No headquarters. No emergency stop button. Yet the network has operated continuously for 16+ years with no successful attack on the protocol. Why?
Three overlapping mechanisms make attack economically impossible:
- Cryptography. Signatures cannot be forged. Hashes cannot be reversed. To attack Bitcoin at this level, you would need to break cryptographic primitives that also protect banks, governments, and militaries.
- Proof-of-work economics. To rewrite recent transactions, an attacker would need more computing power than the entire honest mining network. That would cost billions of dollars in equipment plus billions in electricity — and would destroy their own investment (the price of Bitcoin) in the process.
- Decentralized nodes. Tens of thousands of independent operators run full nodes worldwide. They enforce the rules locally. If a miner tried to include an invalid transaction, every honest node would reject the entire block — the miner would waste all their work for nothing.
Bitcoin is not secure because someone is protecting it. Bitcoin is secure because the math makes attacking it prohibitively expensive, and no single actor has the power to change the math.
The pieces that come next
Now that you understand the core protocol, the natural next topics are how Bitcoin scales (Lightning), how mining economics work in detail, and how Bitcoin compares to other networks. Continue with: Blockchain Technology Explained · How Bitcoin Mining Works · Bitcoin vs Ethereum: Which Should You Buy?.
For live network metrics — hash rate, difficulty, fees — see the Bitcoin market page.



