Blockchain — 300 free lessons

cryptography · chains · contracts · defi · the trust stack

Start lesson 1 →

Blockchain Tutorial

1. Why Blockchain · The Trust Problem2. Ledger History · From Clay to Blockchain3. Distributed Systems · Cap Theorem Refresher4. Cryptography · The Foundation5. Hashing · Sha-256 · Keccak · Collision Resistance6. Public Key Crypto · Rsa · Ecdsa · Ed255197. Digital Signatures · Sign · Verify8. Merkle Trees · Proofs Without the Whole Tree9. Consensus · The Agreement Problem

Blockchain Consensus

10. Proof of Work · Mining · Difficulty11. Proof of Stake · Validators · Slashing12. Proof of Authority · Permissioned Chains13. Byzantine Fault Tolerance · Pbft · Tendermint

Blocks & Forks

14. Blocks · Header · Transactions · Root15. The Genesis Block · How Chains Start16. Forks · Soft vs Hard17. Uncle Blocks · Stale Blocks18. Mempool · The Pending Pool19. Transactions · Inputs · Outputs · Fees

Bitcoin

20. Bitcoin · The First Blockchain21. Bitcoin · Script · Utxos22. Bitcoin · Halving · Supply Schedule23. Bitcoin · Lightning Network

Ethereum & EVM

24. Ethereum · The Programmable Chain25. Ethereum · Accounts vs Utxos26. Ethereum · Gas · Units of Compute27. EVM · The Ethereum Virtual Machine28. EVM · Opcodes · Stack · Memory · Storage29. Solidity · The Contract Language30. Solidity · Types · Functions · Modifiers31. Solidity · Storage vs Memory vs Calldata32. Vyper · The Python-Flavored Alternative

Smart Contracts

33. Smart Contracts · Code as Law34. Smart Contracts · Upgradeability Patterns35. Proxy Patterns · Transparent · Uups · Diamond

ERC Standards

36. Erc-20 · The Fungible Token Standard37. Erc-721 · The NFT Standard38. Erc-1155 · Multi-Token Standard39. Erc-4626 · Tokenized Vaults40. Erc-4337 · Account Abstraction

Wallets

41. Wallets · Custodial vs Non-Custodial42. Wallets · Hot vs Cold43. Seed Phrases · Bip-39 Mnemonics44. Hd Wallets · Bip-32 · Derivation Paths45. Hardware Wallets · Ledger · Trezor · Keystone46. Multisig · Gnosis Safe · M-Of-N47. Mpc Wallets · Key Shares

DeFi

48. DEFI · The Open Finance Stack49. Amms · Constant Product · Uniswap Math50. Lending · Aave · Compound · Health Factor51. Stablecoins · Usdc · Dai · Usdt52. Algorithmic Stables · The Terra Postmortem53. Derivatives · Perps · Options On-Chain54. Yield Farming · Liquidity Mining55. Liquid Staking · Lst Tokens56. Restaking · Eigenlayer Model57. MEV · Maximum Extractable Value58. Flashbots · Private Mempool

NFTs & Identity

59. NFTS · Digital Scarcity Proofs60. Marketplaces · Opensea · Blur · Royalty Wars61. Royalties · Enforced vs Honored62. NFT Utility · Access · Governance · Gaming63. Metadata · On-Chain vs Ipfs vs Centralized64. Ipfs · Content-Addressed Storage65. Arweave · Permanent Storage66. Ens · Ethereum Name Service67. Did · Decentralized Identifiers

Layer 2 & Scaling

68. Layer 2 · Scaling Beyond Mainnet69. Optimistic Rollups · Arbitrum · Optimism70. ZK Rollups · Zksync · Starknet · Polygon ZK71. ZK Proofs · Plonk · Groth16 · Stark72. Validiums · Volitions · The Data Trilemma

Sidechains & App-Chains

73. Sidechains · Polygon POS · Gnosis Chain74. App-Chains · Cosmos · Polkadot · Avalanche

Bridges

