Chapter: Bitcoin

By Ittay Eyal

In 2008, Satoshi Nakamoto published the Bitcoin whitepaper ↗, describing a form of electronic cash that needs no central bank or other trusted party. Perhaps more importantly, in January 2009 Bitcoin went live. Anyone can download its software and join, with no permission and no identity, and the participants together maintain a public ledger of who owns which coins. Cryptocurrency remains the poster-child use case for blockchains, as What are Blockchains Useful for, Really? notes.

This chapter outlines how Bitcoin works and what we have learned about it, pointing to the posts that cover each aspect in depth. Interestingly, much of it was understood only after Bitcoin became a successful system, securing hundreds of billions of dollars.

The Bitcoin Protocol

Bitcoin solves an old problem: implementing a digital payment system. Replicating a payment ledger across several servers, so that no single server must be trusted, is state machine replication (SMR), formalized in the 1980s; see Consensus for State Machine Replication. Classical SMR assumes a known set of servers, a bounded number of which an adversary controls. The power of the adversary lays out the choices in modeling such an adversary. Bitcoin’s break from this tradition is that anyone can join, under as many identities as they like.

Bitcoin’s ledger is a chain of blocks, each holding a batch of transactions and the hash of the previous block. Haber and Stornetta used such a hash chain in 1991 to time-stamp digital documents. Instead of a trusted time-stamping service, Bitcoin uses an open group of miners.

Each block has a short header holding the previous block’s hash and the root of a Merkle tree of its transactions, so light clients (think: mobile devices) can verify payments from headers alone.

Miners (think: servers with dedicated hardware) compete to create blocks by proof of work: a block counts only if its header’s hash falls below a target; finding one takes many attempts, so each miner’s chance of creating the next block is proportional to its computing power. If two blocks extend the same block, the chain forks, and everyone follows the longest chain. Nakamoto’s Longest-Chain Wins Protocol builds this protocol, known as Nakamoto consensus, step by step, including forks, the $k$-deep confirmation rule, and difficulty adjustment (retuning the target so that a block is found about every ten minutes). A transaction is confirmed once its block is followed by $k$ more; a longer competing chain could still replace these blocks, but this becomes less likely as $k$ grows. Confirmation is therefore only probabilistic, and Finality is in the eye of the beholder uses Bitcoin’s history to argue that finality is, in the end, a matter of belief. The only setup Bitcoin needs is its genesis block, the first block of the chain, which is hard-coded in the software. Classical protocols instead need a trusted setup, such as a public-key infrastructure (PKI), and the consensus cheat sheet places proof of work next to a PKI as a way to tolerate a Byzantine (arbitrarily misbehaving) minority in synchrony. What is a Blockchain? traces the term back to Nakamoto’s writing and proposes a definition.

Bitcoin’s Correctness

Instead of bounding the number of faulty participants, Bitcoin bounds the adversary’s share of the computing power; The threshold adversary describes this shift from counting participants to counting resources. Nakamoto’s whitepaper analyzed a specific attack, and rigorous proofs came only years later, starting with Garay, Kiayias, and Leonardos ↗. Ling Ren’s Security proof for Nakamoto Consensus needs only basic probability and explains why blocks must be far apart relative to the network delay, and his simpler proof is almost tight for Bitcoin’s parameters. Strong Chain Quality strengthens chain quality, the share of the chain contributed by honest participants, from an average over time to a guarantee in every block.

Two posts look at the beginning of the chain. Do Bitcoin and Ethereum have any trusted setup assumptions? asks what prevents mining a chain before launch, and Don’t Trust. Verify. and Checkpoint? asks what prevents a majority from rewriting it all the way back to the genesis block.

Nakamoto consensus stays live however many miners participate, but loses safety when the network partitions, the opposite of classical Byzantine fault tolerant (BFT) protocols. Resolving the Availability-Finality Dilemma combines the two approaches, and Blockchain Resource Pools and a CAP-esque Impossibility Result proves the tradeoff inherent when the total amount of the resource is unknown, as with computing power.

Beyond Bitcoin’s model, Safe Permissionless Consensus shows that probabilistic agreement is not inherent to open participation, at least under benign failures. Player Replaceability carries the adaptive security that proof of work provides over to committee-based BFT.

Bitcoin’s Mechanism Design

Bitcoin’s key novelty, arguably Nakamoto’s greatest breakthrough, is its mechanism design. Classical protocols assume that most participants follow the rules; Bitcoin instead aims to make following them profitable and deviating unprofitable, which is what enables open participation. Miners earn newly minted coins and transaction fees for each block, and the whitepaper argued that this makes following the protocol the most profitable strategy. Blockchain Selfish Mining shows that it is not: a miner that withholds blocks can earn more than its fair share.

Beyond Bitcoin, Colordag proposes a reward scheme that almost always resists selfish mining by miners with up to half the computing power. On the fee side, EIP-1559 In Retrospect evaluates Ethereum’s replacement for the Bitcoin-style first-price fee auction.

Bitcoin’s Performance

Bitcoin’s limited block size and ten-minute block interval allow only a few transactions per second and make confirmation take about an hour. Whether to raise these limits split the Bitcoin community. An Analysis of Latency and Block Capacity in Nakamoto Consensus studies how miners choose block sizes when larger blocks are more likely to be orphaned (left out of the chain because a competing block won). Data, Consensus, Execution surveys scalability by bottleneck, including Bitcoin proposals such as Bitcoin-NG (a higher-throughput variant of Nakamoto consensus) and the Lightning Network (which moves most payments off the chain). Scaling Blockchains: the Power of Batching argues that batching answers the classic reasons why blockchains supposedly cannot scale.

Bitcoin Transactions

Another novelty of Bitcoin is its UTXO model. Instead of account balances, the ledger’s state is the set of unspent transaction outputs (UTXOs): funds that past transactions created, each of which its owner can spend once.

Set Replication observes that transfers of UTXOs do not need a total order and shows how to replicate a UTXO set. He-HTLC: Revisiting Incentives in HTLC examines how miner incentives affect hashed time-locked contracts, a building block for the Lightning Network and atomic swaps.

Every transaction is public, so Bitcoin offers little privacy; by contrast, the e-cash in Simple Payment Systems with Unlinkability hides who paid whom.

Tags: blockchain
Share: X (Twitter)