653 / 736BK37

Mastering the Lightning Network

A technical guide to payment channels and routing

Mastering the Lightning Network explains how to extend Bitcoin with payments through channels between nodes. Andreas M. Antonopoulos, Olaoluwa Osuntokun and René Pickhardt combine practical use with an explanation of the protocol. The introduction emphasizes the difference between a global blockchain and a payment following a selected path.

This technical book published by O’Reilly in 2021 is intended for readers with a basic knowledge of Bitcoin. This overview draws on the entire preface and first chapter of the original edition; we did not independently verify the remaining chapters or example software.

The authors are Andreas M. Antonopoulos, Olaoluwa Osuntokun and René Pickhardt. O’Reilly lists November 2021, while the official repository records publication of the first edition on 21 December 2021. We used the firstedition_firstprint tag for our reading; we do not merge the publisher’s record and the repository announcement into a single date. [1] [2]

The preface assumes basic familiarity with Bitcoin and open blockchains. The contents begin with using the network and operating a node, then move to channels, routing and other protocol components. The book uses the command line and programming languages; a table of contents alone is not evidence of having read all those chapters. [1] [3]

The first chapter explains that Lightning Network relies on the security of an existing blockchain. A payment channel is a relationship between two nodes, and its opening or closing relies on blockchain transactions. A payment within the network, however, need not be broadcast to every participant like a base-layer transaction. [4]

The introduction distinguishes a direct channel from a payment routed through other nodes. The teaching characters Alice, Bob, Chan and Dina represent different uses; Chan’s story also includes providing liquidity. These are teaching examples, not measurements of actual activity or proof that every payment will always find a suitable path. [4]

The authors describe Lightning Network as a protocol that limits the need to trust other participants. At the same time, they explicitly retain trust in software and the protocol. The analogy of dividing a serving, with one person splitting and the other choosing, explains the role of rules and incentives; it does not by itself prove the security of every implementation. [4]

The introduction is motivated by the difference between globally replicating transactions and exchanging information among the participants in a payment. The text connects increasing base-layer capacity with demands on bandwidth, storage and the accessibility of running nodes. We do not present its historical calculations as today’s network performance, and we do not guarantee low fees or speed for every payment. [4]

The preface explicitly says that references to companies, projects and code serve an educational purpose and that the authors did not verify the security or operation of all the examples mentioned. It also warns against sending funds to published addresses. The historical text therefore cannot serve as a current security recommendation for a particular service. [3]

We read the entire preface, including the incorporated contributor list, and the entire Introduction chapter from the firstedition_firstprint tag. We also verified the publisher’s metadata and the book description in the official repository. We did not test other chapters or their programs; this overview is neither a complete book review nor an audit of current implementations. [1] [2] [3] [4]

For the clearest picture, read this entry together with Lightning Network, Payment Channel, HTLC, Lightning liquidity.

01Is the book intended for complete Bitcoin beginners?

The preface assumes basic knowledge of Bitcoin and open blockchains. The introduction explains basic Lightning Network concepts; according to the contents, later parts move to operating a node and technical details.

02Did you verify the entire protocol against every chapter of the book?

No. We read the entire preface with its incorporated contributor list and the entire Introduction chapter of the original edition. We did not independently test the remaining chapters, example code or current implementations.

DOC · 001O’Reilly — Mastering the Lightning NetworkPublisher DOC · 002Mastering the Lightning Network — official repositoryPrimary DOC · 003Mastering the Lightning Network — first edition PrefacePrimary DOC · 004Mastering the Lightning Network — first edition IntroductionPrimary
Revised: Source-first · No investment advice