Bitcoin and crypto, from zero
From how mining works to why Bitcoin picked UTXO. Each topic has one drawing and a short explanation.
Contents
- 01Who writes the next page
- 02The hash is a fingerprint machine
- 03The puzzle miners actually solve
- 04The nonce and the clock
- 05Nobody trusts anybody
- 06Why the history seals itself
- 07When two miners win at once
- 08How the chain knows a payment is yours
- 09The address is not the public key
- 10UTXO versus the account model
- 11The blockchain is not a data structure
- 12Monero makes privacy mandatory
- 13MEV, the dark side of ordering
- 14The trilemma is a budget
01 Who writes the next page
Strip away the price charts and Bitcoin is one shared ledger kept by millions of strangers. Its first problem is order. Imagine one output worth 1 BTC. Its owner signs two transactions that spend that same output, one paying Bob and one paying Carol. A node in Cairo hears about Bob first while a node in Tokyo hears about Carol first. Both signatures are valid. There is no trusted global clock or central record that can declare which message arrived first. A signature proves authorization, but it does not stop an owner from authorizing two conflicting spends.
Bitcoin makes every node check the rules, then settle on the valid chain with the greatest cumulative proof of work. When Bob's spend enters that shared history, Carol's conflicting transaction tries to reuse an output that is already spent, so nodes reject it. Timestamps help organize blocks, but they are not a trusted stopwatch and do not solve double spending by themselves. The original Bitcoin paper describes the network as publicly timestamping transactions into a proof of work chain that provides evidence of their order. Proof of stake bids for the same ordering job with money instead of watts (the full essay).
02 The hash is a fingerprint machine
A hash is not encryption. There is no decryption key. SHA-256 takes any input and returns a fixed 256-bit fingerprint, usually written as 64 hex characters. Deterministic means the same bytes produce the same fingerprint. One way means recovering an arbitrary input from its hash is computationally infeasible. Avalanche means a tiny input change unpredictably changes the output. A double SHA 256 calculation is cheap. The live fingerprint lab sits in Bitcoin from zero.
03 The puzzle miners actually solve
The effort is not in computing one fingerprint. The demand runs the other way: find a header whose double SHA-256 value is below the network target. No useful shortcut is known, so miners test many candidates. In the simplified leading zero model, each extra hex zero multiplies expected work by 16. Bitcoin itself uses a numeric target that adjusts every 2,016 blocks. The same loop is in the mining lab.
04 The nonce and the clock
The nonce is not an anti replay value here. It is the fastest header field to vary between attempts. Miners can also alter the timestamp, version bits, transaction selection, or an extraNonce in the coinbase that changes the Merkle root. The timestamp helps enforce time bounds and retune difficulty every 2,016 blocks. A valid timestamp must be greater than the median of the previous 11 blocks and no more than two hours ahead of the validating node's clock.
05 Nobody trusts anybody
When a miner announces a block, every node re checks the whole thing locally. Is the hash under the target? Are the signatures valid? A double spend is a fail. So is a coinbase past its cap. Break one rule and the block is discarded, not relayed. Cheating isn't forbidden on paper. It's simply the most expensive way to burn your own money.
06 Why the history seals itself
Every block stores the hash of the block before it. That link is the chain. Change a transaction inside an old block and its Merkle root changes, which changes its header hash and breaks the next block's link. Rewriting that history requires rebuilding the proof of work from that point while the honest chain continues growing.
07 When two miners win at once
You'll get two miners finding a block in the same second. Two different blocks with different hashes. The network splits for a moment. The system does not judge which block is better; it waits for the next draw. Whoever extends one branch first gives it more accumulated work, and everyone jumps to it. The losing branch is called stale. Its transactions go back into the queue. The rule is the most work, not the most blocks. Historic forks and the exact tiebreak are in Bitcoin from zero; other chains split the question differently, Solana orders first and Sui chases finality first.
08 How the chain knows a payment is yours
There's no balance field anywhere. What you own are signed cheques made out to you, the UTXOs. To pay, you destroy an old cheque and mint new ones, and your signature proves the right to do it. Keys come in a pair. Private stays secret. Public is derived from it. The private key produces a signature, and anyone holding the public key can check it without ever seeing the secret. Alter one byte of the payment and the signature breaks.
09 The address is not the public key
A classic Bitcoin P2PKH address is derived from a public key. Hash it with SHA-256 then RIPEMD-160, add a version byte and checksum, then encode the result in Base58Check. The checksum catches common typing errors and the version distinguishes networks. This describes legacy P2PKH addresses. SegWit and Taproot use different address encodings and scripts.
10 UTXO versus the account model
Bitcoin runs on UTXO, the cheque model. Each output can be spent once. Ethereum uses accounts, where balances and contract state change in place. A repeated Bitcoin spend references an output that is already consumed, so validation rejects it. Explicit UTXO dependencies can also expose independent work. Account chains use per account nonces to order transactions and reject repeats.
11 The blockchain is not a data structure
There's no import blockchain anywhere. A blockchain is a system architecture, not a data type, the same way a database or an operating system isn't one structure. It's an assembly. A hash linked list for the blocks, a Merkle tree for the transactions, a key value store for disk, a set for the UTXO, a hash map for the mempool. If one structure must represent it, take the hash linked list: a linked list whose pointer is a hash of the content, so any forgery snaps the chain.
12 Monero makes privacy mandatory
Bitcoin's ledger is public. Monero hides receivers with one time addresses, obscures the signer with a ring signature, and hides amounts with RingCT while still proving balance. Transaction privacy is mandatory, so private transactions share an anonymity set. Network metadata remains a separate problem. Monero uses relay protections such as Dandelion++, but Tor or I2P can still matter against network observers. The machinery is dissected in Monero under the hood; Zcash makes a different tradeoff with proofs instead of decoys.
13 MEV, the dark side of ordering
Whoever builds the block has ordering power. Taking higher fee transactions first is the normal auction for scarce block space. MEV appears when a builder earns from relative ordering, such as placing a buy before a victim and a sell after it. Plain Bitcoin transfers usually expose less ordering value than on chain exchange trades, but Bitcoin still has fee ordering and other forms of miner extractable value. Solana's ordering market and Bitcoin's corner of it are covered in their own essays.
14 The trilemma is a budget, not a law
Every chain in this series is answering the same question with different money. The blockchain trilemma is the popular shorthand for that question: a public chain wants to be decentralized, secure and scalable at once, and pushing hard on two tends to charge the third. It is a design heuristic that came out of the Ethereum research community, not a proven theorem, and you should treat anyone who claims to have deleted the tradeoff with suspicion. The useful version is narrower: name the three costs, then ask which one a design is paying.
Decentralization is how cheap it is to verify the chain yourself and how many independent parties decide what happened. The honest measure is the cost of running a full node on ordinary hardware, not the number of tokens in circulation. Security is what an attacker must spend to rewrite or censor history, whether that is energy under proof of work or stake that gets destroyed under proof of stake. Scalability is throughput and cost per transaction at the point where ordinary people actually use it.
Read the rest of the series as four answers to that budget. Bitcoin spends throughput to keep verification cheap and the attack cost physical. Proof of stake replaces energy with capital at risk, which lowers the cost of participating but introduces slashing rules and a stake distribution to argue about. Solana buys throughput with hardware, raising the cost of running a validator so users get cheap fast blocks. Sui narrows the problem instead of the hardware, executing transactions that touch nothing in common without putting them through consensus at all.
Privacy sits outside this triangle, which is exactly why it is worth naming separately. Monero and Zcash both keep a public ledger and pay for concealment in verification work and proof size. That is a fourth budget, not a fourth corner, and a chain can be decentralized, secure, fast and still leak everything you do.
This page sums up a long conversation series on how Bitcoin and crypto work. Details and live experiments are in Bitcoin from zero and Monero under the hood. As of September 2026 the block reward is 3.125 BTC. Monero ring size is 16. FCMP++ is audited but not yet activated.