75. Bridges · Lock-Mint · Burn-Mint · Liquidity Pools76. Bridge Hacks · Why Bridges are Honeypots

Oracles & DA

77. Oracles · Chainlink · Pyth · Uma78. Data Availability · Celestia · Eigenda · Avail

MEV & Governance

79. MEV-Boost · Proposer / Builder Separation80. DAO Governance · Token-Weighted · Quadratic81. Governance Attacks · Vote Buying · Proposals82. Tokenomics · Supply · Vesting · Incentives

Analytics

83. On-Chain Analytics · Dune · Nansen · Etherscan84. Block Explorers · Reading the Chain85. Gas Optimization · Packing Storage · Short-Circuit

Security & Audits

86. Security · Reentrancy · Overflow · Access Control87. Audits · Slither · Mythril · Manual Review88. Front-Running · Sandwiching · Countermeasures

Regulation

89. Regulation · Sec · Mica · Privacy Lines

Blockchain References

90. References · Ethers · Viem · Web3.js · Ercs

Advanced Cryptography

91. Finite Fields · Modular Arithmetic for Crypto92. Elliptic Curves · Group Law · Secp256k1 vs Bn25493. Pairing-Based Crypto · Bilinear Maps94. Bls Signatures · Aggregation · Validator Keys95. Schnorr Signatures · Linearity · Musig296. Threshold Signatures · T-Of-N Signing97. Verifiable Random Functions · Vrf Sortition98. Commitment Schemes · Hiding · Binding99. Pedersen Commitments · Homomorphic Adds100. Kzg Commitments · Polynomial Openings101. Merkle Patricia Tries · Ethereum State Deep102. Verkle Trees · Stateless Witnesses

Zero-Knowledge Proofs

103. ZK Proofs · Completeness · Soundness …104. Interactive vs Non-Interactive · Fiat-Shamir105. Arithmetic Circuits · R1cs · Constraints106. Qap · From R1cs to Polynomials107. Trusted Setup · Powers of Tau Ceremony108. Groth16 · The Compact Snark109. Plonk · Universal Setup · Custom Gates110. Lookup Arguments · Plookup · Logup111. Halo2 · Recursive Accumulation112. Starks · Transparent · Post-Quantum113. Fri · Low-Degree Testing114. Recursive Proofs · Proof Aggregation115. Zkvms · Risc Zero · Sp1 · Cairo116. Zkevm Types · Type 1 Through Type 4

Consensus Deep

117. Nakamoto Consensus · Longest-Chain Analysis118. The Ghost Protocol · Heaviest Subtree119. Casper Ffg · The Finality Gadget120. Gasper · Lmd-Ghost + Ffg121. Single-Slot Finality · The Endgame122. Hotstuff · Pipelined Bft123. Dag Consensus · Narwhal · Bullshark124. Avalanche · Metastable Consensus125. Ouroboros · Provably Secure POS126. Algorand · Pure POS · Vrf Committees127. Long-Range Attacks · Weak Subjectivity128. Finality · Probabilistic vs Absolute

Ethereum Protocol Deep

129. The Beacon Chain · The Consensus Layer130. Attestations · Committees · Aggregation131. Sync Committees · Light-Client Support132. Fork Choice · Lmd-Ghost in Practice133. The Deposit Contract · Becoming a Validator134. Withdrawals · Partial · Full · The Queue135. Eip-1559 · Base Fee · The Fee Market136. Eip-4844 · Blob Transactions · Proto-Danksharding137. Danksharding · Data Availability Sampling138. Proposer-Builder Separation · In-Protocol Pbs139. Statelessness · The Verkle Transition140. History Expiry · Eip-4444 · The Purge

EVM & Execution Deep

141. EVM Internals · Stack · Memory · Storage · Calldata142. Gas Costs · Per-Opcode Accounting143. Memory Expansion · Quadratic Cost144. Storage Slots · Packing · Refunds145. Precompiles · Ecrecover · Modexp · Pairings146. Create vs Create2 · Deterministic Addresses147. Delegatecall · Context Preservation148. Transient Storage · Eip-1153149. Access Lists · Warm vs Cold · Eip-2929/2930150. The Yellow Paper · Formal EVM Semantics151. Eof · EVM Object Format152. Alt-Vms · Movevm · Svm · Cairovm

