TeachMeBitcoin

TeachMeBitcoin - The Free Interactive Bitcoin Encyclopedia

From TeachMeBitcoin, the free encyclopedia Reading time: Interactive Portal min

TeachMeBitcoin

The Free, Developer-Grade Bitcoin Encyclopedia

Master Bitcoin from first principles. Explore 37 highly detailed, cryptographic, and network-grade educational modules complete with step-by-step stack visualizations, code emulation, and LaTeX math typesetting.

37 Core Modules
258 Detailed Guides
100% Open Source
1. How Bitcoin Works

How Bitcoin Works

Learn how Bitcoin works in this simple, beginner-friendly guide. Understand the blockchain, digital scarcity, and the fundamentals of decentralized money.

Start Module →
2. Getting Started: Wallets

Getting Started: Wallets

What is a Bitcoin wallet and how does it work? Learn how wallets manage cryptographic public and private keys to let you send and receive bitcoin.

Start Module →
3. Getting Started: Exchanges

Getting Started: Exchanges

A beginner-friendly guide explaining what a cryptocurrency exchange is, how order books work, and how to safely buy your very first bitcoin.

Start Module →
4. Sending Transactions

Sending Transactions

A step-by-step beginner's guide on how to safely send a Bitcoin transaction, scan QR codes, double-check addresses, and verify on-chain status.

Start Module →
5. Protecting Your Keys

Protecting Your Keys

Discover why a dedicated hardware wallet is your absolute best defense against online malware, keyloggers, and digital hacking attempts.

Start Module →
6. The Bitcoin Network

The Bitcoin Network

Deep dive into the peer-to-peer network layer. Understand node propagation, network latency, orphan blocks, and defense against Sybil attacks.

Start Module →
7. What is a Node?

What is a Node?

Learn the critical role of transaction and block validation. Discover how to run a node, storage options (pruned vs. full), and why nodes don't receive payments.

Start Module →
8. Bitcoin Mining

Bitcoin Mining

A technical look at Proof of Work. Explore SHA-256 hashing, mining pool mechanics, mining rig hardware (ASICs vs. GPUs), and the block subsidy halving schedule.

Start Module →
9. The Blockchain

The Blockchain

Understand the blockchain ledger structure. Learn how blocks are cryptographically chained and how Nakamoto Consensus (Longest Chain Rule) establishes trust.

Start Module →
10. Blocks

Blocks

Break down block structures. Discover block size limits, block weight calculations, Merkle Trees, Coinbase transactions, and the blockspace bidding market.

Start Module →
11. Difficulty

Difficulty

Master the difficulty feedback loop. Learn how the two-week retarget rule regulates block speeds, protects hashrate, and debunks miner death spirals.

Start Module →
12. Transactions

Transactions

The mathematical anatomy of transactions. Master serialized schemas, transaction inputs, Outputs, fees, and relative/absolute timelock consensus.

Start Module →
13. Outputs

Outputs

Deep dive into the UTXO model. Understand how wallets track unspent outputs, change derivation paths, dust limit policies, and UTXO consolidation strategies.

Start Module →
14. Locks

Locks

Explore the smart-contracting capabilities of Bitcoin Script. Master scriptPubKey locking, scriptSig unlocking, stacktraces, and multisig OP_CHECKMULTISIG execution.

Start Module →
15. Keys & Addresses

Keys & Addresses

An introduction to Bitcoin keys and addresses. Master private and public keys, secp256k1 math, compressed coordinates, and address derivation formats.

Start Module →
16. Private Keys

Private Keys

Explore the secrets of raw private key numbers. Learn about entropy generation (coin-flipping, dice-rolling, and CSPRNGs), WIF formats, storage setups, and BIP 39 HD mnemonic seeds.

Start Module →
17. Public Keys

Public Keys

Dive into the mathematical geometry of public key coordinates. Master point addition and doubling arithmetic, coordinate compression algebra, pure Python derivation, Hash160, and 32-byte Schnorr public keys (BIP 340).

