Skip to main content

Lightning Network | Wiki | Mapping Bitcoin

Lightning Network

A Layer 2 payment protocol built on top of Bitcoin enabling instant, low-cost transactions through a network of payment channels.

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

Bitcoin payments app founded by Jack Mallers in 2020, enabling instant global transfers over the Lightning Network. Played a key role in El Salvador adoption.

Block, Inc.Related

Formerly Square, a financial services and digital payments company led by Jack Dorsey that holds ~8,800 BTC on its balance sheet, builds the Bitkey hardware wallet, Proto mining hardware, and enables Bitcoin buying via Cash App.

BTCPay ServerRelated

Open-source, self-hosted Bitcoin payment processor created by Nicolas Dorier in 2017. Supports Lightning Network and gives merchants full payment sovereignty.

Mapping BitcoinRelated

Open-source platform mapping Bitcoin-accepting businesses worldwide with multilingual directory, merchant verification, and real-time data from OpenStreetMap.

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 and pioneer who made the first real-world Bitcoin purchase (10,000 BTC for two pizzas on May 22, 2010), created the first MacOS Bitcoin client, and pioneered GPU mining.

Nayib BukeleRelated

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

Mastering the Lightning NetworkAbout

A comprehensive technical guide by Andreas M. Antonopoulos, Olaoluwa Osuntokun, and René Pickhardt covering the Lightning Network protocol and its applications.