Lightning Network
Also known as: Lightning, LN
Layer-two payment protocol built on Bitcoin that moves many small payments off-chain into channels for faster, cheaper transactions.
The Lightning Network is a layer 2 payment protocol built on top of Bitcoin to make transactions faster and cheaper. Instead of recording every payment on the blockchain, two parties open a payment channel by locking funds in a shared on-chain transaction, then exchange signed updates to their balances privately and almost instantly. Only the opening and closing of the channel need to be settled on the main chain, so many small payments can happen with minimal fees.
Joseph Poon and Thaddeus Dryja proposed the design in a white paper in 2015, and several independent implementations, including LND, Core Lightning and Eclair, reached the main Bitcoin network in 2018. Payments can travel across a network of interconnected channels using hashed timelock contracts, a simple form of smart contract with cryptographic conditions and time limits, so that each hop either completes or refunds and intermediaries cannot take the funds. Penalty mechanisms deter either party from broadcasting an outdated channel state, and services called watchtowers can monitor for cheating on behalf of offline users.
Lightning aims to address Bitcoin's limited on-chain capacity, enabling uses such as small tips, streaming payments and point-of-sale purchases. It has notable limitations. Users must manage channel liquidity, since funds can only move in directions where capacity exists, routing large payments can fail and running a node requires staying online and securing keys, so many people use custodial wallets that reintroduce trust in a third party. Payments are more private than on-chain transactions but not anonymous. Like other cryptocurrency systems, it involves technical and financial risk, including loss of funds through software errors.
Key points
- Lightning moves Bitcoin payments off-chain into payment channels between parties.
- Joseph Poon and Thaddeus Dryja proposed it in 2015, with mainnet implementations in 2018.
- Hashed timelock contracts let payments route across multiple channels without trusting intermediaries.
- Liquidity management and reliance on custodial wallets are practical limitations of the system.
Related entries
Bitcoin
First decentralized cryptocurrency, launched in 2009, whose transactions are recorded on a public proof-of-work blockchain.
Layer 2
Protocol built on top of a base blockchain that processes transactions off the main chain while relying on it for security and final settlement.
Cryptocurrency
Digital asset that uses cryptography and a decentralized ledger, usually a blockchain, to record ownership and transfers without a central issuer.
Smart Contract
Program stored on a blockchain that runs automatically when its conditions are met, carrying out agreements or rules without a central operator.
Cryptocurrency Wallet
Software or hardware that stores the private keys controlling cryptocurrency holdings and uses them to sign transactions.
Blockchain
Append-only ledger made of blocks of records linked by cryptographic hashes and replicated across a network that agrees on updates by consensus.
Double-Spending
Risk that the same unit of digital money is spent more than once, a central problem that digital cash systems and blockchains must prevent.