You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Andreas M. Antonopoulos 0bd00edf8c Remove versions from lngraph requirements 3 years ago
.github/ISSUE_TEMPLATE Update issue templates 4 years ago
callouts O'Reilly templates 4 years ago
code Remove versions from lngraph requirements 3 years ago
contrib Fix typo 3 years ago
images Color screenshots 3 years ago
theme O'Reilly templates 4 years ago
tools indent 3 years ago
.editorconfig Add trim_trailing_whitespace to .editorconfig 4 years ago
.gitignore moved gitignore 3 years ago
.travis.yml Relaxed Travis to avoid breaking builds while things are in flux 4 years ago
01_introduction.asciidoc ch-01: mentino splicing as 3rd channel txn type 3 years ago
02_getting_started.asciidoc Update 02_getting_started.asciidoc (#846) 3 years ago
03_how_ln_works.asciidoc ch-03: mention vbytes is the main accounting unit for fees 3 years ago
04_node_client.asciidoc Docker example fixes, upgrades and ch4 text edits 3 years ago
05_node_operations.asciidoc ch-05: mention rene as author of CL's autopilot plugin 3 years ago
06_lightning_architecture.asciidoc multi: typo fixes in ch 6+11 3 years ago
07_payment_channels.asciidoc ch-07: add caveat re 3rd party malleability and segwit 3 years ago
08_routing_htlcs.asciidoc Grammar fix in Chapter 8 (#835) 3 years ago
09_channel_operation.asciidoc fix typo and grammar (#805) 3 years ago
10_onion_routing.asciidoc ch-10: mention route correlation within route itself 3 years ago
11_gossip_channel_graph.asciidoc ch-11: tighten up verification, mention checking UTXO size w/ chan amt 3 years ago
12_path_finding.asciidoc fix typo (#827) 3 years ago
13_wire_protocol.asciidoc ch-13: fix grammar re attack surface 3 years ago
14_encrypted_transport.asciidoc Grammar fix, missing comma. 3 years ago
15_security_privacy_ln.asciidoc ch-13: mention second preimage hash function security req 3 years ago
CONTRIBUTING.md contributing: add US spelling instruction 4 years ago
LICENSE.md Initial LICENSE.md 5 years ago
README.md Appendices and README update 3 years ago
appendix-bitcoin-fundamentals-review.asciidoc appendix-bitcion: mention lock time field by name 3 years ago
appendix_docker_basics.asciidoc Docker example fixes, upgrades and ch4 text edits 3 years ago
appendix_failure_types.asciidoc Error return and conclusion 3 years ago
appendix_license_notices.asciidoc Added subheading to license notice appendix 4 years ago
appendix_payment_requests.asciidoc Appendices and README update 3 years ago
appendix_wire_protocol.asciidoc wire_protocol+appendix: split portion of wire appendix into new chapter 3 years ago
atlas.json Updated atlas.json 3 years ago
author_bio.html Edited author_bio.html with Atlas code editor 3 years ago
colo.html Updates to O'Reilly files 4 years ago
copyright.html Edited copyright.html with Atlas code editor 3 years ago
cover.html Edited cover.html with Atlas code editor 3 years ago
failure_types_table.asciidoc Updated failure_types table 3 years ago
github_contributors.asciidoc Add my name to contributors list 3 years ago
glossary.asciidoc glossary: fix soft fork definition 3 years ago
ix.html O'Reilly templates 4 years ago
preface.asciidoc Update preface.asciidoc 3 years ago
titlepage.html Edited titlepage.html with Atlas code editor 3 years ago
toc.html O'Reilly templates 4 years ago

README.md

Mastering the Lightning Network

Build Status

Mastering Lightning Cover

About

Mastering the Lightning Network is an O'Reilly Media book, due for publication in Q4'2021, and announced in August 2019 by authors Andreas M. Antonopoulos (@aantonop), Olaoluwa Osuntokun (@roasbeef), Rene Pickhardt (@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 PRODUCTION": ONLY COPY-EDIT CONTRIBUTIONS ARE ACCEPTED.

See below for status of specific chapters and read the contribution guide to learn how and where to contribute.

Legend

  • 🔃 LIVE EDITS - Continuously changing: Submit focused/small Issues and PRs
  • 🔍 REVIEW - Ready for review: Submit Issues and PRs as needed
  • 🔏 EARLY DRAFT - In progress, changing often: Submit issues only, NO PRs or fixes
  • 📑 OUTLINE - Rough outline - Please contribute! PRs welcome.
  • 💭 PLANNED - Planned section - Do nothing yet.
  • ✔️ DRAFT PUBLISHED - Published in early release - Copy edit only.
Section Length (Word Count) Status
PART 1 PART 1 PART 1
Preface and Acknowledgments #### ✔️
Glossary ############## 🔃
Introduction ########## ✔️
Getting Started ############# ✔️
LN Basics (How LN Works) ########################### ✔️
Nodes (LN Clients) #################### ✔️
Operating a Node ############################ ✔️
PART 2 PART 2 PART2
Lightning Architecture # ✔️
Payment Channels in Detail ################### ✔️
Routing (HTLCs) ################ ✔️
Channel operation and HTLC settlement ####### ✔️
Onion Construction and Routing ################ ✔️
Channel Graph and Gossip Layer ############ ✔️
Payment Path Finding ############ ✔️
LN Security and Privacy ################ ✔️
APPENDICES APPENDICES APPENDICES
A1 - Bitcoin Fundamentals Review ########### ✔️
A2 - Payment Requests (Invoices) #### ✔️
A3 - Wire Protocol ################# ✔️
A4 - Encrypted Message Transport (Brontide) ########## ✔️
A5 - License Notices # ✔️

Total Word Count: 125288

Target Word Count: 100,000-120,000

Contributing

The authors welcome contributions to this book! Read the Guide to Contributing

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

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.