NSA Warns of Theoretical Quantum Threat to Bitcoin Security

iconCoinDesk
Share
AI summary iconSummary
The National Security Agency (NSA) has raised concerns about blockchain security, issuing a warning with federal cyber agencies about AI-enhanced quantum threats to cryptographic systems. The alert highlights how a powerful quantum computer could, in theory, crack a private key from an exposed public key—putting certain BTC holdings at risk. Around 7 million BTC have public keys on-chain, including 1 million BTC from early addresses. A Google study estimated a quantum machine might recover a private key in nine minutes, though the NSA stressed no immediate threat exists.

An attacker could theoretically use a sufficiently powerful quantum computer to derive a Bitcoin private key from an exposed public key and spend the associated coins. No publicly demonstrated computer has achieved that capability. Such an attack would require neither the owner's password nor access to the owner's wallet.

The National Security Agency issued a joint warning Wednesday with the Cybersecurity and Infrastructure Security Agency and the White House's Office of the National Cyber Director. The agencies disclosed AI-assisted discoveries affecting cryptography currently in use. The government did not identify the affected algorithms or explain the methods. The joint statement characterized the findings as presenting no immediate threat on a widespread scale. The NSA has not said whether the discoveries affect secp256k1, the mathematical curve underlying Bitcoin signatures.

Bitcoin's ledger allows anyone to inspect balances, while a pair of digital keys controls spending. A wallet signs payments with a secret private key. Other network participants use the public key to verify signatures without discovering that secret. The protection depends on the current practical impossibility of deriving the private key from the public key. An attacker who overcame that barrier could authorize payments without obtaining passwords or deceiving an owner into clicking a link.

Bitcoin uses secp256k1, a form of elliptic-curve cryptography. Bitcoin's original ECDSA signature scheme depends on the difficulty of deriving private keys from public keys. The Schnorr signatures introduced through the 2021 Taproot upgrade depend on the same difficulty. The Bitcoin specification shows that SHA-256, the hashing function miners use in block production, does not protect these signatures.

The pay-to-public-key format, or P2PK, placed public keys directly on the blockchain in many early Bitcoin payments. Taproot addresses expose public keys as soon as those addresses receive coins. Addresses beginning with 1 or bc1q generally conceal public keys until an owner spends coins. Reusing those addresses after a payment leaves any remaining bitcoin protected by a key that is already public. Some Bitcoin public keys have remained exposed for over a decade, and the owners who would need to relocate the coins may have lost access to wallets long ago.

CoinDesk estimated in April that nearly 7 million bitcoin had exposed public keys, representing about a third of all bitcoin mined by then. That estimate included around 1 million BTC belonging to Satoshi Nakamoto, Bitcoin's pseudonymous creator, whose coins have remained unmoved since the network's early period. A separate count on November 29 found nearly 2 million BTC with public keys exposed through address design alone, excluding address reuse. The coins counted remain in place, and nobody has demonstrated that the NSA's unspecified discoveries make those coins vulnerable.

A sufficiently large quantum computer could eventually derive private keys through Shor's algorithm. Quantum computers apply quantum physics to perform some calculations much faster than conventional computers. A Google-led research paper published earlier this year estimated a Bitcoin private-key recovery time of about nine minutes under particular hardware assumptions. The proposed attack involves advance calculations followed by a wait for a broadcast transaction to expose a public key. The attacker would then derive the private key and broadcast a competing transaction.

Bitcoin produces blocks at intervals of roughly 10 minutes, limiting the attacker's time to beat the original payment. The researchers estimated a success probability of just under 41% under idealized conditions, using a machine that has not been built. Already exposed public keys would let an attacker attempt recovery without racing a newly broadcast transaction. An attacker could continue calculations while the associated coins remained unmoved. A mathematical breakthrough that enabled conventional computers to derive private keys would eliminate the need to wait for quantum hardware.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.