Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bitcoin Protocol Guide

A deep dive into Bitcoin’s protocol internals — from UTXOs to Taproot to the Ordinals debate. Written from a “confused → understanding” perspective, with real transaction examples you can verify yourself.

No price talk. No trading. Pure protocol.

Table of Contents

#TopicWhat You’ll Learn
01UTXO ModelHow Bitcoin tracks ownership without accounts
02Script SystemBitcoin’s stack-based programming language
03SegWitWitness data, weight units, and why it changed everything
04TaprootSchnorr signatures, MAST, and privacy upgrades
05Ordinals & InscriptionsHow NFTs and tokens work on Bitcoin
06The BIP-110 DebateThe “spam war” — what’s at stake
07Node SetupRunning Bitcoin Knots/Core on Windows
08Satoshi’s Timeline & Core HistoryFrom genesis block to current maintainers — who built Bitcoin and who stewards it now
09Wallets & Self-CustodyKey generation, hardware wallets, multisig, PSBTs, seed storage, and inheritance planning
10Mining & HardwareFrom CPU to 1,160 TH/s ASICs — mining economics, pools, Stratum V2, and the AI pivot
11The Bitcoin NetworkP2P layer: node types, block propagation, compact blocks, eclipse attacks, Tor/I2P
12The Future of BitcoinCTV, OP_CAT, covenants, Silent Payments, BitVM, RGB, Ark, and the ossification debate

Bonus

Philosophy

Every claim in this guide can be verified with a Bitcoin node and bitcoin-cli. The goal is to understand why Bitcoin works the way it does, not just what it does. Each chapter builds on the last:

UTXOs → Script → SegWit → Taproot → Ordinals → BIP-110 → Node Setup → History
    → Self-Custody → Mining → Network → Future

Chapters 1-8 build linearly. Chapters 9-12 expand the picture: how to hold your keys, how mining works, how the network operates, and what’s being built next.

Prerequisites

  • Basic understanding of public/private key cryptography
  • A Bitcoin node (Core or Knots) — see Chapter 07 for setup
  • Willingness to read hex and JSON

How to Use This Guide

  1. Read sequentially — each chapter builds on the previous
  2. Run the CLI commands — verify everything yourself
  3. Decode the example transactions — seeing real data makes it click
  4. Use mempool.space as a visual companion — paste any txid to see it rendered

Tools

Query your own node with bitcoinlib-rpc — a typed Python wrapper for Bitcoin Core RPC:

pip install bitcoinlib-rpc
bitcoin-mempool    # Fee buckets, congestion analysis
bitcoin-block 939290  # Pool ID, SegWit/Taproot adoption
bitcoin-tx <txid>  # Full decode + inscription detection

See the Tools section for details.

Contributing

Found an error? Open an issue or PR. This is a living document.

License

CC BY-SA 4.0 — Share and adapt with attribution.