Elon Musk warns that AI could crack cryptography, will Bitcoin go to zero?
All weekend, the crypto community has been thrown into panic by rumors that the AI Frontier Lab has broken cryptography (such as ECDSA, RSA algorithms, P=NP). Today (November 30), Elon Musk also replied on social media, "I've heard about this from several people."
The large-scale spread of this rumor started on November 25, when renowned theoretical computer scientist Scott Aaronson published a blog post, stating that he learned from multiple reliable sources that the AI lab currently holds one or more "blockbusters" in the field of cryptography. Subsequently, although no public evidence, papers, lab announcements or verifiable demonstrations supported these claims, the rumor gradually fermented on social media and even became a reason for investors to sell off Bitcoin.
Many crypto OGs and celebrities have shared their views on this rumor. Michael Saylor, founder of Strategy, said that even if AI can break existing encryption technology, Bitcoin can cope with it through upgrades. There is also a view that if AI breakthroughs lead to the failure of cryptography, the modern financial and e-commerce systems and the entire global economy will be severely impacted, and shorting the entire stock market would be more logical.
In this rumor, the argument about P=NP is the most frequent. The core of the P vs. NP problem explores whether every "easy-to-verify" problem is also "easy-to-solve".
The operation of Bitcoin is also based on this contradiction: verifying a block or signature only takes an instant, while finding a nonce or private key is practically impossible. Most experts tend to believe that P ≠ NP, but even if someone proves this, it does not mean that your key is absolutely secure.
Because the problem involved in ECDSA (Elliptic Curve Digital Signature Algorithm) is not an "NP-complete" problem, its security relies on its own assumptions, but theoretical feasibility does not mean practicality. For the Bitcoin held by users, the real threat still comes from quantum computing. However, in any case, cryptography will always evolve, and Bitcoin can also upgrade its signature mechanism.
Fred Krueger, PhD from Stanford University, elaborated on what the P=NP problem is, why Bitcoin investors should pay attention to this issue, and how likely it is for AI to break through this problem. Given that this hot topic has not been fully discussed in the Chinese-speaking region, Odaily Planet Daily has translated the full text as follows, enjoy~
What exactly are P and NP?
- P refers to the set of problems that computers can solve quickly.
- NP refers to the set of problems for which computers can quickly verify the correctness of a given answer.
The term "quickly" has a precise definition: as the scale of the problem expands, the required workload grows at a controllable speed (for example, doubling or growing quadratically). It will not explode like "guessing a 256-bit key", where the workload doubles for every additional bit.
Any problem that can be solved quickly can also be verified quickly, so all P-class problems belong to the NP class.
Is every NP problem essentially a P problem?
Here are four Bitcoin-related examples:
- Sorting Bitcoin's UTXOs (Unspent Transaction Outputs) by value is both easy to verify and easy to solve. This is a P-class problem.
- Solving a super-large Sudoku game is easy to verify, but there is no known fast solution method at present.
- Finding a valid block nonce only requires one hash operation for verification, while finding it requires brute force cracking.
- Deriving a private key from a public key only requires one scalar multiplication for verification, but there is no known fast solution method at present.
Supplement: Textbook Definitions
In textbooks, P and NP are defined through "Turing machines", a theoretical model of computers.
P refers to the set of problems that an ordinary (deterministic) Turing machine can solve in "polynomial time", that is, for an input of size n, the maximum number of steps required is nᵏ. In an ordinary Turing machine, each operation has exactly one subsequent action.
NP refers to the set of problems that a non-deterministic Turing machine can solve in polynomial time. This idealized machine can try all possible paths at the same time, or you can imagine it as a machine that "always makes the right guess". As long as any of the paths reaches a yes conclusion, it will give a yes answer.
Imagine a "non-deterministic" Bitcoin miner that does not need to laboriously try nonces one by one, but can guess the winning nonce in one step, and then verify it in just a few microseconds. No machine in reality can operate like this.
These two definitions describe the same class of problems. Those "lucky guesses" on the "success path" actually constitute a "proof" that anyone can verify quickly. A non-deterministic machine can construct a proof by guessing bit by bit, and then verify it. Therefore, "can be solved by lucky guesses" is essentially the same as "easy to verify".
From this perspective, the "P vs. NP" problem explores: can an ordinary machine always simulate lucky guesses at a polynomial-level speed attenuation? (Because if you exhaust all paths, the time required will be exponential.)
Here are two common misunderstandings: the "N" in "NP" stands for "nondeterministic", not "non-polynomial"; quantum computers are not "non-deterministic machines", they cannot get the correct answer "for free", and the academic community generally agrees that quantum computers cannot quickly solve NP-complete problems.
Why should Bitcoin holders care about this problem?
No one knows the answer yet. This problem has been unresolved since it was proposed in 1971, and it is also one of the seven "Millennium Prize Problems" set by the Clay Mathematics Institute. Anyone who can provide a proof will receive a $1 million bonus.
If you are running a Bitcoin node, you are actually in the middle of this problem every ten minutes.
I owe this knowledge to Professor Christos Papadimitriou. He was my professor at Stanford University in the 1980s and is one of the authors of the authoritative textbook in the field of computational complexity (a veritable "textbook-level" figure). One of his mottos fits the theme of this article very well: "Anything worth explaining can always be made clear through a good story."
So the story begins.
"Mining" is a perfect example
Verifying a block is instantaneous: your node only needs to perform one hash operation on the block header and compare it with the target value, and the whole process takes less than a millisecond.
But finding that block is extremely arduous. Miners around the world need to try trillions of nonces, because no one knows any shortcuts yet. They can only keep trying until the calculated hash value is lower than the target threshold.
The same is true for keys. Verifying whether a private key matches a public key can be completed with one calculation; the reverse operation, deriving a private key from a public key, would take more time than the age of the universe even with all the computers on Earth.
This gap between "easy to verify" and "hard to solve" is exactly the core of the "P vs. NP" problem. So does this gap really exist objectively, or is it just that we haven't found the corresponding shortcut yet?
NP-complete problems: the master key of the world
Among NP problems, there is a category called "NP-complete" problems. They are the most difficult ones, and they are connected to each other: as long as a fast solution is found for any one of them, it means that a fast solution can be found for all NP problems.
There are thousands of such problems, covering Sudoku, distribution route planning, task scheduling, etc. One example you may find familiar: when miners build a block template, they need to select a set of transactions from numerous transactions, which not only ensures the highest total transaction fees, but also meets the block size (weight) limit. This is essentially a variant of the "knapsack problem", which is exactly an NP-complete problem.
For this reason, mining software usually adopts "good enough" approximation schemes (such as sorting by fee rate) instead of pursuing building a "perfect" block.
Therefore, proving that P = NP means finding a fast solution applicable to all such problems; while proving that P ≠ NP means proving that such a method does not exist at all.
Polynomial: Theory is not equal to practice
"Belonging to the P class of problems" means that the speed is fast in theory. But the actual running speed is another matter. I once experienced a perfect example of this difference at Stanford University.
Linear programming is a mathematical method for seeking optimal solutions under constraints, often used in oil transportation route planning, flight scheduling or capital allocation and other fields. The following three algorithms vividly show the huge gap that may exist between theory and practice:
- Simplex method, proposed by George Dantzig in 1947, who later became a professor at Stanford University: it is theoretically slow, because its time consumption grows exponentially under some specially constructed inputs. But in practice, it runs extremely fast and is extremely widely used.
- Ellipsoid method, proposed by Leonid Khachiyan in 1979: this is the first polynomial-time algorithm, which is theoretically extremely fast, but in practical applications it is much slower than the simplex method.
- Interior-point method, proposed by Narendra Karmarkar of Bell Labs in 1984: it performs well both in theory and practice, and it is the cornerstone of modern solvers.
Here's a twist: the theoretically "slow" simplex method actually exhibits polynomial time complexity when dealing with average-case inputs. In the early 1980s, Karl-Heinz Borgwardt and Steve Smale proved that those "worst cases" are actually very rare. This is exactly why the simplex method continues to win in practice.
This means for "Bitcoin players":
- The worst case does not represent the typical case. Sudoku and SAT are both NP-complete problems, but modern SAT solvers can easily handle industrial-level problems with millions of variables. NP-complete problems mean that some special cases are very difficult to solve, not that all cases are difficult;
- Cryptography is the exact opposite. For randomly generated keys, it must be sufficiently difficult to crack in the "average case", not just in the "worst case". This is more specific and powerful than the guarantees that the "P vs. NP problem" can provide;
- Actual cost is far more important than asymptotic complexity. Taking the secp256k1 curve as an example, its parameter size is fixed, and what really matters is the "actual attack cost". The currently known strongest classical attack algorithm, Pollard's rho algorithm, requires about 2¹²⁸ operations. It is this number that protects your Bitcoin, not the mathematical theorem about nᵏ (polynomial complexity).
What does this mean for the Bitcoin you hold?
The security of Bitcoin is built on two difficult problems. Among them, the SHA-256 algorithm ensures the security of the mining process and the address system. The secp256k1 elliptic curve provides security for your signatures. Here are the impacts of various different scenarios on signatures:
- If P = NP and there is a practical algorithm, this is the "doomsday" scenario widely discussed on social media now. Finding keys or hash inputs is exactly the kind of search task that becomes easy under a practical algorithm; therefore, theoretically, the two cornerstones supporting modern cryptography will collapse. This also means that almost all modern cryptography systems will fail. However, most experts believe this scenario is extremely unlikely.
- If P = NP, but the algorithm runs so slowly that it cannot be used in practice, nothing will happen. An algorithm that requires n¹⁰⁰⁰ operations, although theoretically in the "fast" category, is completely useless in reality.
If P ≠ NP, this is a point most people easily overlook: even proving P ≠ NP cannot guarantee that your key is absolutely secure. The reasons are as follows.
ECDSA (Elliptic Curve Digital Signature Algorithm) is not an NP-complete problem
Bitcoin uses ECDSA (and Schnorr signatures introduced after the Taproot upgrade) to sign transactions. The security premise of these signature schemes is that no one can reverse-derive the private key from the public key. This is essentially the "elliptic curve discrete logarithm problem", which is almost certainly not an NP-complete problem. Even though there is no mathematical proof yet, experts are convinced of this for the following reasons:
This problem is easy to verify in both directions. If someone claims that a key exists in a certain range, they can provide a proof; if they claim it does not exist, they can also provide a proof. Such problems belong to the category of "NP ∩ coNP". If any of these problems is proven to be NP-complete, a large part of computational complexity theory will collapse (that is, NP will be equal to coNP), and almost no one thinks this will happen.
Quantum computers can crack it. On a sufficiently powerful quantum computer, the Shor algorithm can crack this problem efficiently. Experts generally believe that quantum computers cannot efficiently solve NP-complete problems, which also indirectly confirms that the difficulty of this problem is lower than that of NP-complete problems.
The same is true for the "large integer factorization problem" on which RSA encryption relies. Such problems are all in the "middle zone" between P-class problems and NP-complete problems. This means for you: even if P ≠ NP is proven, it cannot ensure the security of your keys. However, even if ECDSA is cracked, it does not mean that P = NP, nor will all other difficult problems be solved easily.
The real threat to Bitcoin comes from quantum computing, not the "P vs. NP problem". On a sufficiently powerful quantum computer, the Shor algorithm can already crack elliptic curve keys. Although there is no such hardware at present, the estimated scale of quantum computers required to achieve this goal is constantly decreasing.
Google researchers once released new resource estimates, pointing out that by 2026, the scale of resources required to crack secp256k1 may be within reach. That is why post-quantum signatures are a really worthy topic for Bitcoin; this also explains why reusing addresses (thus exposing public keys) is a bad habit.
The mathematical origin that Bitcoin relies on
Most experts believe that P ≠ NP. In a 2019 survey of researchers conducted by Bill Gasarch, about 88% of respondents held this view. Over the past 50+ years, even though the smartest minds among humans have kept trying, no one has ever found an efficient solution algorithm for even one "NP-complete" problem.
So why is it so difficult to prove this? Proving P ≠ NP means that you must prove that there is no efficient algorithm among the infinite possible algorithms (including those that have not yet been conceived by humans). Researchers have even proven that the most commonly used proof methods are ineffective for such problems. Anyone who wants to solve this difficult problem will probably need to use a whole new set of mathematical theories.
Christos Papadimitriou has devoted his entire life to exploring this field. He has taught at Harvard University, the Massachusetts Institute of Technology (MIT), Stanford University, and the University of California, Berkeley, and currently serves as the "Donovan Family Professor" in the Department of Computer Science at Columbia University. Three of his views are particularly important for Bitcoin users:
He is the author of the authoritative work in this field. His textbook *Computational Complexity*, published in 1994, is still a required textbook for graduate students learning this content.
He defined the "middle zone": some problems seem difficult, but they are not "NP-complete" problems. Papadimitriou defined a complexity class called "PPAD" for one of these types of problems; together with Constantinos Daskalakis and Paul Goldberg, he proved that finding a Nash equilibrium is a "PPAD-complete" problem. This is the kind of complexity I mentioned earlier, between simple and extremely difficult, and it is exactly the complexity that protects your private key.
He focuses on "incentive" mechanisms. He participated in the construction of "algorithmic game theory", a discipline that specifically studies what happens when selfish participants meet algorithms. To sum up Bitcoin in one sentence, it is game theory plus cryptography.
I met him at Stanford University from 1982 to 1986. That was eight years before his textbook was published, and more than 20 years before Satoshi Nakamoto released the Bitcoin white paper. Those core ideas that now guarantee the security of Bitcoin were conceived in his office back then.
Can AI crack it?
Probably not in the short term, but this is no longer an absurd