TechFlow Logo
Login/ Sign up
ETH Gas
Gwei
Fear
gas
The Bitcoin Security Crisis in the AI Era: If cryptography is broken, can Bitcoin still survive?

The Bitcoin Security Crisis in the AI Era: If cryptography is broken, can Bitcoin still survive?

2026.12.01
Share
Even if ECDSA is compromised, Bitcoin can still save itself; the true bottom line determining its survival is SHA-256.

Author: nader.deso (@nadertheory)

Compiled by: TechFlow

Given the potential for major news in the crypto space, many people have been asking me for my take on Bitcoin. Since I haven't seen others provide strong analysis, I'm laying out my thoughts here completely, including how secure things are right now and what I'm doing personally. All of this is written by hand; I didn't use AI at all.

TL;DR: I've basically taken no action. Over 50% of my personal wealth is in Bitcoin, and I believe it's largely safe to hold. That said, I'll outline scenarios that would change my view so everyone can prepare in advance.

First off, something many don't realize: Bitcoin rests on two mathematical assumptions. One involves elliptic curves, specifically ECDSA, which relies on the "discrete logarithm" assumption. The other involves hashing, specifically the SHA-256 hash algorithm. They do different things. ECDSA is used to sign transactions, proving they were sent by you. SHA-256 is used to mine blocks and issue new bitcoins.

Overall, even if ECDSA is broken, Bitcoin should largely hold up, depending on how it's broken. If SHA-256 is broken, Bitcoin is completely dead. Fortunately, breaking SHA-256 is much harder, roughly at the level of P = NP. If it were actually broken, we'd probably have to rethink the nature of reality itself. As for ECDSA, it was already anticipated that quantum computing at a certain stage would break it, and the Bitcoin community has been actively preparing for migration. I'll go into specifics below.

Let's start with ECDSA and its risks. Even if ECDSA is compromised, switching to another signature scheme isn't particularly difficult, and we're already working on it. Alternative signature schemes exist; the remaining challenges are engineering and coordination. When people say quantum computers will break Bitcoin, they're only referring to breaking ECDSA. Quantum computers will also make SHA-256 easier to solve, but the improvement isn't enough to break it. Miners might have to switch to quantum mining, which sounds weird, but might not be a huge deal.

If ECDSA were broken tomorrow, we wouldn't be fully prepared. But we've run scenario simulations. If it's broken in a "slow" way, we should be able to handle it, and that's the most likely scenario. What does "slow" mean? The details matter here. Today, non-quantum algorithms require more computational steps than atoms in the universe to crack your ECDSA private key. If tomorrow AI tells us an algorithm could do it with Earth's total computing power over a thousand years, that's a massive leap, but we still have plenty of time to migrate to a safer scheme. Even if the fastest algorithm can crack a key in 20 minutes under optimal conditions, we might still have some runway left.

Why? Bitcoin has a unique feature. Your key is only exposed to attackers after the transaction is broadcast but before it's mined into a block; once inside a block, it's protected by SHA-256. This means that if a tool exists that takes 20 minutes to crack a key, using today's Bitcoin rules, it's technically still possible to move everyone out. You'd just need to transfer funds once from the insecure ECDSA wallet to one capable of handling future risks. As long as the transaction gets mined before the attacker can rewrite it, it's fine. Since every Bitcoin transaction changes keys, in this scenario, you could still operate normally even without immediately exiting ECDSA.

How about the worst-case scenario? Suppose there's a method to crack keys instantly. Honestly, it's not that bad. We'd need a small update to split spending into two steps. First, put your key and the transaction hash on-chain (assuming the hash is still secure) and wait for it to be mined. Second, reveal the actual key on-chain to prove ownership. Compared to the >20 minute crack scenario, this is more cumbersome because the network needs an upgrade first to support this "commit-reveal" spending method before safe transfers can happen. But it's relatively a minor update, the community has been simulating it, and the entire migration can be completed without any loss of funds.

By the way, this is partly why the community has moved slowly on the quantum front. While a quantum computer cracking a single key is impressive, it's not enough on its own. It must reduce the cracking time per key to around 10 to 20 minutes or less for the network to need an upgrade. Even if it flawlessly breaks ECDSA instantly, the network would only need one relatively minor upgrade to migrate safely. Of course, we shouldn't let our guard down. However, once you understand the real threat ECDSA faces, you'll see that taking more time to ensure we pick the right migration target might be worth it, so we don't have to do this again in five years.

What about AI? How likely is it that AI comes up with a method to crack ECDSA in under 10 minutes? Unfortunately, it's much more likely than quantum computing getting there first. But as long as SHA-256 remains secure, Bitcoin can still handle it, which I'll cover later. This would require us to quickly upgrade to commit-reveal spending, followed by a safe migration. It might be a chaotic month to finish the network upgrade and return to normal. Of course, there are exceptions, like Satoshi's coins, which I'll discuss later.