Start Module →
18. Digital Signatures

Digital Signatures

Understand the authorization layers of Bitcoin. Explore the mathematical mechanics of ECDSA, DER signature serialization, strict BIP 66 parsing, fatal nonce-reuse and bias lattice-attacks (HNP), and the evolution of linear Schnorr signatures.

Start Module →
19. SegWit

SegWit

Master Bitcoin's most critical scaling upgrade. Explore witness segregation mechanics, Block Weight Units (WU), the 4:1 witness discount, Nested vs. Native Bech32 layouts, malleability fixes, and P2WPKH/P2WSH script bytecode.

Start Module →
23. Technical: Soft Forks

Technical: Soft Forks

Master the mechanics of backward-compatible upgrades. Learn how rule tightening and forward compatibility allow Bitcoin to upgrade without splitting.

Start Module →
25. Technical: Disk Storage

Technical: Disk Storage

Understand how Bitcoin Core persists the blockchain to silicon. Learn about the 128MB blk.dat file structure and the role of flat binary storage.

Start Module →
26. Technical: Transaction Inputs

Technical: Transaction Inputs

Deconstruct the structure of a Bitcoin input. Learn how inputs reference previous outputs to unlock and redistribute satoshis across the network.

Start Module →
27. Technical: VOUT Indexing

Technical: VOUT Indexing

Understand the zero-based indexing of Bitcoin outputs. Learn why a TXID alone is insufficient to identify specific coins and how VOUT slots solve the ambiguity.

Start Module →
28. Technical: Unlocking Scripts

Technical: Unlocking Scripts

Analyze the 'Key' of the Bitcoin protocol. Learn how the ScriptSig field provides the cryptographic credentials required to satisfy the conditions of previous outputs.

Start Module →
29. Technical: Sequence & Timelocks

Technical: Sequence & Timelocks

Deconstruct the 4-byte nSequence field. Learn its original purpose for high-frequency trades and its modern role in enabling RBF and relative timelocks.

Start Module →
30. Technical: Locking Scripts

Technical: Locking Scripts

Examine the foundation of Bitcoin's programmable ownership. Learn how ScriptPubKey defines the mathematical conditions required for any future spending of an output.

Start Module →
31. Technical: The Witness (SegWit)

Technical: The Witness (SegWit)

Analyze the segregated proof area of Bitcoin. Learn how the Witness field stores signatures outside the main transaction structure to fix malleability and increase capacity.

Start Module →
32. Technical: Transaction Locktime

Technical: Transaction Locktime

Examine the temporal bounds of the Bitcoin protocol. Learn how the 4-byte nLockTime field prevents transactions from being mined until a specific block height or date.

Start Module →
33. Technical: Transaction Fees

Technical: Transaction Fees

Understand the implicit accounting of the Bitcoin network. Learn how fees are derived from the difference between input and output values without a dedicated fee field.

Start Module →
34. Technical: Transaction Size & Weight

Technical: Transaction Size & Weight

Master the physics of blockspace. Learn the difference between raw bytes and weight units, and how SegWit fundamentally changed how Bitcoin measures transaction size.

Start Module →
35. Technical: The UTXO Model

Technical: The UTXO Model

Explore the stateless architecture of Bitcoin. Learn why the Unspent Transaction Output (UTXO) model was chosen over accounts for massive parallelism and cryptographic security.

Start Module →
36. Technical: wTXID (Witness Transaction ID)

Technical: wTXID (Witness Transaction ID)

Explore the dual identity of SegWit transactions. Learn how the Witness Transaction Identifier (wTXID) protects the network from signature malleability while maintaining backward compatibility.

Start Module →
37. Technical: PSBT (BIP 174)

Technical: PSBT (BIP 174)

Introduction to Partially Signed Bitcoin Transactions. Learn how BIP 174 standardized the communication between multisig coordinators and offline signing devices.

Start Module →
☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!