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.

