PQLN: Post-Quantum Security for the Bitcoin Lightning Network's Off-Chain Surfaces
Adds ML-DSA and ML-KEM alongside secp256k1 to Lightning's off-chain surfaces (gossip, transport, invoices, offers, onions) with no Bitcoin consensus change, and implements it in rust-lightning.
Schemes: ML-DSA-44, ML-KEM-768, FN-DSA, Falcon, ECDSA, Schnorr, Noise_XK, BOLT 8, BOLT 11, BOLT 12, BIP 360, BIP 32, SLH-DSA, Sphinx
Findings (quotes checked against the source text)
-
Lightning's gossip is turned into a post-quantum key distribution channel: nodes publish ML-DSA and ML-KEM keys in node_announcement and peers pin them on first sight (trust-on-first-use).
PQLN therefore turns LN’s gossip into a key distribution
-
Lightning's off-chain surfaces can adopt post-quantum cryptography through a software update alone, without waiting for a Bitcoin consensus upgrade.
Lightning can therefore move to post-quantum cryptography
-
Transport handshake is hybrid: session keys end up derived from five shared secrets, and PQ gossip relay budget was raised so PQ announcements propagate.
so the session keys become hybrid over five shared secrets.
Numbers (as extracted, not quote-checked)
- ML-DSA-44 public key size: 1312 bytes
- ML-DSA-44 signature size: 2420 bytes
- ML-KEM-768 encapsulation key / ciphertext size: 1184 bytes / 1088 bytes
- BOLT 11 tagged field maximum length: 639 bytes
- Added crypto operation time (max): 0.33 ms
- Gossip data growth vs vanilla node: about tenfold with ML-DSA; about fourfold with FN-DSA
- node_announcement PQ additions: 4928 B
For builders
Protect off-chain Lightning-style messaging with hybrid ML-DSA/ML-KEM now, using TOFU pinning via existing gossip and size-splitting for large PQ fields, since base-layer migration is a separate, slower consensus change.
Limits
Evaluated only on rust-lightning; trust-on-first-use assumes no quantum MITM at first contact; channel-level and some invoice/offer signatures stay classical; TLV types are experimental; middle of paper text was omitted in the input, so some details are unverified.
Topics: bitcoin-migration other-chain-migration threat-model sig-lattice kem hybrid-schemes benchmarks wallets-keys chain-design