Yes. Quantum computers only speed up attacks on SHA-256 through Grover's algorithm, which cuts preimage resistance from 256 to about 128 bits, still out of reach. Collision attacks don't get a useful practical speedup either. For Bitcoin that means mining, block hashes and address hashes are safe; the quantum risk is to elliptic-curve signatures.
SHA-256 vs a quantum computer
| Property | Classical | Quantum (best known) | Verdict |
|---|---|---|---|
| Preimage (find an input for a hash) | 2256 | ~2128 with Grover | Safe |
| Collision (find two inputs with the same hash) | 2128 | No practical speedup | Safe |
| Mining (find a hash below a target) | Brute force | Quadratic speedup, but quantum hardware is far slower and costlier | Not a threat |
What it means for Bitcoin
- Mining: Grover's algorithm gives a quadratic speedup, but each quantum step is orders of magnitude slower than an ASIC hash. Quantum mining is not a credible threat.
- Addresses: legacy addresses use HASH160 (SHA-256 then RIPEMD-160). Grover could in theory search 160-bit hashes in about 280 steps, but each step involves deriving a key pair, and the steps can't be parallelised efficiently. This is far harder than simply attacking an exposed public key.
- Signatures: this is the weak point. Shor's algorithm (1994) breaks ECDSA and Schnorr outright. See can quantum computers break Bitcoin?
Frequently asked questions
Can a quantum computer reverse a Bitcoin address to get the public key?
Not in practice. That would be a hash preimage attack, which Grover's algorithm only speeds up quadratically. That's why never-spent addresses keep your public key safe.
Is SHA-3 more quantum resistant than SHA-256?
Both are considered quantum safe at the same output size. SHA-3 was chosen for design diversity, not because SHA-256 is weak.