Rankings / Learn / Shor's vs Grover's Algorithm: What Each Means for Crypto
Guide

Shor's vs Grover's algorithm: what each one means for crypto

By John Ho, QDay Index · Updated December 4, 2026

Two quantum algorithms come up in almost every discussion of crypto and quantum computers: Shor's and Grover's. They are often mentioned together, but they do very different things. Shor's algorithm would break the keys that prove who owns a coin. Grover's algorithm would only make brute-force guessing faster, which weakens hashing and mining a little rather than breaking them. This page explains the difference without maths and what it means for a holder. Sources were read on 4 December 2026. It is general information, not financial advice.

The short version

  • Shor's algorithm breaks the maths behind RSA and elliptic-curve keys. That covers the signatures almost every blockchain uses today, such as ECDSA, Schnorr and Ed25519.
  • Grover's algorithm gives a square-root speed-up on blind search. It weakens hash functions such as SHA-256 and ciphers such as AES, but standard sizes stay usable.
  • That is why the quantum risk for crypto sits in wallet and validator signatures, not in mining or in hashing.
  • Hash-based signatures rely only on hash functions, so they avoid the part Shor's algorithm breaks. Their cost is larger signatures, and for some schemes careful key management.
  • No quantum computer today can run either attack against real crypto keys or hashes. See what is a quantum computer.

Two algorithms, two kinds of problem

Peter Shor published his algorithm in 1995. His paper gives efficient methods, on a large enough quantum computer, for two problems: factoring large numbers and computing discrete logarithms. Ordinary computers are believed to need an impractically long time for both, and that difficulty is what public-key cryptography relies on.

Lov Grover published his algorithm in 1996. His example is finding one name in an unsorted list of N entries. An ordinary computer needs about N/2 lookups on average; Grover's method needs about the square root of N steps. It works on any problem where the only way forward is to try answers until one fits, but it does not find a shortcut through the maths.

The difference in scale is the whole story:

NIST's 2016 report on post-quantum cryptography sums it up in one table. RSA, ECDSA, ECDH and DSA are marked "no longer secure" against a large quantum computer. AES needs larger keys, and the SHA-2 and SHA-3 hash functions need larger outputs.

Where Shor's algorithm hits crypto

Most blockchains prove ownership with elliptic-curve signatures. Bitcoin uses ECDSA and Schnorr on the secp256k1 curve. Ethereum accounts use ECDSA on the same curve, and its validators use BLS signatures. Many newer chains use Ed25519. All of these rest on the discrete logarithm problem, which is exactly what Shor's algorithm solves.

In practice that means:

How big a machine would it take? Google Quantum AI and co-authors estimated in March 2026 that breaking a 256-bit elliptic-curve key could take under 1,450 logical qubits, or fewer than half a million physical qubits on superconducting hardware, running in minutes. No machine of that size exists. Our Q-Day estimates compared puts this beside other estimates.

Where Grover's algorithm hits crypto

Hashing is everywhere in a blockchain: in mining, in addresses, in linking blocks together and in Merkle trees. Grover's algorithm affects all of it, but only modestly.

The NCSC reaches the same view: symmetric cryptography and hash functions such as SHA-256 are not significantly affected by quantum computers.

Why is Grover's speed-up smaller in practice than on paper? NIST's FAQ gives two reasons. Quantum hardware is likely to cost more to build and run than ordinary hardware. And the full speed-up needs every step to run one after another, so splitting the search across many machines gains less than it would for an ordinary search.

Why hash-based designs are the safer part

Because Grover's algorithm only weakens hashes, anything that depends on hashes alone keeps a large safety margin. Two consequences matter for crypto.

There are trade-offs. Hash-based signatures are large: the smallest SLH-DSA parameter set in FIPS 205 produces 7,856-byte signatures, against 64 bytes for a Bitcoin Schnorr signature under BIP-340. Stateful schemes such as XMSS add a rule: NIST says each one-time key must never sign more than one message, so the wallet has to keep count. QRL is built on XMSS, which its homepage describes as the scheme securing the network. The hash-based schemes page lists the chains we track that use XMSS, WOTS+ and similar schemes.

Lattice-based schemes such as ML-DSA and Falcon are the other main family of replacements. They are not hash-based, but they are not built on the problems Shor's algorithm solves either. Post-quantum signatures explained compares both families, and NIST's standards explained for crypto covers which ones are finished.

A quick map: which algorithm hits what

What this means for a holder

Sources

Get the monthly Quantum Readiness Report
Score changes, new upgrades and on-chain exposure data. One email a month.

General information, not financial or security advice. Spot an error? Email [email protected].