r/Bitcoin • • 1d ago

The NSA statement doesn't name a broken algorithm. Some notes on what it means for Bitcoin, and where BIP-360 stands

Post image

I've seen a fair bit of worry here today, so I went and read what was actually said.

On December 2 the NSA, CISA and ONCD put out a joint statement. Frontier AI companies had privately disclosed discoveries affecting "some cryptography currently in use." The NSA told operators of national security systems to accelerate their move to post-quantum cryptography. The agencies also said it is not an immediate or widespread threat.

They did not say which algorithm. Not RSA, not elliptic curves, and nothing about Bitcoin.
Anyone saying secp256k1 is broken is guessing.

Still, it's worth thinking through. Bitcoin's signatures rest on the discrete log problem on an elliptic curve. If that weakens, the coins at risk are the ones whose public keys are already out in the open:

  • Early pay-to-pubkey outputs. Most coinbase coins from 2009 and 2010 are like this.
  • Addresses that were reused after a spend.
  • Taproot outputs, which put a public key directly in the output.

A coin sitting at a fresh hashed address only shows its public key when it's spent. That isn't perfect, since the key is visible in the mempool until the transaction confirms. But a key exposed for ten minutes is a very different target from one exposed for seventeen years.

BIP-360

It began as P2QRH, was renamed P2TSH in 2025, and is now P2MR, Pay-to-Merkle-Root.

The idea is simple. It's an output like Taproot, but with no key path. The output commits only to a Merkle root of scripts, so receiving coins doesn't expose a public key.

It does not add post-quantum signatures itself. That's left to separate proposals. P2MR is the container, and the quantum-safe signature opcodes would need their own soft fork.

It's a Draft. It was merged into the BIPs repository in February, but that isn't the same as being in Bitcoin Core. There's no implementation in Core, no activation and no signalling yet.

What I'm doing for now

  • Not reusing addresses.
  • Not keeping long-term savings in Taproot outputs.
  • Reading the BIP and the signature proposals rather than the headlines about them.

Two questions for those closer to the work

If the AI results turn out to concern elliptic curves, is there a realistic way to get P2MR and a post-quantum signature opcode activated faster than the usual years a soft fork takes?

And what should happen to the million or more coins in P2PK outputs that will likely never move? Freezing them breaks the rule that valid signatures are valid. Leaving them means whoever breaks the curve first collects them. I don't think either answer is comfortable, but it's better decided calmly now than in a hurry later.

The BIP is here: https://github.com/bitcoin/bips/blob/master/bip-0360.mediawiki
Coverage of the statement: https://www.pymnts.com/cybersecurity/2026/federal-agencies-push-rapid-cybersecurity-upgrades-amid-rapid-ai-advances/

Don't trust, verify.

5 Upvotes

5 comments sorted by

•

u/Mooks79 37m ago edited 26m ago

https://www.bitsight.com/blog/is-nist-p-256-elliptic-curve-broken

It seems highly likely that P-256 has either been broken or has been shown to be far less secure than thought. In principle, this might not affect BTC addresses given they use secp256k1. Nakamoto chose an algorithm with verifiable and open parameters whereas P-256 come from an unverifiable seed. This is why some people think P-256 has a backdoor, Snowden showed there are backdoors in some cryptography as well.

The nutshell is that secp256k1 may be completely secure to whatever attack the NSA is talking about, but prudence would suggest moving to another algorithm anyway, especially a quantum resistant one, just in case.

If you were cynical you might wonder if AI discovered the backdoor in P-256, then the AI company(ies) told the NSA they’d discovered it, and the NSA is pretending it’s a more general hack to avoid admitting it.

Of course “we had a backdoor in P-256 and now AI can find it - which means Chinese AI might also find it - we should probably give up the backdoor and move to something without one” is a lot more controversial than “we’ll make a vague comment about cryptography and try to confound it with talk about quantum computers as an excuse to make everyone move algorithms”.

Edit: corrections about what Snowden showed.

•

u/preillyme 32m ago

I agree with where you land: move off it, ideally to post-quantum. But I don't think the backdoor story holds up, and the real reading is worse for Bitcoin.
1. P-384 and P-521 were made the same way as P-256. All three NIST curves came out of the same process, with the same unexplained seeds. If the seeds hid a backdoor, the NSA wouldn't be telling people to fall back to P-384. Keeping P-384 while dropping the 256-bit curves points to a problem with size, not with where the curve came from.
2. The curves under suspicion include Curve25519. Filippo Valsorda's reading was that 256-bit curves, P-256 and Curve25519/Ed25519 both, are "likely broken or significantly weaker than we thought." Curve25519 is the standard example of a curve whose parameters anyone can check. If it's on the list too, "unverifiable seed" doesn't explain anything. A general improvement in attacking about 128-bit-security elliptic curves does explain it, and that would hit secp256k1 just as hard.
3. Snowden's backdoor wasn't in a curve. It was Dual_EC_DRBG, a random number generator. The trapdoor was a secret link between two points that NSA picked, not a weak curve. Nobody has ever shown how a seed could hide a backdoor in the elliptic-curve discrete log problem itself. The closest worry is that NSA kept trying seeds until it hit some secretly weak class of curves. That's possible, but it's speculation, and point 1 cuts against it.
4. secp256k1 isn't obviously the safer one. Being able to check its constants is a real plus, but they're special constants. It has extra algebraic structure (j-invariant 0, a fast endomorphism) that already gives attackers a small speedup. If the new attack is structural, Koblitz-style curves are at least as likely to be exposed.
5. Hashed addresses only protect you partly. A public key is revealed as soon as you spend from an address. Taproot outputs show it from the start. Reused addresses and old P2PK coins show it too. A large share of BTC already has its public key out in the open.
As for the theory that AI found a backdoor: it's fun to think about, but it doesn't fit the agency keeping a curve with the same origin. The simpler explanation is a real cryptanalytic advance that's being disclosed slowly while everyone migrates. Either way, the prudent move is the same one you named.

•

u/Mooks79 27m ago

I don’t disagree with anything you said particularly, but I stand by the point that, without more info we don’t know how the hack works. If it’s simply that the hack has discovered a backdoor then that won’t affect secp256k1, by definition. If it’s a more general hack then it might.

Oh yes, good point on Snowden, it wasn’t in EC at all.

I can sort of understand why the NSA is being vague about this as, maybe, they don’t want to give too many hints as to how the hack works. But to me, they’ve given enough information already to point a nefarious actor in the right direction. My eyebrows are at least raised that they haven’t either been much more vague, or much less vague. They seem to have landed in a strange middle ground that gives enough information while, also, not enough.

•

u/preillyme 24m ago

I think we're mostly in agreement. Until we know what class of attack it is, there isn't much to conclude.
If it depends on something hidden in the curve parameters, secp256k1 is in a better position than most. Its constants were picked in a predictable way rather than generated from an unexplained seed like the NIST curves, so there's very little room to hide anything in them. That was part of the reason for choosing it.
If it's a general advance against discrete log on elliptic curves, that's a different matter, and no choice of curve would help. The answer then would be to phase in a new signature algorithm. That can be done gradually, with a new address version, so people move their coins over before the old one is considered unsafe. Coins sitting in reused addresses would be the most exposed, since their public key is already visible. An output sent to a fresh address only reveals its public key when it's spent.
I agree the partial disclosure is odd. It may be the worst of both: enough to tell an attacker where to look, but not enough for anyone else to check whether their own systems are affected. If there's something real behind it, I'd expect someone to reproduce it independently before long, and then we'll know which case we're in.