从P vs NP到量子计算,比特币的加密安全究竟有多稳固?

Bitcoin's cryptographic security: P vs NP, ECDSA and the quantum threat

BroadChainBroadChain11/30/2026, 10:051.0K2 min read
Generated by AI LLM & MCPAI LLM · MCP

比特币加密安全依赖P≠NP假设,但真正现实威胁来自量子计算而非AI证明P=NP,生态需提前布局后量子升级。

This content has been translated by AI (LLM & MCP).

  Bitcoin's trillion-dollar security rests on the P vs NP problem, the most famous unsolved question in computer science. Every ten-minute block cycle depends on an asymmetry of computation: verification is easy, solving is hard.

  Fred Krueger, a Stanford Ph.D. who studied under complexity theorist Christos Papadimitriou, argues that the gap between polynomial time and real-world cryptanalysis is what matters. Verifying a block or signature is instant; finding a valid nonce or reversing a private key is computationally infeasible.

  Most academics bet that P does not equal NP, but that does not make private keys invulnerable. The discrete logarithm problem behind ECDSA is not NP-complete; its security rests on its own assumptions, and theoretical polynomial time does not equal practical feasibility.

  Krueger puts the odds of AI proving P = NP in the near term at under 5%. The more tangible threat is quantum computing via Shor's algorithm, and he says the Bitcoin ecosystem should prepare post-quantum upgrade paths. Cryptography keeps evolving, and Bitcoin can upgrade signature algorithms through soft forks.

  P problems are those a computer can solve quickly, in polynomial time. NP problems are those whose candidate answers can be verified quickly. All P problems sit inside NP; the million-dollar question is whether the reverse holds.

  Four examples illustrate the divide: sorting UTXOs by denomination is easy to verify and easy to solve (P); a huge Sudoku is easy to verify but has no known fast solver; finding a valid block nonce takes one SHA-256 check to verify but global miners brute-force it; and deriving a private key from a public key takes one scalar elliptic curve multiplication to check but is not quickly reversible with known tools.

  In textbook terms, P is what a deterministic Turing machine solves in polynomial time, at most n^k steps for input size n. NP is what a nondeterministic Turing machine solves in polynomial time, a theoretical machine that branches into all possibilities at once or always guesses right. A hypothetical nondeterministic Bitcoin miner would guess the perfect nonce instantly and verify it in microseconds; no such physical machine exists.

Comments

Comments are filtered for spam and abuse. Approved comments earn points per site rules.

Sign in to leave a comment. Submissions are checked automatically and may be reviewed by editors.

BroadChain

Subscribe to Daily Newsletter

Get the latest Crypto market updates and signals first