Solidity Advanced

153. Yul · Inline Assembly Fundamentals154. Abi Encoding · Encode · EncodePacked · Decode155. Function Selectors · 4-Byte Clashing156. Custom Errors · Revert Data157. Libraries · Embedded vs Linked · Using-For158. Fallback · Receive · Low-Level Calls159. Events · Indexed Topics · Log Decoding160. Storage Layout · Slots · Mappings · Arrays161. Immutable vs Constant · Bytecode Placement162. The Optimizer · Runs · Via-IR Pipeline163. Create2 Factories · Counterfactual Deploys164. Minimal Proxies · Eip-1167 Clones

Contract Design Patterns

165. Checks-Effects-Interactions · The Safe Order166. Reentrancy Guards · The Mutex Pattern167. Pull Over Push · The Withdrawal Pattern168. Access Control · Ownable · Roles · Accessmanager169. Pausable · Emergency Stop · Circuit Breakers170. Commit-Reveal · Hiding Intent171. Proxy Patterns · Transparent vs Uups172. The Diamond Standard · Eip-2535 Facets173. Beacon Proxies · Mass Upgrades174. Factory & Registry Patterns175. State Machines On-Chain176. Rate Limiting · Timelocks · Guardians

DeFi Deep

177. Uniswap V2 · Constant-Product Internals178. Uniswap V3 · Concentrated Liquidity Math179. Ticks · Ranges · Active Liquidity180. Uniswap V4 · Hooks · The Singleton181. Curve · The Stableswap Invariant182. Balancer · Weighted & Boosted Pools183. Impermanent Loss · The Math184. Twap Oracles · Manipulation Resistance185. Aave V3 · Isolation Mode · E-Mode186. Liquidations · Health Factor · Keepers187. Interest Rate Models · Utilization Curves188. Flash Loans · Atomic Uncollateralized Credit189. Makerdao · Dai · The Peg Stability Module190. Perps · Funding Rates · Gmx · Synthetix

Tokenomics & Token Engineering

191. Token Engineering · Supply & Demand Sinks192. Bonding Curves · Continuous Tokens193. Vote-Escrow · The VeToken Model194. Gauge Wars · Bribes · Ve(3,3)195. Emissions · Inflation Schedules196. Staking Derivatives · Lst & Lrt Design197. Fee Switches · Buyback & Burn198. Protocol-Owned Liquidity · The Olympus Model199. Vesting · Cliffs · Unlock Schedules200. Treasury Management · Diversification

MEV & Order Flow

201. The MEV Supply Chain · Searcher to Validator202. Sandwich Attacks · The Math203. Backrunning · Arbitrage · Liquidations204. Jit Liquidity · Just-In-Time Lp205. MEV-Boost · Relays · Bundles206. Cowswap · Batch Auctions · Cows207. MEV Redistribution · MEV-Share · MEV Burn208. Suave · The Unified Auction Layer209. Encrypted Mempools · Threshold & Timelock210. Order Flow Auctions · On-Chain Pfof

Cross-Chain & Interoperability

211. The Interoperability Trilemma212. Ibc · Cosmos Light-Client Messaging213. Light-Client Bridges · Trust-Minimized214. Optimistic Bridges · The Fraud Window215. ZK Bridges · Proof-Verified Messaging216. Layerzero · The Omnichain Model217. Wormhole · Guardian Attestations218. Axelar · Hyperlane · Permissionless Interop219. Chainlink Ccip · The Messaging Standard220. Atomic Swaps · Htlcs Across Chains221. Intents & Solvers · Cross-Chain Fills222. Shared Sequencing · Atomic Cross-Rollup

L2, Rollups & Modular

