P vs NP, VP vs VNP — Is Cryptography in Danger?

Episode 3 — What mathematical breakthroughs actually mean for the security of our digital world.

P vs NP, VP vs VNPIn the first two episodes of this series, we explored two fundamental questions in computational complexity:

  • P versus NP
  • VP versus VNP We discovered that both questions concern the existence and limitations of efficient computational shortcuts, although within different mathematical models.

But why should anyone outside mathematics and computer science care?

Because much of our digital world relies on the assumption that certain computational shortcuts do not exist — or at least have not been discovered yet.

Welcome to the world of cryptography.

Easy in one direction, difficult in the other

Imagine two prime numbers:

17 and 23.

Multiplying them is easy:

17 × 23 = 391

Now imagine that I give you only the number 391 and ask you to find the two prime numbers that produce it.

That is a different task.

With small numbers, this is relatively straightforward. With sufficiently large numbers, the computational effort increases dramatically.

The mathematical problem is called integer factorization, and its computational difficulty is fundamental to the security of RSA.

Other cryptographic systems rely on different mathematical problems, but many share the same basic principle:

A calculation should be easy to perform in one direction and practically infeasible to reverse.

The important word here is practically.

We are not claiming that reversing the calculation is mathematically impossible.

We are assuming that doing so requires more computational resources than an attacker can reasonably obtain.

Security based on an assumption

This may sound somewhat unsettling.

We use cryptography to protect bank accounts, digital identities, confidential communications, software updates and financial transactions.

Yet much of its security rests on mathematical assumptions.

We know how to generate a cryptographic key. We know how to use it. We know how to verify digital signatures.

What we generally cannot prove is that nobody will ever discover a significantly more efficient algorithm for attacking these systems.

Cryptographic algorithms are extensively studied, tested and analyzed.

But decades of unsuccessful attempts to break an algorithm do not constitute a mathematical proof that it cannot be broken.

There is a fundamental difference between:

  • Nobody has found an efficient shortcut.
  • No efficient shortcut can exist. Sound familiar?

This brings us back to P and NP.

What if P = NP?

In Episode 1, we discovered that P = NP would mean that a universal NP-problem solver with polynomial running time exists.

That would have profound implications for cryptography.

Imagine that we have a public key but do not know the corresponding private key.

We can formulate the problem as follows:

Does there exist a private key that produces this public key?

A proposed private key can be checked by calculating its corresponding public key and comparing the result.

The verification is computationally efficient.

If P = NP, appropriately formulated versions of such search problems would also become solvable in polynomial time.

The same principle applies to finding inputs that produce specific cryptographic hash values and recovering keys for conventional encryption systems.

In mathematical terms, P = NP would rule out the existence of conventional one-way functions as defined in complexity-based cryptography.

That would undermine a fundamental assumption behind much of modern cryptography.

But would our digital world immediately collapse?

Not necessarily.

Polynomial time does not mean fast

In Episode 1, we learned that the following computational complexities are all polynomial:

n², n³, n¹⁰, n¹⁰⁰

The distinction between polynomial and exponential growth is fundamental to complexity theory.

But a computer does not care how a mathematician classifies an algorithm.

It cares how many operations it must actually perform.

Consider a hypothetical algorithm requiring exactly n¹⁰⁰ operations.

For an input size of 256 bits, this would amount to approximately:

6.67 × 10²⁴⁰ operations.

An exhaustive search through a 256-bit space, by comparison, involves approximately:

1.16 × 10⁷⁷ possibilities.

Both are beyond practical computational capabilities.

Yet the polynomial algorithm in this example is considerably worse than the exponential search.

This illustrates an important distinction.

A mathematical proof that a polynomial-time algorithm exists does not necessarily provide us with an algorithm that we can execute within a reasonable period of time.

Even a proof of P = NP would therefore not automatically constitute a practical attack on an existing cryptographic system.

What if P ≠ NP?

Would proving P ≠ NP finally allow us to declare our cryptographic systems secure?

Unfortunately not.

P ≠ NP would establish that there are NP problems for which no polynomial-time algorithm can exist.

But it would not tell us that every problem we currently consider computationally difficult belongs to that category.

In particular, it would not establish that integer factorization, elliptic-curve discrete logarithms or cryptographic hash inversion cannot be performed in polynomial time.

There is another important distinction.

P ≠ NP concerns the computational difficulty of problems in the worst case.

Cryptography generally requires something stronger: that problems remain difficult for the kinds of instances and randomly generated keys that attackers actually encounter.

A problem that is extremely difficult in exceptional circumstances but easy in almost all practical cases would make a rather poor foundation for cryptography.

P ≠ NP is a necessary condition for the existence of conventional one-way functions.

It is not sufficient to establish their existence.

So even if someone collects the million-dollar prize tomorrow by proving P ≠ NP, our cryptographic algorithms will still require their own security analysis.

What about VP and VNP?

In Episode 2, we explored Valiant’s conjecture.

Unlike P versus NP, Valiant’s question concerns the fundamental limits of algebraic calculations.

Can every polynomial family defined through a sum of individually efficient contributions be calculated using polynomially many arithmetic operations?

Valiant conjectured that the answer is no:

VP ≠ VNP

What would proving this mean for cryptography?

First and foremost, it would establish that certain algebraic calculations cannot be reduced to polynomially sized arithmetic circuits.

