PQ chain wiki · Builder's guide · Hardware trend · About

confidence: medium

Hash Functions

What it is

A hash function turns any input into a short, fixed-size digest. Finding two inputs with the same digest is a collision. Finding an input that gives a chosen digest is a preimage.

Chains use hashes in many places:

Hash-based signatures and many proof systems, such as STARKs (hash-based zero-knowledge proofs), rely on nothing but hashes.

The standard families are SHA-2 spec-fips-180-4-sha2 and SHA-3 (Secure Hash Algorithm 3) spec-fips-202-sha3.

Quantum computers hurt hashes much less than they hurt RSA or elliptic-curve keys. Even so, a hash's real security depends on how it is used, which proof model backs it and how it is implemented. Mining by hash is still flagged as a long-term concern eprint-2026-1526.

Related topics: threat-model, quantum-resource-estimates, sig-hash-based, sig-stateful, zk-proofs, cryptanalysis, implementation-sidechannel, bitcoin-migration.

State of knowledge

Standards and design

Generic quantum attacks

Grover and the size of the threat

Collisions and preimages

Hybrid attackers and cost models

Differential attacks

Sizing advice

Security of hash constructions

Sponge (the design behind SHA-3)

Merkle-Damgård (MD, the design behind SHA-256 and SHA-512)

Proof models: random oracle and quantum random oracle

Limits of the models

Fiat-Shamir (turning interactive proofs into signatures)

Domain separation and KEMs (key encapsulation mechanisms, see kem)

Hash-based signatures

Foundations

Limits and weaknesses

Swapping the hash

Smaller and new designs

Signatures from symmetric primitives

Cryptanalysis of specific hashes

Broken or weakened designs

Reduced-round and dedicated attacks

Grover cost estimates

Implementation, side channels and hardware

Side-channel and fault attacks

Performance and hash choice

Hardware designs

Hashes inside proofs and commitments

Foundations

Proof systems

Circuit-friendly hashes

Other uses

Proof of work

Hashes in chain protocols

Hash-only chain designs

Ethereum (see ethereum-migration)

Consensus and randomness

Hiding keys behind hashes (see wallets-keys)

Numbers worth knowing

Quantum attack costs | Item | Value | Source | |---|---|---| | SHA-256 under Grover | 128 bits | arxiv-2508.21548 | | SHA-256 under Grover (alternative table) | 85 bits | arxiv-2501.11798 | | Preimage / collision cost, quantum | 2^(λ/2) / 2^(λ/3) queries | arxiv-2006.10972 | | Quantum vs classical collision queries | Theta(N^{1/3}) vs Theta(N^{1/2}) | eprint-2024-360 | | Quantum collision search time | about 2^(2n/5) | eprint-2017-847 | | Multi-target preimage search time | about 2^(3n/7) | eprint-2017-847 | | Collision queries, min-entropy k | Omega(2^(k/3)) | eprint-2017-688 | | Max quantum-usable trail probability | 2^(-2n/3) | eprint-2020-213 | | AES-MMO quantum trail | 7 rounds, 2^-80 | eprint-2020-213 | | SHA-256 preimage attack qubits | 14 million physical, 2402 logical | arxiv-2508.17296 | | SPHINCS+-128-Haraka Grover forgery | about 1.5·2^90 cycles, about 2.03·10^6 physical qubits | eprint-2021-1484 | | SHAKE-256 Grover forgery | 1.6·2^84 cycles, 8.65·10^6 qubits | eprint-2021-1484 |

Construction bounds | Item | Value | Source | |---|---|---| | Plain sponge preimage bound | min{n, max{n-r, c/2}} bits | eprint-2025-963 | | Keccak-800 / Keccak-1600 max preimage resistance | 512 / 1024 bits | eprint-2025-963 | | MD quantum consistency bound | O(q_s^{3/2}/2^{n/2}) | eprint-2026-1347 | | Ascon AEAD post-quantum bound | about min(2^(c/3), 2^(κ/3)) queries | eprint-2025-1059 | | Sponge collision length, constant probability | 3 blocks | eprint-2026-2695 | | SHA-256 / SHA-512 digest | 256 / 512 bits | spec-fips-180-4-sha2 | | SHA-3 permutation width, rounds | 1600 bits, 24 | spec-fips-202-sha3 |

Proof of work | Item | Value | Source | |---|---|---| | Bitcoin PoW quantum security parameter | 75 | arxiv-1902.02332 | | Quantum query worth in PoW | O(p^-1/2) | eprint-2019-1150 | | Settlement wait factor | O(p^-1/6) | eprint-2019-1150 | | Best Grover run length for a peaceful miner | about 16 minutes | arxiv-2110.00878 |

