• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Guides
    Lightning Network node diagram showing payment channels connecting nodes across the Bitcoin network

    Bitcoin's base layer is deliberately slow: blocks are produced roughly every ten minutes, transactions confirm slowly under congestion, and fees can spike unpredictably. The Lightning Network (LN) is the most widely adopted scaling layer built on top of it, a second-layer peer-to-peer system that lets users send Bitcoin instantly, for fractions of a cent, by moving funds off-chain and only settling on the blockchain when necessary. Launched in 2018 after years of development led by Joseph Poon and Thaddeus Dryja, Lightning now processes hundreds of thousands of payments per day across tens of thousands of nodes and public channels.

    This guide explains how Lightning actually works, payment channels, Hashed Timelock Contracts (HTLCs), routing and gossip, the privacy model, the important limitations, and who benefits from it in practice, including darknet market operators who need fast, low-fee, low-footprint transactions.

    What the Lightning Network Actually Is

    Lightning is not a separate blockchain, a token, or a fork. It is a network of bilateral payment channels whose openings and closings are recorded as ordinary Bitcoin transactions on the base layer. Funds locked in channels can move between channel participants instantly and off-chain; the blockchain only records the final balance of each channel when it closes.

    The core idea is simple: instead of broadcasting every small payment to the entire Bitcoin network and paying a miner to confirm it, two parties open a shared funding output, then exchange cryptographically signed balance updates that only they (and optionally their closing counterparty) can settle. If Alice and Bob both deposit funds into a channel, they can pay each other back and forth thousands of times without touching the mempool. When they are done, a single closing transaction distributes the remaining balances on-chain.

    Because most people do not have a direct channel with everyone they want to pay, Lightning chains channels together: a payment can hop through several intermediate nodes, each forwarding funds along a pre-constructed route. This multi-hop routing is what turns thousands of individual channels into a network that can reach nearly any participant, the same way packet routing lets the internet reach any host.

    Payment Channels: The Foundation

    A Lightning payment channel is a 2-of-2 multisignature Bitcoin output funded by a single on-chain transaction. Both parties hold keys and must co-sign every state update. At any moment, the channel has a valid "commitment transaction" that reflects the current balance split; each time a payment occurs, the parties exchange new signed states and revoke the old ones using revocation keys.

    There are two flavors:

    • Public channels announce their existence, capacity, and fees to the gossip network. They are the backbone that lets strangers route payments to each other.
    • Private (unannounced) channels are not gossiped. They work for direct payments between the two parties and can later be made public, but they do not help route third-party traffic.

    Opening a channel requires an on-chain transaction and therefore a normal miner fee plus the locked capital itself, this is a major practical limitation. Channel capacity is fixed at open time (though it can be increased by mutual agreement), so a channel that sees heavy one-directional flow can run out of liquidity in one direction even while holding plenty of Bitcoin overall.

    HTLCs and How a Multi-Hop Payment Works

    The mechanism that makes trustless multi-hop routing possible is the Hashed Timelock Contract (HTLC). When a recipient generates an invoice, they also produce a random secret, the preimage, and share only its hash. A payment routed through three intermediate nodes works like this:

    1. The sender constructs an onion-routed packet that wraps the payment instructions in layers of encryption, one per hop. Each intermediate node can only peel its own layer and learn the identity of the next hop, not the sender, the final recipient, the total route length, or the payment amount visible to other hops.
    2. At each hop, an HTLC is created: the forwarding node locks funds that can be claimed by revealing the preimage, or reclaimed by the sender after a timeout. Because every hop's HTLC references the same hash, the secret can only be revealed all the way back along the route in reverse order.
    3. The recipient, holding the preimage, claims the final HTLC and reveals the secret. Each preceding hop uses that revealed secret to claim its own inbound HTLC and simultaneously settle its outbound one, atomically, hop by hop, in milliseconds.
    4. If any hop fails or goes offline, the preimage is never revealed, the HTLCs simply expire after their time locks, and the sender's funds return intact. Payments are all-or-nothing: there is no partial delivery and no counterparty risk at any hop.

    Because intermediaries cannot steal funds, they can only forward them or let the HTLC expire, Lightning nodes can be operated by strangers with no reputation system or legal recourse. This is the property that makes the network genuinely decentralized rather than a trusted payment processor.

    Routing, the Gossip Network, and Finding a Path

    To send a payment, a node must discover a viable route. Lightning nodes exchange information about themselves and their channels through a peer-to-peer gossip protocol: channel announcements, node announcements, and fee policies propagate across the network so that every well-connected node can build a graph of the public network.

    Route finding is a shortest-path problem on this graph, complicated by three factors that do not exist in ordinary packet routing:

    • Fees. Each channel charges a base fee plus a proportional fee (typically expressed in millisatoshis per million satoshis routed). Routing nodes compete on price and reliability.
    • Timelocks. Each hop imposes a required timeout window for its HTLC; routes must satisfy these constraints in sequence.
    • Liquidity. A channel may advertise 1 BTC of capacity, but the balance may sit almost entirely on the wrong side to carry a payment in the needed direction. Balance distribution is deliberately not gossiped, a privacy measure, which means nodes must learn it empirically through successful and failed payments.

    In practice, senders compute several candidate routes and try them successively; implementations like LND use modified Dijkstra pathfinding plus a "Mission Control" subsystem that remembers which channels and nodes have historically succeeded or failed for similar payments. A payment that fails mid-route does not lose money, it simply returns, and the sender retries a different path.

    For a deeper technical treatment of HTLC mechanics and channel commitment transactions, see our companion piece on the Lightning Network HTLC internals.

    Privacy on Lightning: What It Protects and What It Leaks

    Lightning's privacy properties are frequently overstated, so it is worth being precise about what is and is not hidden.

    What Lightning protects:

    • Intermediate hops see only their predecessor and successor, thanks to Sphinx-style onion routing with per-hop ECDH shared secrets. They cannot reconstruct the full route.
    • Channel balances are not announced to the network. An outside observer cannot watch balances shift to infer who paid whom the way they can on-chain.
    • Payment amounts and timing are not recorded on the blockchain at all, off-chain updates leave no public trace.
    • Node identities can be pseudonymous; a well-connected node need not reveal an IP address or legal identity to intermediate peers.

    What Lightning does not fully protect:

    • The sender and receiver can see each other. The origin node builds the route and knows the destination's node ID; the recipient knows who paid them (or at least which node routed the payment to them). Lightning privacy protects against middle observers, not end-to-end unlinkability.
    • Your own node is a surveillance point. Your Lightning wallet software sees every payment you send or receive. A compromised or malicious wallet defeats all protocol-level privacy.
    • Channel openers and closers are on-chain. The funding and closing transactions are public, and a channel's endpoints are typically linked to on-chain activity. Chain analysts correlate these with other Bitcoin transactions you have made.
    • Traffic analysis remains possible. An attacker who can observe network traffic timing, for example, a global passive adversary or an ISP-level observer, can sometimes correlate payments across hops despite onion encryption.
    • Payment metadata leaks through invoices. Lightning invoices (BOLT11) can embed descriptions, amounts, expiry times, and routing hints that reveal context.

    For darknet users, the practical takeaway is that Lightning offers better transaction-level privacy than raw on-chain Bitcoin for payments between parties who already know each other, but it is not anonymous communication, and it does not hide the fact that a payment occurred from parties with network visibility. Compare it with techniques like CoinJoin mixing, which targets a different threat (breaking on-chain input-output links) and see our analysis of how blockchain analysis actually traces Bitcoin.

    Use Cases: Who Actually Uses Lightning

    Everyday micropayments. The headline use case: buying coffee, tipping content creators, or paying a $0.50 invoice without a $3 on-chain fee. Strike, Cash App, and Wallet of Satoshi popularized Lightning for mainstream retail payments in markets with volatile local currencies.

    Cross-border remittances. Sending small amounts internationally is where Lightning shines, settlement in seconds, fees of a few cents, no correspondent banking. Several fintechs and remittance corridors use it as settlement infrastructure.

    Streaming money. LNURL-based services let users stream satoshis per-second to content creators, effectively pay-as-you-watch monetization with instant settlement.

    Darknet markets and illicit commerce. This is the segment most relevant to this site's audience. Lightning offers market operators three concrete advantages: near-zero transaction fees (critical for markets processing thousands of small orders), instant settlement (no waiting for mempool confirmation or paying priority fees during congestion), and reduced on-chain footprint (channel funding transactions are one-time events rather than per-order traces). Several major markets historically accepted Lightning for deposits and payouts. The same cautions apply, though: Lightning does not make a payment anonymous, channel counterparties see timing, and exchange or hosted Lightning wallets reintroduce a trusted third party. Markets also vary, some accept only on-chain Bitcoin precisely because channel liquidity makes deposits harder to custody at scale. Anyone evaluating payment options should weigh Lightning against Monero and other privacy coins; see our Bitcoin vs Monero privacy comparison and the darknet payment methods breakdown.

    Bitcoin treasury and exchange settlement. Exchanges use Lightning for fast customer withdrawals and internal settlement, since moving coins between Lightning nodes is far cheaper than on-chain transfers.

    Limitations and Real-World Friction

    Lightning is powerful but not magic. Its main constraints:

    • Liquidity gridlock. Lightning is a network of finite channel balances. If most channels have funds pointing one direction, payments the other way fail. Circular rebalance transactions, submarine swaps, and dedicated liquidity providers (like Lightning Pool historically, and swap services today) exist specifically to fix this, a sign of how persistent the problem is.
    • On-chain costs to enter and exit. Opening and force-closing channels costs miner fees. During fee spikes, getting money on or off Lightning can cost more than the payment you wanted to make.
    • Channel management burden. Channels must be monitored; if a counterparty disappears, you may need a cooperative or force close, and during the timelock dispute window you must stay online to broadcast justice transactions or risk losing funds. Watchtowers and always-online nodes mitigate this.
    • Inbound liquidity. A merchant needs inbound channel capacity to receive payments. Requesting inbound liquidity, or accepting channels opened by customers, is a solved-but-annoying operational problem.
    • Custodial wallets undermine the model. Most consumer Lightning wallets are custodial (the service runs the node and holds keys). They deliver the speed and low fees but concentrate trust and create honeypot risk, the same trade-off as any custodial exchange. Self-custody Lightning nodes (LND, Core Lightning, Eclair) require technical skill and uptime.
    • Not fully decentralized in practice. A relatively small number of well-connected hubs route a disproportionate share of payments. Lightning's topology has trended toward hub-and-spoke rather than the mesh originally envisioned, though this is a routing-efficiency outcome rather than a protocol requirement.

    Implementation: Nodes, Software, and the Protocol Stack

    Three major implementations dominate: LND (Lightning Labs, Go), Core Lightning (Blockstream, C, formerly c-lightning, plugin-architecture focused), and Eclair (ACINQ, Scala, popular in mobile wallets). All implement the same BOLT specifications, the Lightning Network's RFC-equivalent protocol suite covering peer protocol, routing/gossip, invoice format (BOLT11), and onion routing, so channels and payments are interoperable across implementations.

    Key operational pieces:

    • Channels are negotiated via the peer protocol and anchored on-chain as 2-of-2 multisig funding transactions (taproot channels, now widely deployed, reduce on-chain footprint further).
    • Invoices (BOLT11 "lightning:" URIs) encode amount, payment hash, expiry, description, and hints for reaching nodes not in the public graph.
    • Keysend allows spontaneous payments without an invoice round-trip; AMP/MPP (multi-path payments) split a payment across multiple routes for larger amounts.
    • Watchtowers and static channel backups protect against data loss and unresponsive counterparties.

    Running a public routing node is a capital-and-operations business: you lock liquidity in channels, set fee policies, maintain uptime, and compete on reliability. Well-run routing nodes earn modest fee revenue; poorly managed ones lose funds to force-close penalties or simply sit idle.

    Legal and Safety Considerations

    Lightning inherits Bitcoin's regulatory posture: it is a payment rail, not a legal shield. Relevant cautions:

    • No anonymity guarantee. As covered above, Lightning hides transactions from the public ledger but not from your wallet provider, your channel counterparties, or network observers. Users who need strong anonymity should layer additional protections (Tor for node connectivity, coinjoins for on-chain history, privacy coins for settlement) rather than assume Lightning alone suffices.
    • Custodial risk. Funds in a custodial Lightning wallet are an IOU on the provider. Provider insolvency, hack, or seizure can freeze or lose them, identical to exchange custody risk.
    • Regulatory classification. Lightning payments are still Bitcoin transfers; KYC/AML obligations for businesses accepting them are unchanged. Lightning's speed makes it attractive for sanctions evasion, which is precisely why it attracts enforcement attention, several jurisdictions have scrutinized Lightning-enabled services.
    • Scam surface. Fake Lightning invoices, address-swapping at the QR layer, and social-engineering of channel opens are documented attack vectors. Verify payment details out-of-band and test small amounts first.

    If you are evaluating Lightning for darknet market payments, treat it as a settlement-speed and fee tool first and a privacy tool second, and never rely on it as your only anonymity layer.

    Bottom Line

    The Lightning Network delivers on its core promise: Bitcoin payments that settle in under a second for fractions of a cent, secured by Bitcoin's own consensus via HTLCs rather than trust in intermediaries. Its limitations, liquidity constraints, on-chain entry/exit costs, channel management, and incomplete privacy, are real but increasingly well-engineered around. For micropayments, remittances, and low-fee commerce including darknet markets, it has moved from experiment to infrastructure. For privacy-maximal users, it is one layer among several, not a complete solution.

    For related reading: the earlier Lightning overview covers the basics; the CoinJoin technical deep-dive, the blockchain analysis guide, and the Bitcoin vs Monero privacy comparison round out the privacy picture. Darknet users should also review our market security and OPSEC guide before choosing payment rails.

    Author OnionInfoDesk
    Lightning Network Deep-Dive: Payment Channels and HTLCs
    How Blockchain Analysis Traces Bitcoin Transactions
    Bitcoin vs Monero: Which Cryptocurrency Is More Private?
    Darknet Market Security: Complete OPSEC Guide

    Comments 0

    Add comment