Lightning payments are routed with onion encryption based on the Sphinx construction, specified in BOLT 4. The onion packet's hop payloads are a fixed 1,300 bytes, and an intermediate node cannot learn which other nodes, besides its predecessor and successor, are on the route.
Sources and checks
T1BOLT 4, Onion Routing ProtocolBOLT, says this directly
The routing schema is based on the [Sphinx][sphinx] construction and is
Overview, read 2026-11-20
T1BOLT 4, Onion Routing ProtocolBOLT, says this directly
They cannot learn which other nodes, besides their predecessor or successor, are part of the packet's route
Overview, privacy properties, read 2026-11-20
T1BOLT 4, Onion Routing ProtocolBOLT, says this directly
It is 1300 bytes long and has the following structure:
Packet Structure, hop_payloads, read 2026-11-20
lightning/bolts at 191462825a contains this text in 04-onion-routing.md, and still does on the default branch.
Run it yourself
git clone https://github.com/lightning/bolts && git -C bolts show 191462825ae341f0a27098765c075f01ca9bc6c2:04-onion-routing.md | grep -nF 'It is 1300 bytes long and has the following structure:'Checked at block 976,759, 20 Nov 2026, 17:27 UTC: quotes 3/3, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 17:27 UTCblock 976,759
Published Revision 1, run 2026-11-20-seed-lightning