{"id":13499423,"url":"https://github.com/lnbook/lnbook","last_synced_at":"2025-05-14T15:06:34.712Z","repository":{"id":37561796,"uuid":"203856675","full_name":"lnbook/lnbook","owner":"lnbook","description":"Mastering the Lightning Network (LN)","archived":false,"fork":false,"pushed_at":"2024-08-09T18:07:00.000Z","size":145141,"stargazers_count":2869,"open_issues_count":205,"forks_count":653,"subscribers_count":145,"default_branch":"develop","last_synced_at":"2025-04-09T11:02:01.943Z","etag":null,"topics":["bitcoin","blockchain","blockchains","c-lightning","lightning-network","ln","lnd","p2p","payments","peer"],"latest_commit_sha":null,"homepage":null,"language":"AsciiDoc","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnbook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-22T19:06:35.000Z","updated_at":"2025-04-06T12:20:28.000Z","dependencies_parsed_at":"2023-02-10T00:00:59.761Z","dependency_job_id":"a170752b-86b5-490d-861a-2a992ffc3f8b","html_url":"https://github.com/lnbook/lnbook","commit_stats":{"total_commits":1936,"total_committers":170,"mean_commits":"11.388235294117647","dds":0.7587809917355373,"last_synced_commit":"54453c7b1cf82186614ab929b80876ba18bdc65d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbook%2Flnbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbook%2Flnbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbook%2Flnbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbook%2Flnbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnbook","download_url":"https://codeload.github.com/lnbook/lnbook/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169080,"owners_count":22026208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","blockchain","blockchains","c-lightning","lightning-network","ln","lnd","p2p","payments","peer"],"created_at":"2024-07-31T22:00:33.037Z","updated_at":"2025-05-14T15:06:34.663Z","avatar_url":"https://github.com/lnbook.png","language":"AsciiDoc","funding_links":[],"categories":["Learning Resources","Taproot Assets Protocol","Recommended Books","AsciiDoc","Books","Awesome RGB(Really Good Bitcoin)"],"sub_categories":["Books","Architecture"],"readme":"# Mastering the Lightning Network\n\n[![CC BY-SA 4.0][cc-by-sa-shield]][cc-by-sa]\n\nSTATUS: First Edition published on Dec 21, 2021\n\n\u003cimg src=\"images/cover_thumb.png\" width=200 alt=\"Mastering Lightning Cover\"\u003e\n\n## About\nMastering the Lightning Network is an O'Reilly Media book, by authors Andreas M. Antonopoulos ([@aantonop](https://twitter.com/aantonop)), Olaoluwa Osuntokun ([@roasbeef](https://twitter.com/roasbeef)), Rene Pickhardt ([@renepickhardt](https://twitter.com/renepickhardt)). It was published on Dec 21, 2021, in paperback and e-book, by O'Reilly Media. It is available everywhere that books are sold. This repository contains the manuscript of the book as published by O'Reilly Media, tagged as [firstedition_firstprint](https://github.com/lnbook/lnbook/releases/tag/firstedition_firstprint).\n\nThe 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.\n\nThe book is suitable for technical readers with an understanding of the fundamentals of Bitcoin and other open blockchains.\n\n## Contents\n\n### Preface\n\n*  [Cover](cover.html)\n*  [Titlepage](titlepage.html)\n*  [Copyright](copyright.html)\n*  [Table of Contents](toc.html)\n*  [Preface](preface.asciidoc)\n\n### Part 1\n\n*  [Part 1 - Intro](part_1_divider.asciidoc)\n*  [Introduction](01_introduction.asciidoc)\n*  [Getting Started](02_getting_started.asciidoc)\n*  [How the Lightning Network Works](03_how_ln_works.asciidoc)\n*  [Lightning Node Software](04_node_client.asciidoc)\n*  [Operating a Lightning Network Node](05_node_operations.asciidoc)\n\n### Part 2\n\n*  [Part 2 - Intro](part_2_divider.asciidoc)\n*  [Lightning Network Architecture](06_lightning_architecture.asciidoc)\n*  [Payment Channels](07_payment_channels.asciidoc)\n*  [Routing on a Network of Payment Channels](08_routing_htlcs.asciidoc)\n*  [Channel Operation and Payment Forwarding](09_channel_operation.asciidoc)\n*  [Onion Routing](10_onion_routing.asciidoc)\n*  [Gossip and the Channel Graph](11_gossip_channel_graph.asciidoc)\n*  [Pathfinding and Payment Delivery](12_path_finding.asciidoc)\n*  [Wire Protocol: Framing and Extensibility](13_wire_protocol.asciidoc)\n*  [Lightning's Encrypted Message Transport](14_encrypted_transport.asciidoc)\n*  [Lightning Payment Requests](15_payment_requests.asciidoc)\n*  [Security and Privacy of the Lightning Network](16_security_privacy_ln.asciidoc)\n*  [Conclusion](17_conclusion.asciidoc)\n\n### Appendices\n\n*  [Bitcoin Fundamentals Review](appendix_bitcoin_fundamentals_review.asciidoc)\n*  [Docker Basics](appendix_docker_basics.asciidoc)\n*  [Protocol Messages](appendix_protocol_messages.asciidoc)\n\n### Glossary\n\n*  [Glossary](glossary.asciidoc)\n\n### Author Bios and Colophon\n\n*  [Author Bios](author_bio.html)\n*  [Colophon](colo.html)\n\n## Creative Commons Attribution Sharealike License\n\nMastering the Lightning Network is released under the Creative Commons CC-BY-SA 4.0 license. The full terms of the license can be found here:\n\n[![CC BY-SA 4.0][cc-by-sa-shield]][cc-by-sa]\n\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-sa/4.0/88x31.png\" /\u003e\u003c/a\u003e\u003cbr /\u003e\u003cspan xmlns:dct=\"http://purl.org/dc/terms/\" href=\"http://purl.org/dc/dcmitype/Text\" property=\"dct:title\" rel=\"dct:type\"\u003eMastering the Lightning Network\u003c/span\u003e by \u003cspan xmlns:cc=\"http://creativecommons.org/ns#\" property=\"cc:attributionName\"\u003eAndreas M. Antonopoulos, Olaoluwa Osuntokun, Rene Pickhardt\u003c/span\u003e is licensed under a \u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"\u003eCreative Commons Attribution-ShareAlike 4.0 International License\u003c/a\u003e.\u003cbr /\u003eBased on a work at \u003ca xmlns:dct=\"http://purl.org/dc/terms/\" href=\"https://github.com/lnbook/lnbook\" rel=\"dct:source\"\u003ehttps://github.com/lnbook/lnbook\u003c/a\u003e.\n\nThis \"Free Culture\" compliant license was approved by our publisher O'Reilly Media (http://oreilly.com), who understands the value of open source. O'Reilly Media is not just the world's best publisher of technical books, but is also a strong supporter of this open culture and the sharing of knowledge.\n\nThank you O'Reilly Media!\n\n## Translations and Derivatives (eg. PDF, HTML, EPUB ebooks)\n\nThe current license permits derivative work, such as independent translations and the production and circulation of PDF, HTML or other derivative renderings of the source ASCIIDOC. *The license does not extend to O'Reilly Media intellectual property, such as the cover page.*\n\nIf you are interested in translating this book please see [TRANSLATING.md](TRANSLATING.md)\n\n[cc-by-sa]: http://creativecommons.org/licenses/by-sa/4.0/\n[cc-by-sa-image]: https://licensebuttons.net/l/by-sa/4.0/88x31.png\n[cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbook%2Flnbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnbook%2Flnbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbook%2Flnbook/lists"}