blockmindset
Lesson 5 of 512 min

The Lightning Network

Lightning uses payment channels to move many small Bitcoin payments off-chain while preserving on-chain settlement rights.

Why this matters

Lightning is Bitcoin's major layer-2 scaling system for fast and low-fee payments.

1

The Intuition

Two users lock funds into a channel, update balances privately, and settle on-chain later. Multihop routing allows users without a direct channel to pay through intermediaries.

2

See it concretely

Concrete example

Instead of recording every coffee purchase in court, you open a tab and settle the final balance later.

3

Tempting — but wrong

4

The precise version

A Lightning channel is funded by an on-chain output. Participants exchange signed commitment transactions that represent the current balance. Revocation mechanisms punish attempts to publish old states. HTLCs use hashlocks and timelocks to support conditional routed payments. Channel liquidity is directional, so routing depends on available balances along the path.

payment succeeds \iff hash(preimage)=H \land timelocks\ remain\ safe

Check your understanding

Why does Lightning use revocation?

Click to reveal answer

Why does liquidity direction matter?

Click to reveal answer

Before moving on
  • Explain channel opening and closing.
  • Explain commitment transactions.
  • Explain HTLCs.
  • Describe liquidity and routing constraints.
?Checkpoint

What is Lightning's main scaling idea?