# Mastering the Lightning Network [![Build Status](https://travis-ci.com/lnbook/lnbook.svg?branch=develop)](https://travis-ci.com/lnbook/lnbook) Mastering Lightning Cover ## About Mastering the Lightning Network is an O'Reilly Media book, due for publication in Q2'2021, and announced in August 2019 by authors Andreas M. Antonopoulos ([@aantonop](https://twitter.com/aantonop)), Olaoluwa Osuntokun ([@roasbeef](https://twitter.com/roasbeef)), Rene Pickhardt ([@renepickhardt](https://twitter.com/renepickhardt)). The book describes the Lightning Network (LN), a Peer-to-Peer protocol running on top of Bitcoin and other blockchains, which provides near-instant, secure, micro-payments. The book is suitable for technical readers with an understanding of the fundamentals of Bitcoin and other open blockchains. ## Status The current status of the book is "IN PROGRESS". See below for status of specific chapters and read the contribution guide to learn how and where to contribute. ### Legend * :arrows_clockwise: LIVE EDITS - Continuously changing: Submit focused/small Issues and PRs * :mag: REVIEW - Ready for review: Submit Issues and PRs as needed * :lock_with_ink_pen: EARLY DRAFT - In progress, changing often: Submit issues only, NO PRs or fixes * :bookmark_tabs: OUTLINE - Rough outline - Please contribute! PRs welcome. * :thought_balloon: PLANNED - Planned section - Do nothing yet. * :heavy_check_mark: DRAFT PUBLISHED - Published in early release - Copy edit only. | Section | Length (Word Count) | Status | |-------|------|:------:| | PART 1 | PART 1 | PART 1 | | [Preface and Acknowledgments](preface.asciidoc) | #### | :heavy_check_mark: | | [Glossary](glossary.asciidoc) | ############## | :arrows_clockwise: | | [Introduction](01_introduction.asciidoc) | ########## | :heavy_check_mark: | | [Getting Started](02_getting_started.asciidoc) | ############# | :heavy_check_mark: | | [LN Basics (How LN Works)](03_how_ln_works.asciidoc) | ########################### | :heavy_check_mark: | | [Nodes (LN Clients)](04_node_client.asciidoc) | #################### | :heavy_check_mark: | | [Operating a Node](05_node_operations.asciidoc) | ############################# | :heavy_check_mark: | | PART 2 | PART 2 | PART2 | | [Lightning Architecture](06_lightning_architecture.asciidoc) | # | :mag: | | [Payment Channels in Detail](07_payment_channels.asciidoc) | ############### | :mag: | | [Routing (HTLCs)](08_routing_htlcs.asciidoc) | ################ | :mag: | | [Channel operation with HTLCs and Statemachine](channel-operation.asciidoc) | ###### | :lock_with_ink_pen: | | [Payment Path Finding](path-finding.asciidoc) | ############### | :lock_with_ink_pen: | | [Onion Construction and Routing](onions.asciidoc) | # | :lock_with_ink_pen: | | [P2P Communication](p2p.asciidoc) | ### | :bookmark_tabs: | | [Channel Graph and Gossip Layer](channel-graph.asciidoc) | ### | :bookmark_tabs: | | [End-to-End Payment Presentation Layer](e2e-presentation-layer.asciidoc) | ### | :bookmark_tabs: | | [Lightning Applications (LApps)]() | # | :thought_balloon: | | [LN Security and Privacy]() | # | :lock_with_ink_pen: | | [LN's Future]() | # | :thought_balloon: | | APPENDICES | APPENDICES | APPENDICES | | [A1 - Bitcoin Fundamentals Review](appendix-bitcoin-fundamentals-review.asciidoc) | ########### | :heavy_check_mark: | | [An - License Notices](appendix_license_notices.asciidoc) | # | :heavy_check_mark: | Total Word Count: 103616 Target Word Count: 100,000-120,000 ## Contributing The authors welcome contributions to this book! Read the [Guide to Contributing](CONTRIBUTING.md) ## Source and license Mastering the Lightning Network is released under the Creative Commons CC-BY-NC-ND license, which allows sharing the source code for personal use only. You may read this book for free. You may not create derivatives (such as PDF copies), or distribute the book commercially. The full terms of the license can be found here: [![Creative Commons License](https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png)](https://creativecommons.org/licenses/by-nc-nd/4.0/) Mastering the Lightning Network by Andreas M. Antonopoulos, Olaoluwa Osuntokun, Rene Pickhardt is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. It is expected that the book will be released under a more permissive CC-BY-SA license within a year of publication.