From the P vs NP problem to quantum computing, how secure is the cryptographic security of Bitcoin?

CN
32 minutes ago

Author: Fred Krueger, Investor

Translated by: Deep Tide TechFlow

Deep Tide Introduction: The most famous unsolved mystery in computer science, the "P vs NP problem," quietly underpins the trillion-dollar security of Bitcoin assets. From block hash verification to elliptic curve signatures, the operation of the Bitcoin network every ten minutes essentially leverages the computational asymmetry of "verification is extremely easy while solving is extraordinarily difficult."

Stanford PhD Fred Krueger, a student of computational complexity pioneer Papadimitriou, analyzes in depth the essential differences between polynomial time and real-world decryption. In his view, compared to the distant endgame of the P vs NP theory, the quantum computing driven by Shor's algorithm is the true potential threat, and the Bitcoin ecosystem must proactively lay out plans for quantum-resistant upgrades.

Introduction: Core Summary

Core Summary: The P vs NP problem explores whether every problem that can be easily verified can also be easily solved. Bitcoin operates on this vast chasm of difficulty: verifying a block or a signature is instantaneous, while finding a valid random number (Nonce) or reversing a private key is virtually an impossible task in terms of computational power. Although the majority of experts in the academic community bet that P does not equal NP, this does not mean that your private key is absolutely secure.

The discrete logarithm problem faced by ECDSA signatures is not NP-complete, and its security relies on its own mathematical assumptions. Moreover, the theoretical notion of "polynomial time" does not directly equate to practical feasibility. For your Bitcoin, the real-world threat is quantum computing. The probability that AI will prove P = NP in the short term is less than 5%. Regardless, cryptography continues to evolve, and Bitcoin can similarly upgrade its signature algorithms through soft forks.

What P and NP Actually Mean

Before diving deeper, we need to clarify the true meanings of P and NP:

• P Problems: The set of problems that computers can solve in a short amount of time (in polynomial time).

• NP Problems: The set of problems that computers can verify a candidate answer for correctness in a short amount of time.

The "short amount of time (fast)" here has a very rigorous mathematical definition: as the problem size increases, the computational work required to solve it grows only at a smooth and controllable rate (for example, doubling or growing quadratically). It will never explode exponentially, as with guessing a 256-bit private key, because under exponential growth, every additional bit of length directly doubles the workload.

Clearly, any problem that you can solve quickly, you can also verify its correctness quickly, so all P problems belong to NP problems. The million-dollar millennium prize problem that has troubled humanity for half a century is whether the reverse is also true: does every NP problem hide a yet-to-be-discovered fast solving algorithm (i.e., does P equal NP)?

We can understand this through four intuitive examples:

1. Organize your UTXO by denomination: Verification is easy, solving it is equally quick. This problem is in P.

2. Solving a super-large Sudoku puzzle: Verifying if the answer is correct only requires a glance, but no known fast solving algorithm exists at the moment.

3. Finding a valid Bitcoin block Nonce: Verification requires just one SHA-256 hash computation, but finding it demands a massive computational effort from global miners in their exhaustive search.

4. Reversing a public key to find a private key: Verification only requires one scalar elliptic curve multiplication, while finding the private key is impossible to complete quickly with known mathematical tools.

Supplement: Classic Turing Machine Definition in Textbooks

In classic computer science textbooks, P and NP are defined using the theoretical computational model of the Turing machine:

• P is the set of problems that a deterministic Turing machine can solve in polynomial time, meaning it takes at most nᵏ computational steps for an input of size n. A deterministic Turing machine has a uniquely determined next operation at each step.

• NP is the set of problems that a nondeterministic Turing machine can solve in polynomial time. This theoretical machine has the superpower to split at every step into all possible branches; you can also think of it as a magical machine that always "guesses the answer" correctly. As long as any computation branch finds a definitive answer, the entire machine outputs "true."

Imagine a "nondeterministic Bitcoin miner": it doesn’t need to exhaustively search through enormous Nonces one by one, but rather instantly guesses the perfect Nonce that can produce a block, then takes a few microseconds to verify it. Of course, such a physical machine does not exist in the real world.

These two definitions actually describe the same class of problem sets. The "lucky guess" on the winning branch is essentially a mathematical proof that anyone can quickly check. Thus, "solved by a lucky guesser" and "easily verifiable" are mathematically equivalent.

From this perspective, the core of the P vs NP discussion is whether a regular computer can always perfectly simulate that kind of "always lucky" guessing luck while only incurring polynomial-level time costs. If it must blindly traverse every branch, the computational cost will be an alarming exponential.

Two very common cognitive confusions need to be clarified:

• The N in NP stands for "Nondeterministic," not "Non-polynomial";

• Quantum computers are not nondeterministic Turing machines. Quantum computation cannot magically guess the answer for free; the academic community generally believes that quantum computers also cannot quickly solve NP-complete problems.

Why Bitcoin Players Should Pay Close Attention

To date, no one in the world knows whether P equals NP. Since the problem was formally posed in 1971, it has remained unresolved for more than half a century and is one of the seven Millennium Prize Problems established by the Clay Mathematics Institute, offering a $1 million reward for a strict proof.

If you are running a Bitcoin full node, then every approximately ten minutes, you are genuinely living in the real projection of this core question.

免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到[email protected],本平台相关工作人员将会进行核查。

Share To
APP

X

Telegram

Facebook

Reddit

CopyLink