The original text comes fromFred Krueger
Translation / Odaily Planet Daily Golem(@web 3_golem)
Editor’s note: Throughout the weekend, the crypto community has been anxious due to rumors that AI frontier laboratories have cracked cryptography (such as ECDSA, RSA algorithms, P=NP). Today, Musk also responded on social mediastating, “I’ve heard about this from several people.”
The widespread circulation of this rumor began on November 25 when renowned theoretical computer scientist Scott Aaronson published ablog post, claiming he had learned from multiple reliable sources that AI laboratories currently possess a “big bomb” in the field of cryptography. Subsequently, although there is no public evidence, papers, lab announcements, or verifiable demonstrations supporting these claims, the rumors have gradually evolved on social media, even becoming a reason for investors to sell Bitcoin.
Many crypto OGs and celebrities have expressed their views on this rumor, with Strategy founder Michael Saylor stating that even if AI can crack existing cryptographic technologies, Bitcoin can respond through upgrades. There is also a viewpoint that if AI breakthroughs render cryptography ineffective, modern finance, e-commerce systems, and the entire global economy would face severe impacts, and shorting the entire stock market would make more sense.
Among the rumors, the argument regarding P=NP is the most prevalent. The core of the P and NP problem discusses whether for every "easily verifiable" problem, it is also "easy to solve".
The operation of Bitcoin is also based on this contradiction, where verifying a block or signature is completed in an instant, while finding a random number or private key is virtually impossible. Most experts tend to believe P≠ NP, but even if someone proves this, it does not mean your key is absolutely safe.
This is because the issues involved in ECDSA (Elliptic Curve Digital Signature Algorithm) are not "NP-complete" problems, thus its security relies on its assumptions; however, being theoretically feasible does not imply practicality. For users holding Bitcoin, the real threat still comes from quantum computing. Nevertheless, cryptography will always evolve, and Bitcoin can upgrade its signature mechanism.
Stanford University Ph.D. Fred Krueger elaborates on what the P=NP problem is, why Bitcoin investors should pay attention to this issue, and how likely it is that AI could break through this issue. Given the insufficient discussion of this hot topic in the Chinese-speaking community, Odaily Planet Daily translates the full text as follows, enjoy~
What are P and NP?
- P refers to the set of problems that can be solved quickly by a computer.
- NP refers to the set of problems for which a given answer can be verified quickly by a computer.
The term "quickly" has a precise definition: as the problem size grows, the amount of work required grows at a controllable rate (for example, exponentially or by the square). It does not explode like "guessing a 256-bit key," where each additional bit doubles the workload.
Any problem that can be solved quickly can also be verified quickly, so all P problems belong to the NP class.
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 easy to verify and easy to solve. This belongs to the class P problem.
- Answering a super large-scale Sudoku game is easy to verify, but there is currently no known quick solving method.
- Finding a valid block random number requires only one hash operation for verification, while finding it requires brute force cracking.
- Deriving a private key from a public key requires one scalar multiplication for verification, but there is currently no known quick solving method.
Supplement: Definitions in Textbooks
In textbooks, P and NP are defined through "Turing machines" (a theoretical model of computers).
P refers to the set of problems that ordinary (deterministic) Turing machines can solve in "polynomial time," meaning that for an input of size n, the maximum number of steps is nᵏ steps. In an ordinary Turing machine, each operation has only one subsequent action.
NP refers to the set of problems that non-deterministic Turing machines can solve in polynomial time. This idealized machine can simultaneously try all possible paths, or you can imagine it as a machine that "always makes the correct guess," providing a yes answer as long as any one path reaches a conclusion of yes.
Imagine a “non-deterministic” Bitcoin miner, which does not need to laboriously try random numbers one by one, but can guess the winning random number in a step and then verify it in just a few microseconds. In reality, no machine can operate this way.
Both definitions describe the same class of problems. The “lucky guesses” on the “successful paths” essentially constitute a “proof” that can be quickly verified by anyone. The non-deterministic machine can construct proof by guessing bit by bit and then verifying it. Therefore, “can be solved by lucky guesses” and “easy to verify” are essentially the same thing.
From this perspective, the “P vs NP” problem discusses whether an ordinary machine can always simulate lucky guesses at a polynomial level (because if exhaustive searching of all paths is needed, the time required will be exponential).
There are two common misconceptions: the “N” in “NP” stands for “non-deterministic,” not “non-polynomial”; quantum computers are not “non-deterministic machines”; they do not obtain correct answers "for free," and it is generally believed that quantum computers cannot quickly solve NP-complete problems.
Why should Bitcoin holders care about this issue?
No one knows the answer at present; this question has been unresolved since it was proposed in 1971, and it is one of the seven “Millennium Prize Problems” established by the Clay Mathematics Institute. Whoever can provide proof will receive a $1 million prize.
If you are running a Bitcoin node, then every ten minutes you are indeed part of this problem.
These insights are due to Professor Christos Papadimitriou, who was my professor at Stanford University in the 1980s and is one of the authors of authoritative textbooks in the field of computational complexity (a truly “textbook-level” figure). One of his maxims resonates strongly with the theme of this article: “Anything worth explaining can be explained through a good story.”
So the story begins.
“Mining” is a great example
Verifying a block is completed in an instant; your node just needs to perform one hash operation on the block header and compare it with the target value, consuming less than a millisecond.
However, finding that block is extremely challenging. Miners around the world need to try trillions of random numbers, as no shortcuts are known. They can only keep trying until the computed hash value is below the target threshold.
The same goes for keys. Verifying whether a private key matches a public key requires only one computation; however, the reverse operation, deriving a private key from a public key, would take longer than the age of the universe even using all the computers on Earth.
This gap between “easy to verify” and “hard to solve” is the essence of the “P vs NP” problem. So, does this gap objectively exist, or is it merely because we have yet to discover the corresponding shortcuts?
NP-complete problems: The universal key to the world
Within NP problems, there is a class known as “NP-complete problems.” They are the most difficult class among them and are interconnected; if a quick solving method can be found for any one of these problems, it would mean a quick solving method can be found for all NP problems.
There are thousands of such problems, covering Sudoku, delivery route planning, and task scheduling, among others. One example that you may find familiar is when miners build a block template; they need to filter a group of transactions from many transactions, ensuring both the total transaction fees are highest and the block size (weight) constraints are met. This is essentially a variant of the “knapsack problem,” which is an NP-complete problem.
For this reason, mining software often uses “good enough” approximations (such as sorting by fee rate) rather than striving to create a “perfect” block.
Thus, if it can be proven that P = NP, it means a quick solving method applicable to all such problems has been found; if it can be proven that P ≠ NP, it means that such methods do not exist at all.
Polynomial: Theory does not equal practice
“Belonging to class P” means it runs fast in theory. But the actual running speed is another matter. I once experienced a great example of this difference at Stanford University.
Linear programming is a mathematical method that seeks an optimal solution under constraints and is often used in areas such as oil transportation route planning, flight scheduling, or capital allocation. The following three algorithms vividly illustrate the vast gulf that may exist between theory and practice:
- The Simplex method (proposed by George Dantzig in 1947, who later became a Stanford University professor): It is theoretically slow, as under some specially constructed inputs, its time consumption grows exponentially. However, practically, it runs extremely fast and is widely used.
- The Ellipsoid method (proposed by Leonid Khachiyan in 1979): This was the first polynomial-time algorithm that runs very fast theoretically but is far slower than the Simplex method in practical applications.
- The Interior-point method (proposed by Narendra Karmarkar in 1984): It performs excellently both theoretically and practically, serving as the cornerstone of modern solvers.
Here’s a twist: theoretically “slow” Simplex actually performs as polynomial time complexity when dealing with average-case input. In the early 1980s, Karl-Heinz Borgwardt and Steve Smale proved that those “worst-case scenarios” are actually very rare. This is precisely why Simplex continues to perform well 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 handle industry-grade problems with millions of variables easily. NP-complete problems mean that certain special cases are hard to solve, but not all cases are hard;
- Cryptography is quite the opposite. For randomly generated keys, they must also be hard to crack in the “average case,” not just in the “worst case.” This is more specific and more powerful than the guarantees provided by the “P vs NP problem”;
- The actual cost is far more important than asymptotic complexity. Taking 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 about 2¹²⁸ computation steps. It is this number that protects your Bitcoin, not the mathematical theorems regarding nᵏ (polynomial complexity).
What does this mean for your Bitcoin?
The security of Bitcoin is built on two difficult problems, where the SHA-256 algorithm ensures the security of the mining process and address system. The secp256k1 elliptic curve provides security for your signatures. Here are the impacts of various situations on signatures:
- If P = NP and there exists a practical algorithm, this is the “doomsday” scenario that is widely discussed on social media. Finding keys or hash inputs would become trivial under practical algorithms; therefore, theoretically, both cornerstones supporting modern cryptography would collapse. This would also mean that almost all modern cryptographic systems would fail. However, most experts believe this situation is highly unlikely.
- If P = NP but the algorithm runs so slowly that it cannot be used in practice, then nothing will happen. An algorithm that requires n¹⁰⁰⁰ operations, while theoretically being “fast,” would prove useless in reality.
If P ≠ NP, this is a point that many people overlook: even if P ≠ NP is proven, it does not guarantee that your key is absolutely secure. The reasons are as follows.
ECDSA (Elliptic Curve Digital Signature Algorithm) does not belong to NP-complete problems
Bitcoin uses ECDSA (and the Schnorr signatures introduced in the Taproot upgrade) to sign transactions. The security of these signature schemes assumes that no one can deduce the private key from the public key. This is essentially the “Elliptic Curve Discrete Logarithm Problem,” which almost certainly does not belong to NP-complete problems. Even though there is currently no mathematical proof, experts are confident for the following reasons:
- The problem is easy to verify in both directions. If someone claims a key exists within a certain range, they can provide proof; if they claim it does not exist, they can provide proof as well. Such problems belong to the category “NP ∩ coNP.” If any one of these problems is proven to be NP-complete, a large part of computational complexity theory would collapse (i.e., NP would equal coNP), and hardly anyone believes this will happen.
- Quantum computers can crack it. On sufficiently powerful quantum computers, the Shor algorithm can efficiently solve this problem. Experts generally believe that quantum computers cannot efficiently solve NP-complete problems, which indirectly supports that the difficulty of this problem is lower than that of NP-complete problems.
The situation with RSA encryption, which depends on the "integer factorization problem," is similar. These problems lie in the "middle ground" between P and NP-complete problems. This means for you: even if it is proven that P ≠ NP, it does not ensure the safety of your key. However, even if ECDSA is cracked, it does not mean P = NP, nor will it lead to an easy resolution of all other difficult problems.
The real threat to Bitcoin comes from quantum computing, not the “P vs NP” problem. On sufficiently powerful quantum computers, the Shor algorithm is already able to crack elliptic curve keys. Although such hardware does not currently exist, estimates of the scale of quantum computers required to achieve this goal are constantly being downgraded.
Researchers at Google have released new resource estimates indicating that by 2026, the resources required to crack secp256k1 may be within reach. Because of this, post-quantum signatures are the real topic worth discussing for Bitcoin; this also explains why reusing addresses (thereby exposing public keys) is a terrible habit.
The mathematical origins that Bitcoin relies on
Most experts believe P ≠ NP. In a survey conducted by Bill Gasarch in 2019 among researchers, about 88% of respondents hold this view. Over the past 50 years, despite the smartest brains among humanity continuously trying, they have been unable to find an efficient solving algorithm for even one “NP-complete” problem.
So why is proving this so difficult? To prove P ≠ NP, it means one must prove that there does not exist any efficient algorithm among the infinite possible algorithms (including those that have not yet been conceived by humans). Researchers have even demonstrated that the most commonly used proof techniques are ineffective on such problems. Anyone wishing to solve this conundrum will likely need a new mathematical theory.
Christos Papadimitriou has devoted his life to exploring this field. He has taught at Harvard University, MIT, Stanford University, and UC Berkeley, and is currently the Donovan Family Professor of Computer Science at Columbia University. His three points are particularly important for Bitcoin users:
- He is the author of authoritative works in this field. His textbook "Computational Complexity," published in 1994, remains a must-have textbook for graduate studies in this area.
- He defined the "middle ground," where some problems seem difficult but are not “NP-complete.” Papadimitriou defined a complexity class called “PPAD” for a category of such problems; he, along with Constantinos Daskalakis and Paul Goldberg, proved that the search for Nash equilibria is a “PPAD-complete” problem. This defines complexity that lies between simple and extremely difficult, which is the very complexity that protects your private key.
- He focuses on “incentive” mechanisms. He contributed to building “algorithmic game theory,” which is an area that studies what happens when selfish participants meet algorithms. In short, Bitcoin is game theory plus cryptography.
I met him at Stanford University between 1982 and 1986. This was eight years before his textbook was published and more than twenty years before Satoshi published the Bitcoin whitepaper. The core ideas that ensure Bitcoin’s security were birthed in his office back then.
Can AI crack it?
Not in the short term, but this is no longer an absurd question. In May 2026, an inference model from OpenAI overturned a conjecture about the distances between points proposed by Paul Erdős, which had existed for 80 years. Although human mathematicians improved its results within weeks, the core ideas indeed originated from the machine.
However, the “P vs NP” problem belongs to another level. The case of Erdős’ conjecture involved a clever construction; proving "P ≠ NP" requires demonstrating that something is “impossible,” which is precisely the most difficult theoretical barrier known today to overcome.
This is my personal rough estimation (purely intuitive, not data-based):
- AI solving the “P vs NP” problem: 1% probability within a year, about 5% within five years, about 15% within ten years;
- AI finding a way to break the elliptic curve signature algorithm: 0.5% probability within a year, about 2%–3% within five years, about 6% within ten years.
Even if this problem is ultimately solved, I still have about 90% confidence that the answer will be “P ≠ NP.” Regardless, for your cryptocurrency holdings, the impact of the “quantum clock” (the threat posed by quantum computing) is far more critical than any of the aforementioned scenarios.
Conclusion
For Bitcoin, the real risk lies in quantum computing, not the “P vs NP” problem. The Shor algorithm is a known and specific attack mechanism for ECDSA and Schnorr signatures. The only thing missing is the hardware, and the scale estimates for the hardware required to implement this attack are continually decreasing.
The risks posed by the “P vs NP” problem are minimal. Even if AI solves the “P vs NP” problem within the next decade (I estimate this probability to be about 15%), I believe the probability that “P ≠ NP” is much higher. Therefore, the likelihood of AI proving “P = NP” is far below 5%, and its possibility of providing a practical algorithm capable of breaking current cryptography is even lower.
Nonetheless, cryptography can evolve. The National Institute of Standards and Technology (NIST) has already standardized “post-quantum” signature schemes like ML-DSA and SLH-DSA. Bitcoin can adopt new signature schemes through “soft forks,” just like how it introduced Schnorr signatures via the Taproot upgrade in 2021.
The real challenge lies not in mathematics but in coordinating efforts, moving assets to new addresses before threats emerge; this is especially important for assets with public keys already exposed on the chain.
Therefore, Bitcoin enthusiasts need not lose sleep over the “Millennium Prize Problem,” but please pay attention to “post-quantum” cryptographic schemes and stop reusing addresses.
免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到[email protected],本平台相关工作人员将会进行核查。



