Skip to main content
Loading…
AS Albert Schaper
  • 01Home
    • Profile & Career
    • Expertise
    • Overview
    • Results
    • Technical Depth
  • 04Projects
  • 05Contact
  • 06Insights
  • 07Tools
AS

Albert Schaper

01Home
Profile & CareerExpertise
OverviewResultsTechnical Depth
04Projects05Contact06Insights07Tools

AI · Finance · Entrepreneur

Home/Knowledge Atlas/Chapter 5: Lightning
Knowledge Atlas · Chapter 5/10

Lightning: Bitcoin's Fast Layer

Payment channels, HTLCs, routing, security and economics: how Lightning settles payments in milliseconds — and which assumptions (online presence, honest miners, liquidity) carry the trust.

By Albert Schaper AI Expert & Entrepreneur
15 October 2026 Updated 29 October 2026 CryptoLightning
Auf Deutsch lesen LinkedIn X
Contents
  • The idea in one paragraph
  • How a channel works
  • HTLCs and multi-hop payments
  • Routing: the liquidity puzzle
  • Security: assumptions and attacks
  • Economics: fees and channel management
  • Practice and limits
  • Sources

Bitcoin targets a block interval of about ten minutes; the wait for a particular transaction also depends on fees and demand. Lightning moves payments into bilateral payment channels. After an on-chain funding transaction, peers update their balances off-chain. Opening, closing and disputes require on-chain transactions; ordinary channel payments do not.

The price: new assumptions. Lightning users should understand what a channel guarantees — and what it does not. This chapter explains mechanics, routing, security research and economics, each with sources to verify.

The idea in one paragraph

Alice and Bob open a channel, for example with 0.01 BTC funded by Alice. Funding can come from one or both peers, depending on the opening protocol. They exchange signed commitment transactions for each balance update and revoke earlier states. Many payments can use the same locked capital; available liquidity limits the amount and direction. A simple cooperative lifecycle uses one funding transaction and one closing transaction; disputes and other operations can require more.

How a channel works

Three building blocks carry every channel:

  • Funding: The opening transaction locks funds in a jointly controlled output. The peers agree how many confirmations are needed before normal use; zero-confirmation channels add trust assumptions.
  • Commitment: Each new balance is recorded in a pair of transactions, one for each peer. A revoked state may still be accepted on-chain; revocation makes its publication punishable, rather than automatically invalid under Bitcoin consensus.
  • Revocation and penalty: Updating the state exchanges revocation secrets for the previous commitments. If a peer publishes a revoked state, the other side can claim the outputs accessible through the penalty mechanism within the relevant deadline. That requires monitoring, timely response and on-chain fees.

Reserves can help give both peers something to lose. Timelocks serve different purposes: in unilateral closures they provide time to respond to revoked states, while HTLCs set payment deadlines. Cooperative closing does not have the same delay. Details depend on channel type; the BOLTs specification defines the protocol rules.

HTLCs and multi-hop payments

Direct channels to every recipient would be impractical. Hash Time-Locked Contracts (HTLCs) link payments across several channels: claiming funds requires revealing a secret before a deadline. The recipient initially provides only its hash. Successful settlement reveals the secret along the route; otherwise timeouts permit recovery. This requires correct implementations and timely on-chain action when needed. Forwarders can delay payments or tie up liquidity.

HTLCs aim to link settlement across hops under these assumptions. Multi-part payments split an amount across routes; atomic multi-part schemes coordinate the parts through a shared payment secret. Fees, timeouts and temporarily locked liquidity still need to be considered.

Routing: the liquidity puzzle

The hardest technical nut is not cryptography but information: senders only know public channel capacities, not the current balances per direction. A route with enough capacity can still fail because the money sits on the wrong side. Research answers in three directions:

  • Flow optimization: Pickhardt–Richter approaches model routing as a flow and cost problem. Results depend on assumptions about liquidity, topology and the evaluated workload; they do not establish a universal best success rate.
  • Local steering: Schemes like SpeedyMurmurs and the newer “Ticket to Ride” (AFT 2025) let intermediaries co-decide locally without maintaining global landmark trees — same privacy, lower latency.
  • Trampoline payments: Light wallets delegate route-finding to well-connected hubs, trading trust and privacy for convenience.

