What is Shor’s algorithm?
Shor’s algorithm is a quantum method, described by Peter Shor in 1994, that factors large numbers and computes discrete logarithms in polynomial time. A large enough quantum computer running it would break RSA and elliptic-curve signatures such as ECDSA.
Also called Shor algorithm or Shor’s factoring algorithm.
What it does
Factoring a large number into primes, and finding a discrete logarithm, are problems that classical computers solve with methods that become impractical as the numbers grow. Shor showed that a quantum computer can solve both in polynomial time, so the number of steps grows only as a polynomial in the size of the input.
What it means for RSA and elliptic curves
- RSA rests in part on the difficulty of factoring the published number n, so Shor’s algorithm breaks RSA once a machine is large enough.
- Elliptic-curve signatures rest on the discrete logarithm problem on the curve, and Proos and Zalka described in 2003 how Shor’s method applies to it.
- NIST says that key exchange and signatures based on factoring and discrete logarithms, over finite fields and over elliptic curves, would be at risk if large-scale quantum computers are ever realized.
What it means for ECDSA keys
An ECDSA key pair is a private number and a public point on the curve. A signature proves that the signer knows the private number, and anyone can check it against the public point. Shor’s algorithm recovers the private number from the public point, so a public key visible on the chain is exposed to any machine that can run the algorithm.
In Redacted
In bunker mode, notes, proofs and signatures are built with no elliptic curves and no lattices, so the curve math that Shor’s algorithm breaks is not part of them.
Bunker mode →Related terms
Sources: Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer, Peter Shor, 1994 · Shor’s discrete logarithm quantum algorithm for elliptic curves, John Proos and Christof Zalka, 2003 · FIPS 204, Module-Lattice-Based Digital Signature Standard, NIST, 2024
Updated November 1, 2026. All terms