Debunking the Myth: The Lightning Network is Not Irreparably Flawed
A recent claim that the Lightning Network is irreparably broken in a post-quantum world has been making headlines in the crypto space. This assertion, made by respected Bitcoin developer Udi Wertheimer, has caused concern among businesses that have invested in building payment infrastructure on the Lightning Network. However, a more nuanced assessment is necessary. While it is true that quantum computers pose a potential long-term threat to the cryptographic systems underpinning Bitcoin and the Lightning Network, the notion that the network is helpless against this threat is misleading. The Bitcoin development community is actively working on addressing this challenge, and a more accurate framing of the issue is needed. The threat posed by quantum computers is more specific and conditional than initially suggested. For instance, the channels themselves are protected by a hash while they are open, and the raw public keys are hidden on-chain for as long as the channel remains open. The realistic attack window is narrower, typically occurring during a force-close when a commitment transaction is broadcast on-chain. At this point, the locking script becomes publicly visible, including the local_delayedpubkey, and an attacker could potentially extract the public key and attempt to spend the output before the timelock expires. Nevertheless, this is a timed race against an attacker who must actively solve a complex mathematical problem within a fixed window for each individual output they want to steal. It is essential to note that cryptographically relevant quantum computers do not currently exist, and the gap between the current state of quantum technology and what would be required to break Bitcoin's elliptic curve cryptography is substantial. The largest number ever factored using Shor's algorithm on actual quantum hardware is 21, which is significantly smaller than the 78-digit number required to break Bitcoin. The development community is not idle, and several post-quantum proposals have been put forth, including SHRINCS, SHRIMPS, BIP-360, and proposals for OP_SPHINCS, OP_XMSS, and STARK-based opcodes in tapscript. The correct perspective is not that the Lightning Network is broken and unfixable but rather that it, like the entirety of Bitcoin and most of the internet's cryptographic infrastructure, requires a base-layer upgrade to become quantum-resistant. This work is ongoing, and businesses building on the Lightning Network today should be asking whether the teams behind the infrastructure are aware of the potential threat and planning accordingly. The answer, based on the current research and development in the Bitcoin community, is affirmative. The Lightning Network is not irreparably flawed; it faces the same long-term cryptographic challenge as the entire digital financial system, and its development community is actively working to address it.