Reading — step 1 of 5
Read
~3 min readTransactions & UTXO
Putting It All Together
You've built every layer that makes a real blockchain work:
| Layer | Lesson |
|---|---|
| Block structure | Block Structure |
| Chain validation | Chain Validation |
| Merkle trees | Merkle Trees |
| Merkle proofs (SPV) | Merkle Proofs |
| Proof of Work | Proof of Work |
| Difficulty retargeting | Difficulty Adjustment |
| UTXO transactions | Transactions |
| Double-spend defense | Double-Spend Defense |
| Consensus alternatives | Beyond PoW: PoS, BFT |
| Real Bitcoin block hashing | Bitcoin Block Header |
| ECDSA on secp256k1 | ECDSA on secp256k1 |
| HD wallets (BIP32) | BIP32 HD Wallets |
| Bitcoin Script | Bitcoin Script |
| Mempool & fee selection | Mempool & Fee Selection |
| Fork choice / heaviest chain | Fork Resolution |
| P2P gossip | P2P Gossip Propagation |
Every column in the table corresponds to a real component in Bitcoin Core, Geth, Reth, or any major node implementation. You've hand-built each in Python and verified your code against canonical test vectors (Bitcoin's actual genesis hash, the secp256k1 generator point, sorted-Merkle proofs, etc).
Reference implementations to study next
- Bitcoin Core (
bitcoin/bitcoin, ~1M lines of C++) — the reference. Readsrc/validation.cppfor chain validation;src/script/interpreter.cppfor Script. - btcd (
btcsuite/btcd, Go) — friendlier to read than Bitcoin Core if you prefer Go. - rust-bitcoin (
rust-bitcoin/rust-bitcoin) — clean Rust crates for the primitives (hashes,bitcoin,secp256k1). - Geth (
ethereum/go-ethereum, Go) — most popular Ethereum client. - Reth (
paradigmxyz/reth, Rust) — modern Ethereum rewrite, very clean. - Solana validator (
solana-labs/solana, Rust) — PoH + PoS, very different trade-offs.
What you've intentionally skipped
These are the next big topics if you want to go deeper:
- Smart contracts: Ethereum's EVM (Geth, Reth) or Solana's BPF VM. Programs that run on-chain with deterministic gas metering.
- SegWit / Taproot (BIP-141, BIP-341): newer Bitcoin script formats with Schnorr signatures and Merkleized script trees.
- Layer 2: Lightning Network (off-chain channels), Optimism / Arbitrum (optimistic rollups), zkSync / Starknet (zk-rollups).
- Cross-chain bridges: Wormhole, IBC. Move assets between chains. Frequently hacked — bridge security is an open research area.
- Privacy coins: Monero (ring signatures + RingCT + stealth addresses), Zcash (zk-SNARKs).
- MEV (Maximal Extractable Value): extracting value via transaction ordering. A multi-billion-dollar industry built on mempool observation.
- PBFT / HotStuff / Tendermint: deeper dive into BFT consensus families for permissioned and PoS networks.
Where blockchain shines
- Permissionless value transfer (Bitcoin)
- Programmable money / DeFi (Ethereum)
- Censorship resistance (places where governments restrict speech / finance)
- Auditable supply chains (some niches)
- Bearer instruments (NFTs, regardless of opinion)
Where blockchain doesn't
- High throughput (use a database)
- Privacy (most chains are public ledgers; opt-in privacy is complex)
- Cheap fees during demand spikes (gas wars)
- Reversibility (send to the wrong address = gone)
- Complex business logic (smart-contract bugs cost billions yearly)
You now understand the foundations that every blockchain shares. The exercise below is your capstone — chain together blocks, transactions, mempool, and validation into one mini-blockchain.
Discussion
Ask a question, share an insight, or help someone who’s stuck.
Sign in to post a comment or reply.
Loading…