It would establish a computational limitation.

It would not provide an algorithm for breaking cryptographic systems.

Nor would it establish that specific cryptographic problems are computationally difficult.

There are mathematical relationships between algebraic complexity theory and classical computational complexity theory.

But they are not interchangeable.

A proof of VP ≠ VNP is not a proof of P ≠ NP.

And it certainly is not a proof of P = NP.

What about the opposite result, VP = VNP?

That would establish the existence of polynomially sized arithmetic circuits for all VNP polynomial families.

It could have significant implications for computational mathematics and potentially for cryptography.

But again, a direct mathematical connection to a particular cryptographic problem would need to be established before drawing conclusions about its security.

Four possibilities, four different consequences

Let us summarize what we have learned.

P = NP

A universal polynomial-time NP solver exists. This would undermine fundamental theoretical assumptions of modern computational cryptography.

P ≠ NP

No such universal polynomial-time solver can exist. A necessary condition for conventional one-way functions is established, but individual cryptographic systems are not proven secure.

VP = VNP

Polynomially sized arithmetic circuits exist for every VNP polynomial family. Potential cryptographic implications would require further investigation.

VP ≠ VNP

Fundamental limits to efficient algebraic computation exist. The result does not, in itself, establish any weakening of existing cryptographic security assumptions.

Of these four mathematical outcomes, P = NP represents the most direct fundamental theoretical threat to modern computational cryptography.

But there is a fifth possibility.

And it may be considerably more relevant.

Breaking cryptography without solving P versus NP

Imagine that someone discovers a highly efficient algorithm for integer factorization.

RSA could be threatened without anyone having proved P = NP.

Imagine that someone discovers an efficient algorithm for solving the elliptic-curve discrete logarithm problem.

Cryptographic systems relying on elliptic curves could be threatened, regardless of whether P equals NP.

Or imagine someone discovers a significantly more efficient algorithm for finding preimages of SHA-256.

The security properties of systems relying on SHA-256 would have to be reassessed.

None of these discoveries requires a solution to the Millennium Prize Problem.

And none requires a solution to Valiant’s conjecture.

We do not need a universal shortcut to break a particular cryptographic algorithm.

We only need a suitable shortcut for the mathematical problem on which that algorithm depends.

Bitcoin is not RSA

There is another misconception worth addressing.

Cryptography is not a single mathematical algorithm.

RSA relies on mathematical problems related to integer factorization.

Bitcoin uses elliptic-curve digital signatures, including ECDSA and Schnorr signatures, as well as cryptographic hash functions such as SHA-256.

These mechanisms serve different purposes.

Digital signatures authorize transactions.

Hash functions are used in transaction processing, blockchain structures and proof of work.

An efficient integer factorization algorithm would therefore not automatically compromise Bitcoin.

Even discovering a weakness in SHA-256 would not necessarily have the same consequences for every application of that hash function.

Finding two inputs that produce the same hash, for example, is a different problem from finding an input that produces a specific hash.

When someone claims that a mathematical discovery threatens cryptography, the first questions should be:

Which algorithm?

Which security property?

And what is the actual computational cost of the attack?

Without answers to those questions, it is difficult to assess the significance of the discovery.

Enter artificial intelligence

In November 2026, Anthropic and OpenAI published proposed proofs of Valiant’s conjecture, VP ≠ VNP.

If confirmed, these results represent a remarkable achievement for artificial intelligence and mathematical research.

But they have also appeared alongside headlines questioning the future of modern cryptography.

Separate, unconfirmed reports about potentially significant discoveries in cryptographic mathematics have added to the speculation.

These developments need to be evaluated independently.

VP ≠ VNP is consistent with the fundamental premise of modern cryptography: that certain computational problems cannot be solved efficiently. The result does not, in itself, weaken the security assumptions underlying Bitcoin or modern cryptography in general.

What may be changing is not the mathematical difficulty of existing cryptographic problems, but our ability to investigate them.

If artificial intelligence can resolve mathematical questions that have remained unanswered for decades, it may also discover algorithms that humans have overlooked.

That is a legitimate reason to pay attention.

But discovering a proof of computational hardness is not the same as discovering a shortcut that breaks cryptography.

The mathematical achievement and the potential capabilities of the technology that produced it are two different things.

Conclusion

Throughout this series, we have explored the distinction between finding a solution, verifying a solution and finding a more efficient way to perform a mathematical calculation.

We have also discovered that the absence of a known shortcut does not prove that a shortcut cannot exist.

Much of modern cryptography relies on precisely this uncertainty.

Artificial intelligence may change our ability to discover mathematical shortcuts.

Quantum computers may change our computational capabilities.

Future research may invalidate assumptions that we have relied upon for decades.

But none of these possibilities justifies treating every mathematical breakthrough as evidence that cryptography is about to collapse.

To demonstrate a practical cryptographic threat, we need more than a mathematical headline.

We need a relevant mathematical result, an applicable algorithm and a computational cost that makes the attack feasible.

Until then, there is an important distinction between a potential threat and a demonstrated one.

A mathematical breakthrough is not necessarily a cryptographic breakdown.

And with that, we have reached the end of our little journey through computational complexity.

From apples and pears to the security of the digital world.

Not bad for a few cups of coffee.

Further reading and sources