Hash-based signature security | Item | Value | Source | |---|---|---| | XMSS / XMSS^MT multi-target loss | 10 / 39 bits | eprint-2021-845 | | SHA-256 multi-target attack, 2^64 signatures, messages up to 4 GiB | about 2^166 (nominal 2^256) | eprint-2026-2635 | | Same attack, formal maximum message length | about 2^156 | eprint-2026-2635 | | SHA-256/192 digest matching, 2^64 signatures | about 2^153 (39-bit loss) | eprint-2026-2635 | | SPHINCS+ SHA-256 category-five attack | about 40 bits lost | eprint-2022-1061 | | WOTS-Tree quantum forgery resistance | 57.9 bits | eprint-2026-374 | | FORS adaptive security, one message | 75 bits (DFORS: 150) | eprint-2020-564 | | MFC draft forgery bound | below 2^-129 | eprint-2017-553 |

Signature and proof sizes | Item | Value | Source | |---|---|---| | SLH-DSA-128s signature | 7856 B | arxiv-2608.22924 | | SPHINCS / Gravity-SPHINCS signature | 41 KB / about 30 KB | eprint-2017-933 | | BGS-CC signature (128-bit, Q=2^24) vs ML-DSA-44 | 2,228 vs 2,420 bytes | eprint-2026-2502 | | CUTS signature | 1424 bytes | eprint-2026-2455 | | CAPSS-Anemoi signature | 9.5 to 15.5 KB | eprint-2025-061 | | Magnetar proof | about 600 KiB | eprint-2026-2423 | | SHA-256 preimage proof in Ligero | roughly 35KB | eprint-2022-1608 | | SmallWood+ vs best previous, 1 Keccak permutation | 18 KB vs 29 KB | eprint-2026-2880 | | SmallWood+ vs best previous, 100 Keccak permutations | 63 KB vs 127 KB | eprint-2026-2880 | | Hash openings per record in RecHash | 2048 bytes | arxiv-2610.40507 | | On-chain footprint, CSV chain | 3 × 32 bytes | arxiv-2609.32015 | | Digest/signature shortening by mining | 5%-12% | eprint-2022-1581 | | FRI query overhead above Johnson bound | about 2x | eprint-2026-858 | | Unruh transform overhead | 1.6x | eprint-2017-279 |

Speed | Item | Value | Source | |---|---|---| | Flock SHA-256 proving, one core | 42k compressions/s | arxiv-2607.27491 eprint-2026-1329 | | BinarySpartan SHA-256 proving | 401,000 hashes/s | eprint-2026-1656 | | SPHINCS+-128f-simple with SHA-NI | about 70% faster | eprint-2022-1726 | | SPHINCS+ on AArch64 | up to 1.89x | eprint-2022-1243 | | SHAKE absorb / squeeze speedup (RTL simulation) | 79-83x / 105-116x | eprint-2026-2932 | | Vector Keccak core-area cost | 2.29% | eprint-2026-2932 | | SLH-DSA-SHAKE-128f signing, four atoms | 3.68 ms | eprint-2026-3086 | | SLH-DSA signing speedup on FPGA | up to 8.6x | eprint-2026-837 | | XMSS accelerated sign / verify | under 10 ms / under 6 ms | eprint-2018-1225 | | Threshold XMSS online signing | 0.69 s | eprint-2026-2360 | | Falcon-512 verify, AVX-512 | 3.6 µs | eprint-2026-1539 |

Attacks on implementations | Item | Value | Source | |---|---|---| | SLH-DSA CPA attack | 280 to 559 signatures | eprint-2026-2584 | | CPA key-generation full recovery | 11 of 18 cases | eprint-2026-2753 | | CPA traces per seed / seeds tested | 5,000 / 30 | eprint-2026-2753 | | Keccak fault-injection success | 89.5% | eprint-2024-1522 |

Open questions / disagreements

Do hashes need action at all?

How much margin is there?

What does a quantum collision cost?

Is MD or the sponge more robust?

SHA-2 or SHA-3?

How much are ROM and QROM proofs worth?

Do proofs and parameters hold up?

Hash-based signatures: practical or not?

Proof-system soundness

Algebraic and circuit-friendly hashes

PoW

Evidence quality

What it means for our chain

Hash choice and sizing

Hash-based signatures

Implementation

Proofs

Consensus

See also sig-aggregation-size, benchmarks, hybrid-schemes, standards-policy, survey.

Merge note: one claim from the inputs was dropped. It said a generalized sponge can be safely instantiated over large prime fields, and its source id (eprint-2025-911) is not on the allowed list.