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

Blockchain & Decentralized Systems

Overview

Blockchain technology enables trustless, decentralized computation across networks of mutually distrustful participants. What began as Bitcoin’s distributed ledger has evolved into a rich ecosystem of consensus protocols, smart contract platforms, rollup architectures, and decentralized infrastructure. Understanding blockchain internals is now essential for roles in fintech, infrastructure engineering, distributed systems, and cryptographic research.

Why This Section Matters for Interviews

Blockchain interviews span a unique intersection of distributed systems, cryptography, game theory, and systems engineering. You may encounter blockchain questions for roles at:

  • Protocol teams: Ethereum Foundation, Solana Labs, Cosmos, Avalanche
  • Infrastructure: Alchemy, Infura, QuickNode, Chainstack
  • DeFi/CEX: Coinbase, Binance, Uniswap Labs, Aave
  • Enterprise: Chainlink, Polygon, Arbitrum, Optimism
  • General SWE: Any company exploring Web3 or distributed trust

Section Map

FileTopicsKey Systems
Consensus MechanismsPoW, PoS, BFT, HotStuff, TendermintBitcoin, Ethereum, Cosmos
Ethereum InternalsState trie, rollups, sharding, Verkle treesEthereum, L2s, EIPs
Blockchain SecurityReentrancy, bridges, MEV, consensus attacksDeFi, cross-chain, oracles
Decentralized InfrastructureIPFS, DHTs, DID, modular blockchainsIPFS, Filecoin, Cosmos SDK

Core Concepts at a Glance

mindmap
  root((Blockchain))
    Consensus
      Proof of Work
      Proof of Stake
      BFT Variants
      Nakamoto Consensus
    Data Structures
      Merkle Trees
      Patricia Tries
      Verkle Trees
    Execution
      Smart Contracts
      EVM / WASM
      Rollups
    Security
      Smart Contract Audits
      Bridge Exploits
      MEV
    Infrastructure
      P2P Networks
      DHTs
      Decentralized Storage

Key Trade-offs

DimensionCentralizedDecentralized
Throughput10K–1M TPS10–100K TPS (with L2s)
FinalityMillisecondsSeconds to minutes
Censorship resistanceLowHigh
Operational costOPEXToken economics / gas
Data availabilityControlledErasure-coded / DAS

Prerequisites

Interview Preparation Strategy

  1. Know the classic results cold: Nakamoto consensus, PBFT, the impossibility trilemma
  2. Understand Ethereum deeply: State transition function, gas mechanics, EIP-4844, EIP-1559
  3. Be able to compare: PoW vs PoS trade-offs, optimistic vs ZK rollups, monolithic vs modular
  4. Think in attacks: Reentrancy, front-running, bridge exploits, data withholding
  5. Connect to fundamentals: How blockchain consensus relates to FLB/PBFT, how Merkle trees relate to content-addressed storage