Skip to content
← QuantumScan
Blog
Critical riskScanned 2026-05-29

Bitcoin Core — Post-Quantum Cryptography Analysis

bitcoin/bitcoin|C++|1820 files scanned|143 vulnerable

Bitcoin's security model depends entirely on secp256k1 ECDSA for transaction signing and Schnorr signatures (Taproot). Both are broken by Shor's algorithm. A quantum computer with ~4000 logical qubits could derive a private key from a public key, enabling theft of any exposed address. ~4 million BTC in p2pk outputs expose public keys directly. SHA-256 (mining) reduces to 128-bit security under Grover's but remains viable longer.

89
/ 100 risk score
Critical risk
Critical findings2
High findings1
Medium findings1
Low findings0

Findings

criticalsecp256k1 ECDSA
src/secp256k1/src/secp256k1.c

Used for ALL transaction signatures. Shor's algorithm derives private key from exposed public key. P2PK and P2PKH outputs that have been spent expose public keys.

PQC →ML-DSA-44 or SLH-DSA-128s for transaction signing. Requires consensus change (BIP).
criticalSchnorr / Taproot (secp256k1)
src/script/interpreter.cpp

Schnorr signatures on secp256k1 are equally quantum-vulnerable to ECDSA — same underlying discrete-log assumption.

PQC →PQC-Taproot via BIP draft. SLH-DSA provides hash-based signatures with conservative security.
highECDH (BIP-32 HD wallets)
src/key.cpp

BIP-32 child key derivation uses ECDH. Quantum attacker can derive all HD wallet keys from xpub.

PQC →ML-KEM-768 for key derivation. Requires wallet-level BIP.
mediumSHA-256 (Proof of Work)
src/crypto/sha256.cpp

Grover's algorithm provides quadratic speedup: effectively 128-bit security post-quantum. Mining advantage exists but doesn't break consensus.

PQC →No migration needed short-term. SHA-256 is quantum-resistant for PoW purposes.

Compliance note

Bitcoin's quantum risk is the most extensively studied in cryptography. The IETF, NIST, and BIS have all flagged secp256k1-based systems as requiring migration. The Bitcoin network would require a hard fork to adopt PQC — the lead time for consensus is measured in years, not months.

Is your codebase using any of these algorithms?

QuantumScan checks your repo in ~90 seconds. Free. No account needed. Supports GitHub, GitLab, Bitbucket, and ZIP uploads.

Run a free scan →

More analyses

GnuPG 86/100Bitwarden 58/100HashiCorp Vault 73/100python-ecdsa 95/100GnuTLS 78/100