Research·Privacy

What Lightning Reveals

Lightning payments do not appear on the chain, which is a real privacy gain and a smaller one than it sounds. The network map is public, every announced channel names the on-chain output that funded it, balances can be probed by anyone, and the wallet most people use can see everything.

Level
Advanced
Reading
7 min
Published
2026-11-19
Reviewed
2026-11-29

Lightning is frequently described as private because its payments are not recorded on the chain. That is true and it is one property among several, some of which point the other way. The useful question is what each participant in a payment can see, and what anyone watching from outside can work out.

What is public by design?

The map, which is more than people expect.

Nodes announce themselves and their channels so that senders can find routes. An announcement carries the node’s identity key, its network address if it has one, the channel’s capacity, and an identifier that references the exact on-chain output funding it — the block, the position in the block, and the output index.

That last part matters. An announced channel is permanently linked to a specific unspent output, which is linked to whatever paid for it, which is subject to every heuristic that applies to ordinary chain analysis. Opening a channel from an exchange withdrawal labels the node.

What is not announced is how the capacity is split, because the split changes with every payment and broadcasting it would be both impractical and far worse for privacy.

What does each hop learn?

Only its neighbours, which is the part that works well.

A payment is wrapped in layers of encryption, each removable by one hop. A routing node learns who it received from, who to forward to, the amount it was asked to forward and the timeout — and not the origin, the destination, or its own position in the route. A hop cannot tell whether the node before it is the sender or another forwarder.

The exceptions are the ends. Your first hop knows you originated the payment, because you connected to it. The final hop knows it is final, because there is nowhere further to send. Neither learns the other.

This is a genuinely strong construction, and it is why the privacy criticisms below are about everything except the routing.

Can balances be discovered?

Yes, cheaply, by anyone, and this is the weakness least often mentioned.

Send a payment along a route with a payment hash nobody knows the preimage of. It will travel as far as the liquidity allows and then fail, and the error returned says which hop could not forward. Repeat with varying amounts and you binary-search the balance of a specific channel without ever paying anything.

The information this yields compounds. Knowing the balance split of channels around a node reveals its activity: comparing snapshots over time shows payments flowing, in which direction, and roughly how large. For a merchant node, that is a revenue estimate derived without their cooperation.

Defences exist and are partial — adding randomness to forwarding decisions, rate-limiting failures, holding channels unannounced — and none of them removes the underlying fact that a routing node must tell a sender why a payment failed.

What does the invoice give away?

The recipient, in the ordinary case.

A standard invoice names the destination node and includes a payment hash. Anyone handed the invoice knows who is being paid, which is fine for a one-to-one payment and poor for anything published — a donation address on a web page tells every visitor which node receives it, and that node is linked to its on-chain channels.

Routing hints, which help a sender reach a node with private channels, make this worse by naming those channels.

Offers are the answer being built: a reusable payment code from which each payer derives a fresh invoice, with the route to the recipient blinded so the sender learns a path without learning its endpoint. It is specified and implemented in several nodes, and adoption is partway rather than complete.

What can the sender and receiver work out about each other?

More than the routing suggests, because the payment itself carries correlatable features.

The amount travels the route, decremented slightly at each hop by fees. Anyone observing two points on a path can match a forwarded payment to an outgoing one by amount and timing with reasonable confidence, and an adversary running several well-connected routing nodes observes many points. That is the standard attack on any onion-routed network and Lightning inherits it.

Timing compounds it. A payment settles when the preimage propagates back, and the delay between a hop forwarding and being paid is a measurement of how far the payment still had to travel. A node that is one hop from the destination learns something different from one that is five.

Splitting a payment across several routes helps, by removing the single distinctive amount, and complicates it, because the parts have to be correlated and the correlation is sometimes easy.

The practical summary is that a single payment between strangers through a few hops is well protected, and a stream of payments between the same pair through a network containing a motivated observer is much less so.

Is the on-chain footprint recognisable?

It was, and Taproot changed that more than anything else did.

A channel funding output is a two-of-two arrangement, and a cooperative close spends it to two outputs. Before Taproot those were visible as what they were: a multisignature script, publicly identifiable, which made the entire set of channel opens and closes easy to enumerate on the chain.

A Taproot channel spends by the key path, with the two parties producing one combined signature. On chain it is a single key and a single signature — indistinguishable from an ordinary payment. The anonymity set for a channel open is now every Taproot spend rather than every multisignature spend, which is an enormous improvement and one almost nobody cites when discussing what Taproot was for.

A force close still looks like what it is, because the timelocks and penalty paths have to be published. Privacy degrades precisely when things go wrong, which is the usual shape.

What about the wallet most people use?

It sees everything, and this is the largest practical issue by a wide margin.

The great majority of Lightning users are on custodial wallets, because running a node, managing channels and maintaining liquidity is work most people will not do. A custodial provider knows every payment: who sent, who received, how much, and when. It is a payment processor with a Lightning back end.

None of the properties above applies to that user. Onion routing protects the route between nodes; it does not protect you from the node that is yours. The honest statement is that Lightning’s privacy is a property of self-custodied Lightning, and that the population using it that way is small.

What should you actually do?

Four things, in descending order of how much they help.

Run your own node, or accept that you have not solved the problem. Everything else on this list is irrelevant to a custodial user.

Keep channels unannounced where you can. An unannounced channel does not appear in the public map, cannot be probed directly, and still forwards your own payments. You lose the ability to route for others, which most people were never doing.

Fund channels from coins with no identity attached. The funding output is permanently linked to the channel, so the question “where did these coins come from” is answered once and forever at the moment you open.

Prefer Taproot channels and offers where your software supports them. Both are improvements you get for free, and both depend on adoption you cannot influence alone.

What is not worth doing is treating Lightning as a privacy tool in itself. It is a payment system with reasonable privacy between nodes and poor privacy against anyone who is one of your nodes.

Check it yourself

The public half is public, which is the point worth demonstrating.

# A channel announcement references an on-chain output. Decode the funding
# transaction and the arrangement is readable.
bitcoin-cli getrawtransaction <funding_txid> true

# A pre-Taproot channel close is identifiable by its script type;
# a Taproot one is not.
bitcoin-cli getrawtransaction <closing_txid> true | grep -A3 scriptPubKey

Take any public node’s channel list from a network explorer, resolve one to its funding transaction, and trace where those coins came from. If the answer is an exchange, you have just deanonymised a node using nothing but public data and ten minutes.

What remains uncertain

How much probing happens. The technique is cheap, undetectable from outside, and nobody publishes what they learn. Estimates of its prevalence are guesses.

Whether offers adoption completes. They fix the invoice problem properly, implementation is underway across nodes, and network effects of this kind either tip or stall.

What share of the network is custodial. Usage statistics cannot distinguish a self-run node from a custodial wallet’s users, so every claim about Lightning privacy in practice is a claim about an unmeasured mixture.

How much Taproot channel adoption there is. The improvement depends on the channels actually being Taproot, and the fraction is not well reported — which means the anonymity set it provides is currently unknown to the people relying on it.

Sources

Nearby