Account
Computer Science & Technology

Mastering the Lightning Network: A Second Layer Blockchain Protocol for Instant Bitcoin Payments

A Second Layer Blockchain Protocol for Instant Bitcoin Payments

This Mastering the Lightning Network book explains payment channels, routing, and node operation. Developers and technical readers can connect the protocol’s design to the practical steps involved in sending payments across a network of channels.

  • 464pages
  • 17chapters
  • 3appendices
  • 1stedition

This book is for you if you are

  • a developer who understands Bitcoin fundamentals
  • a node operator studying payment channels and routing
  • a technical reader exploring off-chain payment protocols

Why this book

A Lightning payment travels through a network of channels rather than becoming a separate transaction on the Bitcoin blockchain. Understanding that difference requires more than learning to use a wallet. This lightning network book follows the protocol from its basic concepts to the messages, contracts, and routing decisions that allow separate nodes to coordinate a payment.

The authors explain how the Bitcoin Lightning Network fits together, with chapters on node software, channel operation, onion routing, pathfinding, payment requests, and security. Readers can move from an introductory example to a closer study of the protocol, using the chapter structure to return to a particular mechanism. Familiarity with Bitcoin fundamentals will help with the more technical material.

This listing describes the first edition. The authors’ manuscript is available under CC BY-SA 4.0, with attribution to Andreas M. Antonopoulos, Olaoluwa Osuntokun, and René Pickhardt. Source and license details are available at https://github.com/lnbook/lnbook.

What you'll learn

  • Explain how payment channels use Bitcoin transactions
  • Trace a payment across multiple channels
  • Explore node operation and channel management
  • Compare routing and pathfinding mechanisms
  • Identify security and privacy considerations

Not the right book for: Readers seeking a first introduction to Bitcoin or recommendations about investing in cryptocurrencies.

Questions about this book

Does this book assume Bitcoin knowledge?

Yes. It is written for technical readers familiar with Bitcoin fundamentals.

Does it discuss operating a node?

Yes. Node software and node operation are covered.

Which edition is described here?

This listing describes the first edition, published in 2021.

Can I get it in another format?

Yes. You get the PDF right away. Need EPUB, Kindle, Word or any other format? Email support@ebooksonline.si with your order number and we send it.

Does it work on Kindle?

Yes. Email support@ebooksonline.si with your order number and we send you a Kindle-ready file.

How many times can I download it?

As many times as you like. Sign in to your account and download it again at any time.

What if the file does not work?

Contact us with your order number and we will fix it or refund you.

Contents

  1. 1Introduction
  2. 2Getting Started
  3. 3How the Lightning Network Works
  4. 4Lightning Node Software
  5. 5Operating a Lightning Network Node
  6. 6Lightning Network Architecture
  7. 7Payment Channels
  8. 8Routing on a Network of Payment Channels
  9. 9Channel Operation and Payment Forwarding
  10. 10Onion Routing
  11. 11Gossip and the Channel Graph
  12. 12Pathfinding and Payment Delivery
  13. 13Wire Protocol: Framing and Extensibility
  14. 14Lightning’s Encrypted Message Transport
  15. 15Lightning Payment Requests
  16. 16Security and Privacy of the Lightning Network
  17. 17Conclusion

Details

Author
Andreas M. Antonopoulos, Olaoluwa Osuntokun, and René Pickhardt
Publisher
O’Reilly Media
Edition
1st edition, 2021
Pages
464
Language
English
Formats
PDF (EPUB, Kindle or any other format on request)
Licence
Personal use, keep forever

Andreas M. Antonopoulos, Olaoluwa Osuntokun, and René Pickhardt

Andreas M. Antonopoulos, Olaoluwa Osuntokun, and René Pickhardt coauthored this technical guide to the Lightning Network protocol and node operation.

Buy with confidence

If your file does not open or download, we fix it or refund you. Read the refund policy.

More in Computer Science & Technology

See all
Cover of 10-Minute Focus by Daniel Walter

Get a free ebook

Join the list and get 10-Minute Focus free, plus a short note when new books arrive.

Your cart

No products in the cart.

Subjects

More

Look inside

Sample