Original article fromFred Krueger
Compiled by Odaily Planet Daily Golem (@web 3_golem)
Editor's note: Throughout the weekend, the crypto community was in a panic over rumors that AI frontier labs had cracked cryptography (such as ECDSA, RSA algorithms, P=NP). Today, Musk also replied on social media, saying, "I've heard about this from several people."
The rumor began to spread widely on November 25 when renowned theoretical computer scientist Scott Aaronson published a blog post, stating that he had learned from multiple reliable sources that AI labs currently possess one or more "bombshells" in cryptography. Subsequently, although there was no public evidence, paper, lab announcement, or verifiable demonstration to support these claims, the rumor gradually fermented on social media and even became a reason for investors to sell off Bitcoin.
Multiple crypto OGs and celebrities have commented on the rumor. Strategy founder Michael Saylor said that even if AI could crack existing encryption technologies, Bitcoin could respond through upgrades. Others argued that if an AI breakthrough rendered cryptography ineffective, then the modern financial and e-commerce systems, as well as the entire global economy, would be severely impacted, and shorting the entire stock market would be more logical.
Among the rumors, the argument about P=NP is the most prevalent. The core of the P vs. NP problem explores whether every problem that is "easy to verify" is also "easy to solve."
Bitcoin's operation is also based on this contradiction: verifying a block or signature takes only an instant, while finding a nonce or private key is practically impossible. Most experts lean toward P ≠ NP, but even if someone proved it, it would not mean your keys are absolutely safe.
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 users' Bitcoin, the real threat still comes from quantum computing. However, cryptography always evolves, and Bitcoin can also upgrade its signature mechanism.
Fred Krueger, a Stanford PhD, explains in detail what the P=NP problem is, why Bitcoin investors should pay attention to it, and how likely AI is to break through this problem. Given that the Chinese-speaking community has not yet fully discussed this hot topic, Odaily Planet Daily has compiled the full text as follows, enjoy~
What exactly are P and NP?
- P refers to the set of problems that a computer can solve quickly.
- NP refers to the set of problems for which a computer can quickly verify the correctness of a given answer.
The word "quickly" has a precise definition: as the problem size grows, the required work grows at a controllable rate (e.g., linearly or quadratically). It does not explode like "guessing a 256-bit key," where each additional bit doubles the work.
Any problem that can be solved quickly can also be verified quickly, so all P problems belong to NP.
Is every NP problem essentially a P problem?
Here are four examples related to Bitcoin:
- Sorting Bitcoin's UTXOs (unspent transaction outputs) by value is both easy to verify and easy to solve. This is a P problem.
- Solving a massive Sudoku puzzle is easy to verify, but no known fast solving method exists.
- Finding a valid block nonce requires only one hash to verify, but finding it requires brute force.
- Deriving a private key from a public key requires only one scalar multiplication to verify, but no known fast solving method exists.
Supplement: Textbook definitions
In textbooks, P and NP are defined using "Turing machines" (a theoretical model of a computer).
P is the set of problems that an ordinary (deterministic) Turing machine can solve in "polynomial time," i.e., for an input of size n, the number of steps required is at most nᵏ. In an ordinary Turing machine, each operation has exactly one subsequent action.
NP is the set of problems that a nondeterministic Turing machine can solve in polynomial time. This idealized machine can try all possible paths simultaneously, or you can imagine it as a machine that "always makes the right guess," giving a yes answer if any path leads to yes.
Imagine a "nondeterministic" Bitcoin miner that does not need to laboriously try random numbers one by one, but guesses the winning nonce in one step and then verifies it in just microseconds. No real machine works 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 quickly verify. A nondeterministic machine can build a proof by guessing bit by bit and then verify it. Therefore, "solvable by lucky guessing" and "easy to verify" are essentially the same thing.
From this perspective, the "P vs. NP" problem asks: can an ordinary machine always simulate lucky guessing with polynomial-time slowdown? (Because if you exhaust all paths, the time required would be exponential.)
There are two common misconceptions here: the "N" in "NP" stands for "nondeterministic," not "non-polynomial"; quantum computers are not "nondeterministic machines," they do not get the correct answer "for free," and the academic consensus is that quantum computers cannot quickly solve NP-complete problems.
Why should Bitcoin holders care about this problem?
No one knows the answer yet; the problem has remained unresolved since it was posed in 1971. It is also one of the seven "Millennium Prize Problems" established by the Clay Mathematics Institute, and whoever provides a proof can win $1 million.
If you are running a Bitcoin node, then every ten minutes you are actually inside this problem.
I owe this knowledge to Professor Christos Papadimitriou. He was my professor at Stanford in the 1980s and is one of the authors of the authoritative textbook in computational complexity (a true "textbook-level" figure). One of his mottos fits the theme of this article perfectly: "Anything worth explaining can always be told through a good story."
So, the story begins.
"Mining" is an excellent example
Verifying a block is instantaneous; your node only needs to hash the block header once and compare it with the target value, a process that takes less than a millisecond.
But finding that block is extremely difficult. Miners around the world need to try trillions of random numbers because no shortcut is known. They can only keep trying until the computed hash is below the target threshold.
The same is true for keys. Verifying that a private key matches a public key takes only one computation; the reverse operation, deriving the private key from the public key, would take longer than the age of the universe even using all computers on Earth.
This gap between "easy to verify" and "hard to solve" is the core of the "P vs. NP" problem. So, is this gap objective, or is it merely because we have not yet discovered the corresponding shortcut?
NP-complete problems: the world's master key
Among NP problems, there is a class called "NP-complete." They are the hardest among them and are interconnected: finding a fast solution for any one of them means finding a fast solution for all NP problems.
There are thousands of such problems, covering Sudoku, delivery route planning, and task scheduling. One example may seem familiar: when miners build a block template, they need to select a set of transactions from many to maximize total fees while satisfying the block size (weight) limit. This is essentially a variant of the "knapsack problem," and the knapsack problem is NP-complete.
For this reason, mining software usually adopts "good enough" approximation schemes (e.g., sorting by fee rate) rather than pursuing the construction of a "perfect" block.
Therefore, if P = NP could be proven, it would mean finding a fast solution method applicable to all such problems; and if P ≠ NP could be proven, it would mean proving that such a method simply does not exist.
Polynomial: Theory Is Not the Same as Practice
"Belonging to the P class of problems" means being fast in theory. But actual running speed is another matter. I once personally encountered an excellent example of this discrepancy at Stanford University.
Linear programming is a mathematical method for seeking optimal solutions under constraints, commonly used in fields such as oil transportation route planning, flight scheduling, or capital allocation. The following three algorithms vividly demonstrate the enormous gap that can exist between theory and practice:
- The Simplex method (proposed in 1947 by George Dantzig, who later became a Stanford University professor): slow in theory, because on certain specially constructed inputs its running time grows exponentially. But in practice, it runs extremely fast and is extremely widely used.
- The Ellipsoid method (proposed in 1979 by Leonid Khachiyan): this was the first polynomial-time algorithm, extremely fast in theory, but in practical applications far slower than the Simplex method.
- The Interior-point method (proposed in 1984 by Narendra Karmarkar of Bell Labs): performs excellently in both theory and practice, and is the cornerstone of modern solvers.
Here is the twist: the Simplex method, which is "slow" in theory, actually exhibits polynomial time complexity when handling average-case inputs. In the early 1980s, Karl-Heinz Borgwardt and Steve Smale proved that those "worst cases" are actually very rare. This is precisely why the Simplex method can continue to win out in practice.
What this means for "Bitcoin players":
- Worst case does not represent typical case. Sudoku and SAT are both NP-complete problems, yet modern SAT solvers can easily handle industrial-scale problems containing millions of variables. NP-complete means that some special cases among them are hard to solve, not that all cases are hard;
- Cryptography is exactly the opposite. For randomly generated keys, it must be sufficiently hard to crack in the "average case," not merely in the "worst case." This is a more specific and stronger guarantee than what the "P versus NP problem" can provide;
- Actual cost is far more important than asymptotic complexity. Take the secp256k1 curve as an example: its parameter size is fixed, and what truly matters is the "actual attack cost." The strongest known classical attack algorithm, Pollard's rho algorithm, requires approximately 2¹²⁸ steps of computation. It is this number that protects your Bitcoin, not mathematical theorems about nᵏ (polynomial complexity).
What Does This Mean for the Bitcoin You Hold?
Bitcoin's security is built on two hard problems. Among them, the SHA-256 algorithm secures the mining process and the address system. The secp256k1 elliptic curve provides the security guarantee for your signatures. The following is how various scenarios affect signatures:
- If P = NP, and a practical algorithm exists, this is the "doomsday" scenario currently being widely discussed on social media. Finding keys or hash inputs is precisely the kind of search task that becomes easy under a practical algorithm; therefore, in theory, both cornerstones supporting modern cryptography would collapse. This would also mean that almost all modern cryptographic systems would become ineffective. However, most experts consider this scenario extremely unlikely to occur.
- If P = NP, but the algorithm runs so slowly that it cannot be used in practice, then nothing will happen. An algorithm requiring n¹⁰⁰⁰ steps of computation, although belonging to the "fast" category in theory, is utterly useless in reality.
If P ≠ NP, this is the point most people tend to overlook: even proving P ≠ NP cannot guarantee that your keys are absolutely safe. Here is why.
ECDSA (Elliptic Curve Digital Signature Algorithm) Is Not an NP-Complete Problem
Bitcoin uses ECDSA (as well as the Schnorr signatures introduced after the Taproot upgrade) to sign transactions. The security premise of these signature schemes is that no one can 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 currently no mathematical proof, the reasons experts are so convinced of this are as follows:
- The problem is easy to verify in both directions. If someone claims that a key exists within a certain range, they can provide a proof; if they claim it does not exist, they can likewise provide a proof. Such problems belong to the category "NP ∩ coNP." If any one of these problems were proven to be NP-complete, then a large part of computational complexity theory would collapse (that is, NP would equal coNP), and almost no one believes this would happen.
- Quantum computers can break it. On a sufficiently powerful quantum computer, Shor's algorithm can efficiently break this problem. Experts generally believe that quantum computers cannot efficiently solve NP-complete problems, which also indirectly confirms that this problem is less difficult than NP-complete problems.
The same is true of the "large integer factorization problem" on which RSA encryption relies. Such problems all lie in the "middle ground" between P-class problems and NP-complete problems. What this means for you: even proving P ≠ NP cannot ensure that your keys are safe. However, even if ECDSA were broken, it would not mean P = NP, nor would it cause all other hard problems to be solved at once.
The real threat to Bitcoin comes from quantum computing, not the "P versus NP" problem. On a sufficiently powerful quantum computer, Shor's algorithm is already capable of breaking elliptic curve keys. Although no such hardware currently exists, estimates of the scale of quantum computer needed to achieve this goal are continually being revised downward.
Google researchers once released new resource estimates, pointing out that by 2026, the scale of resources needed to break secp256k1 may already be within reach. Precisely for this reason, for Bitcoin, post-quantum signatures are the truly worthwhile topic of discussion; this also explains why reusing addresses (thereby exposing public keys) is a bad habit.
The Mathematical Origins Bitcoin Relies On
Most experts believe P ≠ NP. In a 2019 survey of researchers conducted by Bill Gasarch, about 88% of respondents held this view. Over the past more than 50 years, despite repeated attempts by some of humanity's brightest minds, no one has ever managed to find an efficient solution algorithm for even a single "NP-complete" problem.
So why is proving this so difficult? To prove P ≠ NP means one must prove that among infinitely many possible algorithms (including those not yet conceived by humans) no efficient algorithm exists. Researchers have even proven that the most commonly used proof techniques today are all ineffective for such problems. Anyone who wishes to solve this difficult problem will probably need to rely on entirely new mathematical theories.
Christos Papadimitriou has devoted his life to exploring this field. He has taught at Harvard University, MIT, Stanford University, and UC Berkeley, and currently holds the "Donovan Family Chair Professor" position in the Department of Computer Science at Columbia University. Three of his views are especially important for Bitcoin users:
- He is the author of the authoritative work in this field. His 1994 textbook "Computational Complexity" remains essential reading for graduate students studying this area to this day.
- He defined the "middle ground"—some problems appear hard yet are not "NP-complete" problems. Papadimitriou defined a complexity class called "PPAD" for one category of such problems; together with Constantinos Daskalakis and Paul Goldberg, he proved that finding Nash equilibria is a "PPAD-complete" problem. This is precisely the kind of complexity between easy and extremely hard that I mentioned earlier, and it is precisely the complexity on which the protection of your private keys depends.
- He focuses on "incentives." He participated in building "algorithmic game theory," a discipline devoted to studying what happens when self-interested participants meet algorithms. To summarize Bitcoin in one sentence: it is game theory plus cryptography.
I met him at Stanford University between 1982 and 1986. That was eight years before his textbook was published, and more than twenty years before Satoshi Nakamoto released the Bitcoin whitepaper. The core ideas that now secure 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 question. In May 2026, a reasoning model from OpenAI disproved an 80-year-old conjecture about distances between points proposed by Paul Erdős. Although human mathematicians improved upon its result within a few weeks, the core idea did indeed come from a machine.
However, the "P versus NP" problem belongs to another level. The case of the Erdős conjecture involved a clever construction; to prove "P ≠ NP," one must prove that something is "impossible," and this is precisely where the currently known theoretical barriers are hardest to overcome.
This is my personal rough estimate (purely intuition, not based on data):
- AI solving the "P versus NP" problem: about 1% probability within one year, about 5% within five years, about 15% within ten years;
- AI finding a method to break elliptic curve signature algorithms: about 0.5% probability within one year, about 2%–3% within five years, about 6% within ten years.
Even if the problem is eventually solved, I am still about 90% confident that the answer will be "P ≠ NP." In any case, for the cryptocurrency you hold, the impact of the "quantum clock" (that is, the threat posed by quantum computing) is far more critical than any of the above scenarios.
Summary
For Bitcoin, the real risk lies in quantum computing, not the "P versus NP" problem. Shor's algorithm is a known and concrete attack method against ECDSA and Schnorr signatures. The only thing currently lacking is hardware, and estimates of the hardware scale needed to carry out this attack are continually being revised downward.
The risk posed by the "P versus NP" problem is very small. Even if AI solves the "P versus NP" problem within the next ten years (I estimate this probability at about 15%), I believe the probability of "P ≠ NP" is much higher. Therefore, the probability that AI proves "P = NP" is far below 5%, and the probability that it can provide a practical algorithm sufficient to break existing cryptography is even lower.
In any case, cryptography can evolve. The National Institute of Standards and Technology (NIST) has already standardized "post-quantum" signature schemes such as ML-DSA and SLH-DSA. Bitcoin can adopt new signature schemes through a "soft fork," just as it introduced Schnorr signatures through the Taproot upgrade in 2021.
The real difficulty is not in the mathematics, but in the coordination work, that is, moving assets to new-type addresses before the threat arrives; this is especially important for those assets whose public keys have already been exposed on-chain.
Therefore, Bitcoin enthusiasts do not need to lose sleep over the "Millennium Prize Problems," but please be sure to pay attention to "post-quantum" cryptography solutions and stop reusing addresses.