For practical use, test reachability and liquidity in both directions. Multi-part payments can help with larger amounts but do not guarantee success. Direct channels to recurring recipients may be useful if their funding and management costs are justified.

Security: assumptions and attacks

Lightning security depends on implementation, monitoring, timelocks and on-chain settlement. Research examines individual parts of this model:

  • Monitoring: A node or watchtower must detect a revoked commitment and react within the relevant timelock. In LND's documented design, watchtowers receive encrypted protection data and cannot freely read channel balances. They do not take custody of the funds. Privacy and coverage depend on the implementation.
  • Honest miners and timelock bribery: A cheater can bribe miners to censor the honest contest transaction (“timelock bribery”). Aumayr (2024) shows: against rational channel parties, even a small remaining balance protects (bidding-war logic, Nash equilibrium); against Byzantine attackers, new constructions like CRAB are needed that harness miner incentives for the channel.
  • Formal analysis: Machine-checked models, including Why3 and TLA+/UC approaches, examine specified security properties under explicit assumptions. Such results apply to the modeled protocol and assumptions, not automatically to every wallet or deployment.

In short: Lightning protects honest, reasonably regularly online users strongly; anyone offline for months or playing against state-level censors needs extra measures.

Economics: fees and channel management

Routing nodes charge base and proportional fees. Channel management also incurs funding, rebalancing and locked-capital costs. Whether a channel is worthwhile depends on payment volume, fee conditions and management effort. For wallet or liquidity services, check separately who controls the keys, which operations the service performs and what it charges. Convenience alone does not establish whether custody is involved.

Practice and limits

What Lightning does well: micropayments, tips, streaming money, fast merchant payments under the protocol’s security assumptions. Where it hits limits: receiving without liquidity (“inbound capacity” must be created first), large one-off amounts, offline receiving, and backup complexity (securing channel states is harder than storing seed phrases). On-chain actions around channels (open, close, contest) verify like any Bitcoin address: with the address validator. Terms to look up live in the Web3 glossary; EU provider rules in the MiCA overview.

Sources

  • Lightning Engineering: Watchtowers
  • BOLTs — Basis of Lightning Technology (specification): github.com/lightning/bolts
  • Aumayr (2024): Lightning channels vs. rational miners (CRAB/Sleepy CRAB): TU Wien repository (PDF)
  • Formal verification with Why3 (2025): arxiv.org/html/2503.07200
  • Ticket to Ride — local source routing (AFT 2025): LIPIcs AFT 2025 (PDF)
  • Kang/Woo/Hong (2025): Comprehensive Survey of Lightning Technology: Int. J. of Network Management
  • Liao et al. (2025): Programming on Bitcoin (Layer-1/2 survey): Blockchain: Research and Applications

Continue in the atlas: Chapter 4: Transactions · back to the overview — or straight on to Chapter 6: Taproot & Ordinals. Also: Bitcoin & Web3 Basics and the reading-list atlas. More numbers and formats: cheat sheet.

Previous chapter Chapter 4 Transactions: UTXO, Fees, Addresses Next chapter Chapter 6 Taproot & Ordinals: Bitcoin's Upgrade
More Insights
  • Crypto

    Bitcoin & Web3 Basics: The Beginner's Learning Path

    Nine articles, one learning path: how wallets come to exist, how transactions actually work, and what matters for your own security — with progress tracker and tools.

  • Crypto

    Learning Bitcoin and Web3: The Large Reading-List Atlas

    Learning paths for three levels, timeline and annotated tables on founding texts, technology, money, Ethereum, DeFi, NFTs, DAOs, privacy, regulation and research.

  • Crypto

    UTXO vs. Account Model

    UTXO and account model explained: recompute Bitcoin change, understand fees in sat/vB, and tell Ethereum apart from Solana.

Albert Schaper
About the author

AI expert and entrepreneur with a finance background and a focus on execution. I support companies as a partner and partly with own capital, mainly on strategy, financing and sales, and advise teams on putting AI to work. LinkedIn

← Atlas overview
AS

AI · Finance · Entrepreneur

Navigation

HomeAboutExpertiseProjectsContactInsightsTools

Projects

Best-AI.orgBitAutorGeld 2.0Pharmaceutical company

Tools

ETH Unit ConverterAddress ValidatorQR Code GeneratorSeed Phrase ValidatorWallet Generator

© Albert Schaper. All rights reserved.

Privacy / Imprint