Additionally, all the rumors I've heard point to a "cosmic-scale" algorithm being deployed. Basically, it would require Earth's total computing power to run for a millennium to crack a single key. It's still scary because a much faster version might come next month. But once such an algorithm is public, it would force the Bitcoin community to rally quickly and fast-track commit-reveal or other safety measures. In many ways, that's a good thing.

Alright, ECDSA is done. How about SHA-256? If you've been paying attention, you'll notice I've mentioned several times "assuming hashing remains secure." Here's the good news and the bad news. Good news: hashing and P = NP are somewhat directly linked. If you can break hashing in the general sense, you'll likely be able to find a solution for the famous NP problem called 3-SAT, thereby breaking all other NP-hard problems simultaneously. Note that this link is highly probable but not guaranteed. Strictly speaking, P = NP implies hashing is easy to solve, but the reverse doesn't necessarily hold. However, in my view, they're close enough. If you can break SHA-256, you'd probably figure out P = NP within a week.

This means that if hashing in the general sense is broken, secure communication would be virtually impossible given the current structure of the internet. At that point, you could say our problems far exceed "Bitcoin being insecure or unable to exist." Well, maybe your problems are bigger. Honestly, I'd still mostly feel sad for Bitcoin. So the good news is that a full-breaking of hashing would essentially reshape our fundamental understanding of reality. The scenario we expect is more likely: similar to the Riemann Hypothesis, AI would essentially prove something we've always intuitively believed to be true. To be clear, this is my expectation and a major reason I continue to hold Bitcoin. I really don't believe we'll end up in a P = NP world.

What's the bad news? If SHA-256 is broken, Bitcoin is basically finished. This needs to be precise. Bitcoin would still get into trouble even if it only affects SHA-256 alone, the algorithm relied upon for mining. There's no need for P = NP to collapse the entire hashing domain. Specifically, it would be a break that makes pre-image attacks cheap. So the threshold is lower. Of course, SHA-256 itself is a notoriously difficult algorithm and is quite close to 3-SAT. It's well known that breaking 3-SAT requires capabilities on the scale of P = NP.

How does Bitcoin die? First, remember that the Bitcoin network secures itself through mining. You've probably heard the explanation that computers mine blocks or bitcoins by solving a "puzzle." SHA-256 is that puzzle. Once a sufficiently serious concrete flaw in this puzzle is found, the security of the Bitcoin network is immediately threatened, even if hashing overall remains intact—meaning broadly, P ≠ NP. The reason is that anyone could then generate infinite nonces with a zero hash, which is equivalent to solving the highest difficulty puzzle the Bitcoin network supports.

At that point, mining would stop, and we'd have to switch to a secure hash algorithm, assuming one still exists. Unfortunately, this migration would be much more troublesome. The industry has invested billions, perhaps hundreds of billions or even trillions, in ASICs designed to compute SHA-256 using the old methods. These capital investments would instantly become worthless. Launching a new proof-of-work function from scratch would create a period where the network is vulnerable to attacks from relatively small participants. Simply put, a break in SHA-256 is terrible, whether it's just SHA-256 falling while P still doesn't equal NP, or P = NP causing general hashing to fall apart.

Given these circumstances, it makes sense for the Bitcoin community to bet everything on SHA-256 and eliminate every other cryptographic assumption in the protocol if achievable. Live by SHA-256, die by SHA-256. This is exactly what's happening now. Specifically, many ECDSA alternatives are competing, and the frontrunner is a protocol called SHRINCS. It generates more compact signatures and relies solely on SHA-256 as its cryptographic assumption. By the way, I like this approach. It's already gaining more popularity than lattice-based schemes precisely because it allows us to unify Bitcoin's security into a single cryptographic algorithm already used for mining: SHA-256.

On one hand, it's unsettling because we can't be 100% sure SHA-256 is secure. On the other hand, we can at least put all our eggs in the basket we're most confident in. Furthermore, if AI can formally prove SHA-256 is indeed secure—that is, prove something we've always intuitively believed—Bitcoin as a protocol can finally be considered "complete," becoming the immovable ultimate store of value we always hoped it would be.

Personally, I find it interesting that as long as P ≠ NP, an ultimate digital store of value is possible. Its guaranteed scarcity can surpass any physical or other form of scarcity. If SHA-256 withstands all of this, that final store of value will almost certainly be Bitcoin. If SHA-256 is broken but another hash function is proven secure, another proof-of-work cryptocurrency could potentially replace Bitcoin. This process would be fascinating; I might launch one myself to compete, or maybe I already have a team working on it!

