Skip to main content

Lightning Network | Wiki | Mapping Bitcoin

Lightning Network

Layer 2 protocol built on Bitcoin enabling near-instant, low-cost transactions through bidirectional payment channels, proposed in 2015 by Poon and Dryja.

The Lightning Network is a Layer 2 payment protocol built on top of Bitcoin that enables instant, high-volume transactions at minimal cost. By moving most transactions off the main blockchain into a network of bidirectional payment channels, Lightning dramatically increases Bitcoin's transaction throughput while preserving its core properties of decentralization and censorship resistance.

Origins

The Lightning Network concept was first described in a 2015 whitepaper by Joseph Poon and Thaddeus Dryja titled "The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments." The paper proposed using Bitcoin's scripting capabilities and time-locked contracts to create payment channels that could route payments across multiple hops without requiring on-chain transactions for every transfer.

The idea built on earlier payment channel concepts, including Christian Decker's duplex micropayment channels, and was made practical by the activation of Segregated Witness (SegWit) in August 2017, which fixed the transaction malleability issue that had prevented safe off-chain protocols.

How It Works

Two parties open a payment channel by locking bitcoin in a 2-of-2 multisignature address on the main blockchain. Once the channel is open, they can send an unlimited number of payments back and forth instantly by exchanging signed but unbroadcast transactions. When either party wants to settle, they close the channel and the final balance is recorded on-chain.

The key innovation is routing: payments can traverse multiple channels using Hash Time-Locked Contracts (HTLCs), meaning Alice can pay Carol through Bob without requiring a direct channel between them. This creates a network where a relatively small number of channels can serve a vast number of payment paths.

The protocol uses onion routing inspired by Tor to preserve payment privacy, ensuring that intermediary nodes cannot determine the full path of a payment.

Implementations

Several independent teams have built Lightning Network implementations:

ImplementationOrganizationLanguage
LNDLightning LabsGo
Core Lightning (CLN)BlockstreamC
EclairACINQScala
LDKSpiral (Block)Rust

This diversity of implementations strengthens the network by ensuring no single codebase represents a single point of failure. All implementations follow the BOLT specifications (Basis of Lightning Technology) for interoperability.

Adoption

The Lightning Network has grown from an experimental protocol to production infrastructure used by millions. Notable milestones include:

  • El Salvador (2021): Adopted Bitcoin as legal tender using the Chivo wallet, which runs on Lightning
  • Strike: Built a mainstream payments app on Lightning, used for cross-border remittances
  • BTCPay Server: Integrated Lightning support for merchant payments
  • Nostr: The decentralized social protocol uses Lightning for micropayments (zaps)
  • Mapping Bitcoin: Directory of merchants accepting Lightning payments worldwide

As of 2025, the public Lightning Network has over 15,000 nodes and thousands of BTC in channel capacity.

Technical Documentation

The most comprehensive technical resource for the Lightning Network is Mastering the Lightning Network by Andreas Antonopoulos, Olaoluwa Osuntokun, and Rene Pickhardt, published in 2021 and freely available on GitHub.

Significance

The Lightning Network solves Bitcoin's scalability challenge without compromising its base layer's decentralization or security. It enables use cases -- micropayments, streaming payments, point-of-sale transactions -- that are impractical on-chain due to confirmation times and fees. It represents the most significant expansion of Bitcoin's capabilities since its creation.

References

Referenced by

Lightning LabsRelated

Founded in 2016 by Elizabeth Stark, Lightning Labs builds core Lightning Network infrastructure including LND, Loop, and the Taproot Assets protocol.

BlockstreamRelated

Bitcoin infrastructure company founded in 2014 by Adam Back and others, known for the Liquid sidechain, Blockstream Satellite, and mining operations.

StrikeRelated

Lightning Network payments app founded by Jack Mallers in 2020, enabling instant global Bitcoin transfers and key to El Salvador legal tender adoption.

Block, Inc.Related

Jack Dorsey fintech company formerly known as Square, holding 8,800+ BTC, building the Bitkey wallet, Proto mining chip, and Bitcoin via Cash App.

BTCPay ServerRelated

Self-hosted Bitcoin payment processor built by Nicolas Dorier in 2017, giving merchants full sovereignty over payments with no fees or third parties.

Mapping BitcoinRelated

Open-source directory mapping Bitcoin-accepting businesses globally, with multilingual support, merchant verification, and OpenStreetMap data integration.

La CryptaRelated

Argentine Bitcoin and open-source community fostering education, development, and circular economy adoption in Buenos Aires and across Latin America.

Laszlo HanyeczRelated

Early Bitcoin developer who paid 10,000 BTC for two pizzas on May 22, 2010, the first real-world Bitcoin purchase, now celebrated as Bitcoin Pizza Day.

Nayib BukeleRelated

President of El Salvador who made it the first country to adopt Bitcoin as legal tender in 2021, launching the Chivo Wallet and a national Bitcoin reserve.

Mastering the Lightning NetworkAbout

Technical guide by Antonopoulos, Osuntokun, and Pickhardt covering the Lightning Network protocol, payment channels, and practical implementation details.