223. Rollup Anatomy · Execute Off-Chain · Settle On-Chain224. Sequencers · Centralized Risk · Decentralization225. Forced Inclusion · Escape Hatches226. Fraud Proofs · Interactive · Cannon227. Validity Proofs · The ZK-Rollup Core228. Data Compression · Calldata to Blobs229. Based Rollups · L1-Sequenced230. Sovereign Rollups · Self-Settling231. The Op Stack · The Superchain232. Arbitrum Nitro · Orbit Chains233. Zksync · Boojum · The Elastic Chain234. Starknet · Cairo · Native Aa235. Polygon Cdk · Agglayer · The Modular Thesis236. Data Availability · Celestia · Eigenda · Avail

Bitcoin Deep

237. Bitcoin Script · Opcodes Deep238. Address Types · P2pkh to P2tr239. Segwit · Witness Separation240. Taproot · Schnorr · Key-Path & Script-Path241. Mast · Merklized Script Trees242. Ordinals · Inscriptions · The Data Debate243. Brc-20 & Runes · Tokens on Bitcoin244. Lightning · Channels · Htlcs · Routing245. Watchtowers · Submarine Swaps246. Sidechains & Drivechains · The Scaling Debate

Alt-L1 Architectures

247. Solana · Proof of History · The Global Clock248. Solana · Sealevel · Parallel Execution249. Solana · Accounts Model · Anchor Framework250. Cosmos · The Sdk · App-Specific Chains251. Polkadot · Parachains · Shared Security · Xcm252. Avalanche · Subnets · The Snowman Consensus253. Near · Nightshade Sharding254. Aptos · Move · Block-Stm Parallelism255. Sui · The Object Model · Narwhal256. Ton · Sharding · The Telegram Chain257. Cardano · Eutxo · Plutus258. Monad · Parallel EVM · The L1 Race

Privacy & Confidentiality

259. Privacy on Public Ledgers · The Problem260. Mixers · Tornado Cash · The Sanctions Saga261. Zcash · Shielded Pools · Sapling262. Aztec · Private Smart Contracts263. Stealth Addresses · Eip-5564264. Confidential Transactions · Pedersen + Bulletproofs265. Ring Signatures · Monero266. Mimblewimble · Cut-Through · Grin267. Fhe On-Chain · Fhevm · Encrypted Compute268. Compliance · Viewing Keys · Privacy vs AML

Security & Auditing Deep

269. Reentrancy Variants · Cross-Function · Read-Only270. Oracle Manipulation · Spot-Price Attacks271. Flash Loan Attack Patterns272. Governance Attacks · Flash-Loaned Votes273. Proxy Pitfalls · Storage Collisions · Uninitialized274. Signature Replay · Malleability · Nonce Reuse275. Tx.origin Phishing · Access-Control Bugs276. Gas Griefing · Dos via Revert277. The DAO Hack · The Reentrancy That Forked Eth278. Bridge Hacks · Ronin · Wormhole · Nomad279. The Audit Process · Scoping to Report280. Invariant Testing · Fuzzing · Echidna · Foundry281. Formal Verification · Certora · The K Framework282. Static Analysis · Slither Detectors · Symbolic Exec

Dev Tooling & Infra

283. Foundry · Forge · Cast · Anvil · Chisel284. Hardhat · The Plugin Ecosystem285. The Node Stack · Geth · Reth · Erigon286. Light Clients · Helios · Trustless Rpc287. Rpc Providers · Rate Limits · Failover288. The Graph · Subgraphs · Indexing289. Event-Driven Indexers · Ponder · Custom290. Account Abstraction Infra · Bundlers · Paymasters291. Transaction Simulation · Tenderly · Forking292. Viem & Wagmi · The TypeScript Stack293. Wallet Connection · Walletconnect · Eip-6963294. CI/CD for Contracts · Testing & Deployment

DAOs, Governance & Frontier

295. DAO Governance · Governor · Timelock · Delegation296. Conviction & Quadratic Voting297. Retroactive Public Goods Funding · The Optimism…298. Real-World Assets · Tokenized Treasuries · Ondo299. Depin & Decentralized Social · Helium · Farcaster300. The Endgame · AI Agents · Chain Abstraction …