To summarize again.

  • If ECDSA is secure under classical computation and SHA-256 is also secure, Bitcoin is fine. Upgrade ECDSA to SHRINCS or another scheme before quantum computing arrives, and then rocket to the moon.
  • If ECDSA is broken but cracking a key takes over 20 minutes—for example, facing a cosmic-scale algorithm—the network doesn't need an immediate upgrade but should exit ECDSA as soon as possible for safety. The next scenario is only a matter of time.
  • If an algorithm emerges that can break ECDSA within 20 minutes, a minor commit-reveal upgrade to Bitcoin is needed first before safe spending can happen. Rely on it in the meantime until ECDSA is exited.
  • If SHA-256 is broken but P ≠ NP, markets will bleed out heavily. Bitcoin's proof-of-work falls, but other proof-of-work systems could survive. An ultimate digital store of value still exists, it just might not be Bitcoin anymore.
  • If P = NP but only cosmic-scale algorithms are discovered, the next scenario is probably just a matter of time.
  • If P = NP and non-cosmic-scale algorithms exist, reality shatters. Encryption for the internet we know becomes unfeasible, and digital stores of value become unfeasible too. Time to bunker up!

If you've followed Bitcoin closely, you know there's one more annoying topic: Satoshi's coins. Regrettably, in Bitcoin's early days, Satoshi mined 1 million bitcoins and exposed their raw public keys during mining. This means that as long as someone can crack ECDSA, no matter how slow the speed, they could steal this batch of bitcoins. The community initially disagreed on how to handle these coins, and may still disagree; I haven't followed it closely. However, from my perspective, these coins will be destroyed. People funding Bitcoin's development hold large amounts of BTC, as do miners; their interests align strongly with destroying this batch. It looks like a loud minority will complain for clicks, but it will ultimately be resolved quietly and rationally.

That said, even if things aren't resolved properly, or even if this 1 million BTC is stolen, it's not a huge problem in the long run. It would likely cause short-term bleeding and sell-offs, but the market can absorb it. If Bitcoin ultimately obtains a formal safety proof of its algorithms from AI, becoming an unquestionably secure ultimate store of value, that's a small price to pay.

By the way, if you want a prediction market to gauge whether someone has found an ECDSA break or a SHA-256 pre-image vulnerability, just watch the price of Bitcoin itself or Satoshi's coins. Whichever scenario occurs, anyone can easily and anonymously open billion-dollar short perpetual contracts on one of the most liquid global markets. This signal actually has little warning value because by the time you see it, your own coins are already unsafe. But at least, you'll know!

What do I think will happen next? Personally, I'm not overly worried about ECDSA being broken, whether by AI or other methods. I believe the first algorithms discovered will either be cosmic-scale, take over 20 minutes to crack a key, or both. As a result, the Bitcoin community will be pushed to adopt SHRINCS or other alternative schemes early on, which is largely a positive. Up above, I haven't mentioned something that might be slightly amusing yet somewhat pitiful to extreme quantum computing advocates: if everything a quantum computer can do is also easy for a classical computer, that's the so-called BQP = P. Its impact on Bitcoin wouldn't go beyond the ECDSA layer. However, intuitively, if AI truly breaks ECDSA, the likelihood of subsequently proving BQP = P is quite high.

I also don't lose much sleep over non-cosmic versions of P = NP, mainly relying on intuition and my college studies in complexity theory. I mean, I don't believe P = NP, and think it's most likely that AI will, much like with the Riemann Hypothesis, give us greater certainty about something we already intuitively believed: P ≠ NP. What actually keeps me slightly awake is a concrete break of SHA-256 while P still doesn't equal NP. If Bitcoin falls, I believe the most likely scenario is that SHA-256 happens to fail on its own. As for why it's secure, aside from intuition, I don't have strong arguments. I haven't researched it deeply, but solving it is quite close to solving 3-SAT. 3-SAT is an NP-complete problem, already among the hardest class.

My explanation to myself is: if SHA-256 is broken, but P ≠ NP and other secure hash functions exist, digital stores of value still hold. As a hedge, I'll launch a Bitcoin alternative myself. I have experience launching DeSo, which is a proof-of-work blockchain that's still running and has never been hacked so far—hopefully I'm not jinxing it. Conversely, if we survive it and SHA-256 remains intact, Bitcoin becomes "complete." At that point, nothing else will truly possess the same scarcity. Fiat is obviously a scam, gold can be manufactured via alchemy or mined from asteroids, land can be confiscated, etc.

Unifying Bitcoin on SHA-256 while formally verifying its security would create an excellent world for Bitcoin as a store of value. I also believe this is the world we are most likely to enter in the coming years. Given AI's progress, it could arrive even sooner.