LESSON 14 · BITCOIN SCALING
The Bitcoin Lightning Network
Bitcoin allows people to transfer value without depending on a traditional bank. But what happens when many people want to make small payments quickly?
The Lightning Network is a system designed to make Bitcoin payments faster and more suitable for frequent, smaller transactions.
1. What is the Lightning Network?
The Lightning Network is a payment network built on top of Bitcoin. It allows participants to make payments through payment channels without recording every individual payment directly on the Bitcoin blockchain.
The Bitcoin blockchain is often called Layer 1. Lightning is commonly described as a Layer 2 system because it uses Bitcoin's blockchain as its underlying settlement system.
Lightning does not replace Bitcoin. It uses Bitcoin to establish and settle payment channels.
2. What is a payment channel?
Imagine two people, Alice and Bob, who want to make payments to each other regularly.
Instead of making a separate on-chain transaction for every payment, they can open a payment channel.
Opening a channel normally involves a Bitcoin on-chain transaction that locks funds into a channel.
While the channel is open, Alice and Bob can update their balances through Lightning payments. These updates do not each require a new Bitcoin blockchain transaction.
When the channel closes, its final settlement can be recorded on the Bitcoin blockchain.
3. How does a Lightning payment travel?
Lightning payments can travel through connected payment channels. You do not necessarily need a direct channel with the person receiving your payment.
Example route: Alice pays Dan through connected channels.
In this simplified example, Alice sends a payment to Dan through Bob and Carol. The Lightning Network searches for a suitable route with enough available channel liquidity.
Actual Lightning payments use cryptographic mechanisms called Hashed Time-Locked Contracts (HTLCs), or newer mechanisms such as Point Time-Locked Contracts (PTLCs) where supported. These mechanisms help make routed payments conditional and protect participants against certain payment risks.
4. On-chain Bitcoin vs Lightning
| Feature | Bitcoin on-chain | Lightning |
|---|---|---|
| Where payments happen | Bitcoin blockchain | Payment channels |
| Typical speed | Depends on block confirmation | Usually very fast |
| Fees | Miner transaction fees | Routing fees may apply |
| Best suited for | Direct blockchain settlement | Frequent smaller payments |
| Settlement | Recorded on-chain | Channel updates, with on-chain settlement when needed |
Lightning payments are often faster and cheaper, but fees and performance depend on network conditions, routing and channel liquidity. They are not guaranteed to be free.
5. Why is Lightning useful?
- Speed: Payments can usually complete in seconds.
- Smaller payments: It can make small Bitcoin payments more practical.
- Lower fees: Routing fees can be small, although they vary.
- More payment capacity: It can support many payments without putting each one directly on the blockchain.
- Global access: People can use Lightning across borders where they have suitable access to the network.
6. What are the risks and limitations?
Lightning is useful, but it is not perfect.
- Liquidity: A payment route needs enough available liquidity in the right direction.
- Online availability: Some wallet and node setups need to be online to manage payments and channel activity.
- Channel management: Opening, closing and maintaining channels can require technical knowledge or fees.
- Wallet security: Users still need to protect their keys and backups.
- Wallet providers: Some services use custodial arrangements, meaning the provider controls the funds or keys.
A custodial Lightning wallet is not the same as holding your own private keys. Understand who controls the funds before using a service.
7. How does Lightning connect to Bitcoin?
Bitcoin provides the underlying blockchain and settlement rules. Lightning uses payment channels to move value between participants more frequently.
Think of the Bitcoin blockchain as the foundation and Lightning as a payment system built on top of that foundation.
The two systems work together. Lightning depends on Bitcoin for channel funding and settlement.
8. Test your knowledge
Choose one answer for each question.