AI has been making fast progress in mathematics lately and has solved many hard math problems this year (2026). Many people have started to worry that cryptographic algorithms will be broken by AI, and some even think AI may prove P=NP.
Friends have been asking me lately whether they should sell crypto and buy gold.
This post is a short summary of my thinking. It is only my personal view. It may be wrong, and it is not investment advice.
Chinese version: https://sites.google.com/site/zhiniangpeng/blogs/gold-vs-crypto
## P=NP is most likely false
Most people in academia lean toward P≠NP, and so do I. In an informal poll published by Gasarch in 2019, 109 of 124 respondents (88%) believed P≠NP. The sample is small and only shows a rough tendency. Another reason often given is that, in more than fifty years, nobody has found a polynomial-time algorithm for any of the thousands of known NP-complete problems. Of course, the question itself remains unproven.
If AI does settle this question, the mainstream expectation is that the answer will be P≠NP. In that case the impact on crypto should be small.
Even if P=NP were proven, it would not necessarily mean cryptographic algorithms can be broken. A proof might only show that an algorithm exists without giving it. And even if it gives one, the algorithm may come with a constant on the scale of the end of the universe, so it may not be runnable in practice.
Personally, I doubt a truly efficient algorithm will appear within the next 50 years. If that day does come, most of today's cryptography would be hit, and many problems in mathematical proof and engineering design might become automatically solvable. The impact would reach far beyond crypto, and I cannot picture what that world would look like.
## The more realistic risks: quantum computers and AI
In my view, two risks to ECDSA deserve more attention.
One is quantum computers. In theory Shor's algorithm breaks ECDSA. According to public reports, the largest experiment this year broke a 15-bit elliptic curve key, while Bitcoin and Ethereum use 256-bit keys. The gap is narrowing, and faster than many expected. The good news is that progress in quantum computing is largely public, and post-quantum signature standards have already been published.
The other is AI designing a new attack algorithm. This risk is harder to judge. In public research, the elliptic curve discrete logarithm problem has seen no fundamental breakthrough in forty years, but that is experience, not proof. AI once broke a cryptographic scheme I designed myself in 20 minutes, so I do not dare underestimate it. I cannot tell whether or when this will happen, and it could come suddenly.
However, both risks target algebraic structures such as elliptic curves, so the response points in roughly the same direction: move to signature schemes that do not rely on such structures. The new schemes rest on assumptions too, just fewer of them. I choose to believe that human ingenuity and technology can find a way before that day comes.
## Blockchains can upgrade
There is a result in cryptography: as long as one-way functions exist, secure signature schemes can in theory be built, with no need for elliptic curves. Hash-based signatures are such schemes, and it's security is soly based on one-way functions which AI probably cannot break them all. This direction is already on Ethereum's roadmap: the consensus layer is planned to move to hash-based signatures, and user accounts are planned to switch signature algorithms through account abstraction. All of this is still in research and discussion.
If a breakthrough comes suddenly, the community has also discussed an emergency approach: a hard fork disables the old signatures, most users prove ownership of their addresses with their seed phrases, and then migrate to the new scheme. Nothing like this has ever been tried for real, so it is hard to say how well it would work.
Migration has a cost. Signatures get larger, old addresses whose private keys are lost cannot migrate, and in a sudden break some losses may be unavoidable. But I think the blockchain itself can carry on.
Crypto would not be the only thing affected either. Online banking and HTTPS also rely heavily on the same family of algorithms and face the same migration problem.
I choose to trust the community and human initiative.
## Gold's scarcity may not be eternal either
Gold has served as a store of value for thousands of years, and crypto cannot match that record. But scarcity is to a large extent a matter of cost, and technology can change cost.
Cowrie shells were once used as money in many parts of the world. As trade and shipping made them easy to get in large quantities, they stopped being scarce and lost that role. Aluminum is a similar story: in the mid-19th century it was for a time more expensive than gold, and after electrolysis arrived it gradually became an ordinary metal.
I do not know whether gold will go the same way, but it cannot be ruled out. Turning other elements into gold through nuclear reactions was done in an accelerator back in the 1980s, and in 2025 a fusion company published a paper on using fusion neutrons to turn mercury into gold. All of this is still far from practical, but it suggests the obstacle is cost rather than principle. Add deep-sea and space mining, and in an age where AI accelerates technology, a sharp drop in the cost of gold is not impossible.
In my view, making gold cheap through technology may well be easier than proving P=NP and finding an efficient algorithm.
## Closing
Gold's value rests to a large extent on the assumption that nobody can cheaply get more gold. If technology changes that one day, gold itself has little room to adjust.
Trust in crypto rests on mathematics and technology, and it is also the product of a community and of human intelligence. If an algorithm fails, there is a chance to replace it. If a protocol has a problem, there is a chance to upgrade it.
Each has its own assumptions and its own risks. Seen this way, blockchains are alive and gold is dead. That is why I am still bullish on crypto in the age of AI.