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:
- block links
- Merkle trees (hash trees that commit to many items)
- addresses
- key derivation
- proof of work (PoW, the mining puzzle)
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
- SHA-2 and SHA-3 are both approved. SHA-3 is the permitted alternative for federal use spec-fips-180-4-sha2.
- SHA-3 has four fixed-length hashes and two XOFs (extendable-output functions, which give output of any length). All six are modes of one permutation, KECCAK-p[1600,24] spec-fips-202-sha3.
- SHA-2 and SHA-3 have different designs, so using both hedges against future attacks on either one spec-fips-202-sha3.
- Domain separation (tagging inputs by context) is the general fix for XOF output-length problems spec-fips-202-sha3.
- Bitcoin already uses tagged hashes. These prefix the data with SHA256(tag) twice, so a hash from one context cannot be reused in another spec-bip-0340-mediawiki. Taproot builds its Merkle tree from tagged hashes spec-bip-0341-mediawiki.
- NIST says its security-strength estimates for post-quantum schemes are uncertain, so it uses broad security categories spec-ir-8547-pqc-transition.
Generic quantum attacks
Grover and the size of the threat
- Grover's algorithm (a quantum search method) erodes hash security gradually. Shor's algorithm, which breaks elliptic curves, is a sudden break arxiv-1902.02332.
- Grover roughly halves hash security, so SHA-256 is about 128-bit secure against it arxiv-2110.05321 arxiv-2508.21548 arxiv-2008.04632.
- Grover parallelizes poorly. Splitting the search across K processors costs each one about sqrt(N/K) steps, not sqrt(N)/K arxiv-1902.02332 arxiv-2112.00399.
- Any primitive that gives one-way functions classically also gives a post-quantum one-way function. Hash-level assumptions are therefore the theoretical minimum eprint-2024-2095.
Collisions and preimages
- One survey gives quantum costs of 2^(λ/2) for preimages and 2^(λ/3) for collisions on a λ-bit hash arxiv-2006.10972 arxiv-2607.13235.
- Full-scale quantum collision finding needs Theta(N^{1/3}) queries, against Theta(N^{1/2}) classically eprint-2024-360.
- Attackers with only limited quantum power (NISQ, "noisy intermediate-scale quantum") are weaker than that bound suggests. The paper gives no concrete parameters eprint-2024-360.
- One quantum collision algorithm runs in about 2^(2n/5) time with O(n) quantum memory. Its authors call it the first real quantum time speedup for collisions eprint-2017-847.
- The same paper gives about 2^(3n/7) time for multi-target preimage search eprint-2017-847.
- For random functions whose outputs have min-entropy k, quantum collision finding needs Omega(2^(k/3)) queries. The earlier bound was Omega(2^(k/9)) eprint-2017-688.
- One survey says no known quantum collision attack beats classical attacks on the cost measures that matter arxiv-2112.00399.
Hybrid attackers and cost models
- A hybrid attacker mixes classical and quantum queries. Bounds that count classical queries linearly and quantum queries quadratically help set output lengths arxiv-2311.03723.
- The preimage success probability of such an attacker is bounded by nu_D times (2 sqrt(tau_c) + 2 tau_q + 1)^2 eprint-2023-798.
- Cost estimates depend on the machine model. The RAM, Expensive Memory and VLSI (chip area-time) models give different answers eprint-2022-197.
Differential attacks
- Quantum attacks can use differential trails with probability as low as 2^(-2n/3). Classical attacks cannot use trails that unlikely eprint-2020-213.
- That paper breaks reduced-round AES-MMO and Whirlpool. It concludes that a classically secure hash is not automatically quantum secure eprint-2020-213.
Sizing advice
- For hash-based commitments, one paper asks for 256-bit outputs and a salt at least twice the output length arxiv-2607.13235.
- A stablecoin survey advises migrating public keys before hashes arxiv-2610.02435.
Security of hash constructions
Sponge (the design behind SHA-3)
- The sponge is quantum-indistinguishable from a random function if its inner function is ideal eprint-2019-069.
- The sponge is indifferentiable from a random oracle against quantum adversaries. That bound is loose, but the preimage and collision bounds are tighter eprint-2025-731.
- Quantum one-wayness is proved for the single-round sponge with invertible permutations. Finding zero-pairs needs Omega(2^{n/2}) quantum queries, which matches Grover eprint-2024-414.
- Keyed sponges (Ascon AEAD, KMAC) have proven post-quantum bounds eprint-2025-1059.
- Plain sponges have weaker preimage resistance. Davies-Meyer sponge variants raise it eprint-2025-963.
- Feed-forward sponge variants are no stronger than the standard sponge, and some settings make attacks easier eprint-2026-2998.
- In several cases, differential attacks on Keccak-p feed-forward sponges reach more rounds, or cost less, than the best known SHA-3 attacks eprint-2026-2998.
- With preprocessing, salted sponge hashes admit a three-block collision with constant probability. Merkle-Damgård does not, so the two constructions differ here. This card is abstract-only eprint-2026-2695.
Merkle-Damgård (MD, the design behind SHA-256 and SHA-512)
- MD domain extension is quantum-indifferentiable, using a new recording technique eprint-2018-276.
- Other work says MD is not publicly indifferentiable from a random oracle against quantum distinguishers eprint-2026-128.
- A tight quantum consistency bound for MD exists. The same paper finds a gap in the indistinguishability proof, also present in Zhandry's original proof. Full quantum indifferentiability is therefore not established eprint-2026-1347.
- MD hashes and their XOR and concatenation combiners lose much of their classical margin to quantum attacks eprint-2022-1058.
- Salted MD has quantum time-space bounds that depend on collision length. The older bound ignored this. The two-block bound improves by about a factor of T/B when B is much less than T. The general ST^2B tradeoff remains a conjecture eprint-2026-2694.
Proof models: random oracle and quantum random oracle
Limits of the models
- A proof in the random-oracle model (ROM) does not guarantee a secure real instantiation. This holds even for short-message, memoryless signatures eprint-2003-150.
- Classical ROM proofs do not automatically cover quantum adversaries. They must be redone in the quantum ROM (QROM) eprint-2020-129.
- Classical PRFs (pseudorandom functions) built from PRGs and synthesizers stay secure under superposition queries. In general, though, classical-query security does not imply quantum-query security eprint-2012-182.
- Aborting hash functions can be modelled and mapped back to the standard ROM eprint-2026-016.
Fiat-Shamir (turning interactive proofs into signatures)
- Classical Fiat-Shamir and Fischlin proofs are only known to be secure against classical adversaries eprint-2014-587.
- Fiat-Shamir for Sigma-protocols loses security quadratically in the QROM. A Grover attack shows this is essentially optimal eprint-2020-282.
- Adaptive reprogramming has a tight QROM bound. It gives tighter proofs for XMSS message compression and Fiat-Shamir signatures eprint-2020-1361.
- Hashing order matters: hash the commitment before the message eprint-2025-1846.
Domain separation and KEMs (key encapsulation mechanisms, see kem)
- Deriving several random oracles from one hash is error-prone. Mistakes here led to key-recovery attacks on some NIST PQC KEM submissions eprint-2020-241.
- For Fujisaki-Okamoto (FO) KEM proofs, black-box reductions must lose security quadratically eprint-2019-494. Semi-classical oracles cut the loss factor from q to sqrt(q) eprint-2019-134. Tight QROM conversions also exist eprint-2017-1005 eprint-2024-1607.
- The hash choices inside FO can matter. The ML-KEM-style variant can be uninstantiable in general eprint-2026-2365. Prefix hashing is one studied option eprint-2021-1351.
- Concrete QROM bounds for HMAC and HKDF are now available eprint-2026-2864.
Hash-based signatures
Foundations
- Their security rests only on hash properties spec-sp-800-208-stateful-hbs eprint-2019-1086. An early paper calls quantum resistance likely, not proven eprint-2006-320.
- Their reductions carry over to quantum attackers more cleanly than most arxiv-1409.2187.
- Winternitz one-time signatures (WOTS) are secure from PRFs without collision resistance, with exact reductions eprint-2011-191.
- WOTS+ has a tight standard-model proof. It cuts XMSS+ signatures by more than 50% at 80-bit security eprint-2017-965.
- Lamport and Winternitz one-time signatures are secure under quantum queries to the hash, including "blind unforgeability" arxiv-2103.12448 eprint-2018-1150 eprint-2021-387.
- LMS (Leighton-Micali Signatures) is proven secure in the QROM, within a constant factor of Grover eprint-2017-607. An analysis of the McGrew-Fluhrer-Curcio draft gives forgery probability below 2^-129 in the ROM eprint-2017-553.
- XMSS-T gets tight security from multi-target hash properties, which allows smaller outputs eprint-2015-1256. A newer notion bridges second-preimage and preimage resistance for tight multi-target reductions eprint-2019-492.
- Quantum query bounds exist for the subset-cover problem behind HORS and SPHINCS+. They do not give concrete SPHINCS+ security arxiv-2210.15396 eprint-2022-1474.
- The tight SPHINCS+ proof had a flaw. A repaired proof loses only a factor w eprint-2022-346. An EasyCrypt machine-checked proof confirms the core step for XMSS and SPHINCS+, under the random-oracle assumption eprint-2023-408.
- A forgery in a properly parameterized scheme likely yields a hash collision, which can then serve as proof of the forgery arxiv-1905.12993.
Limits and weaknesses
- In the ROM, signature size has a near-quadratic lower bound in the security parameter eprint-2026-2237.
- Any black-box one-time signature from a random oracle has security at most 2^((1+o(1))q) for q queries eprint-2008-033.
- Accidental key reuse is dangerous. Typical optimized-Lamport and WOTS parameters give no reasonable security after two signatures eprint-2016-1042. Stateful keys must never sign twice spec-sp-800-208-stateful-hbs.
- A multi-target attack lowers the security of XMSS, XMSS^MT and K2SN-MSS. Changing how a PRF is applied in key generation fixes it eprint-2021-845.
- A Kelsey–Kohno variant pools signatures across keys in HSS/LMS (the hierarchical form of LMS) and XMSS. It works because SHA-256's chaining state is narrower than twice the target security. SHAKE256 sets are not affected. Even a key's first signature adds to ecosystem-wide exposure eprint-2026-2635.
- LMS with SHA-256 has forgery attacks on concrete variants, and its proven security is only moderate eprint-2026-2624.
- The SHA-256 SPHINCS+ keyed hash lacks DM-SPR (a second-preimage-style property) at category five. This allows a forgery that cuts about 40 bits of classical security eprint-2022-1061.
- Under adaptive attacks, FORS (the few-time scheme inside SPHINCS+) loses security with each signed message. The authors say SPHINCS+'s claims still stand eprint-2020-564.
Swapping the hash
- The hash can be swapped, for example Streebog in SPHINCS+ arxiv-1904.06525.
- LMS, HSS, XMSS and MT-XMSS can run on SM3 (a Chinese hash) eprint-2022-1491 eprint-2022-1552. K-XMSS and K-SPHINCS+ use Korean hashes, as proofs of concept. Post-quantum security needs a long enough output eprint-2022-152.
- Lightweight NIST-LWC hashes can replace the usual ones in SPHINCS+ and Picnic. The same paper also attacks a SPHINCS+ FORS construction eprint-2021-1298.
- A hash based on SL_n(F_p) walks is proposed for SPHINCS+, with empirical evidence only eprint-2026-221.
Smaller and new designs
- Size-cutting designs: Gravity-SPHINCS eprint-2017-933, v-ORS (one extra hash, cheaper FORS parameters) eprint-2021-1495, SPHINCS-PE eprint-2026-1708, BPORS-C+BFP as a FORS replacement eprint-2026-2374 and BGS-CC eprint-2026-2502.
- CUTS bounds the damage from key reuse in stateful signing eprint-2026-2455.
- Threshold signing (a key shared across parties) cannot treat the hash as a black box eprint-2026-2194. It works with threshold FHE (fully homomorphic encryption) eprint-2026-2360 or MPC-friendly hashes eprint-2025-2290.
- Hash-only blind signatures are early work eprint-2025-2097. A two-round version needs only one-way functions eprint-2026-145.
- Other hash-based signatures exist eprint-2025-055. A survey is a good entry point eprint-2023-411.
Signatures from symmetric primitives
- These signatures prove knowledge of a secret key with a zero-knowledge (ZK) proof. Unruh's QROM transform costs about 1.6x over Fiat-Shamir eprint-2017-279 eprint-2016-1110.
- Banquet uses AES and SHA-3 and takes under 10 ms to sign and verify eprint-2021-068.
- Candidates include FAEST and Lynxer eprint-2026-164 eprint-2026-1099. AES-based hashes can speed up FAEST eprint-2024-1271, and AES-based grinding is a proposed speedup eprint-2026-1625.
- Symmetric ring signatures need hashes with a low AND count eprint-2017-1154. Hash-only ring signatures eprint-2021-1054 and small MPC-in-the-head ring signatures eprint-2021-1656 exist.
- Correlated-GGM-tree signatures (MPC-in-the-head, MPCitH) have a flaw: recovering the first λ witness bits gives full key recovery eprint-2026-615. A salted MQOM variant with a nonzero domain has EUF-CMA proofs, including in the QROM eprint-2026-629.
Cryptanalysis of specific hashes
Broken or weakened designs
- IOTA's custom Curl-P-27 hash had fast collisions, which broke IOTA's old signature scheme eprint-2019-344.
- The CGL Ramanujan-graph hash is broken by the Petit-Lauter-Quisquater attack eprint-2018-593.
- The isogeny-based RM-CGL hash admits a second-preimage attack if the base surface is known eprint-2026-2427.
- AIM2, the algebraic one-way function in AIMer, has weak exponents and falls short of its claimed security. Reused-key and related-key misuse makes the attack practical eprint-2025-2272 eprint-2026-903.
Reduced-round and dedicated attacks
- Meet-in-the-middle attacks give a 4-round classical preimage attack on SPHINCS+-Haraka and a 4-round collision attack on Ascon-Hash eprint-2024-604.
- Reduced-round attacks exist on Ascon-Hash256 in an Ed25519 setting eprint-2025-1259.
- The polynomial method improves preimage attacks on round-reduced Keccak. It also shows that 2 of 3 new Picnic/LowMC parameter sets miss their claimed security eprint-2021-578.
- AI-assisted review found many flaws in new candidates, and found that hash choice strongly affects performance eprint-2026-2266.
- A hybrid hash based on both DLP (discrete logarithm problem) and SIS (short integer solution) is proposed as a hedge against either assumption breaking eprint-2026-1459.
Grover cost estimates
- Grover oracles have been built for AES and LowMC, with costs for the NIST categories. The LowMC estimates were never revised and are likely higher than they need to be eprint-2019-1146.
- There is a qubit- and gate-efficient circuit for SM3 eprint-2021-668.
- Grover forgeries of SPHINCS+-128-Haraka and SHAKE-256 have been costed (see the numbers table) eprint-2021-1484.
- A SHA-256 preimage attack has been costed in qubits arxiv-2508.17296.
Implementation, side channels and hardware
Side-channel and fault attacks
- Power analysis on SLH-DSA-SHAKE signing recovers the secret seed eprint-2026-2584.
- Correlation power analysis (CPA) recovers the seed from SHA-2 SLH-DSA on an STM32F303 chip. The compression-round stages succeed 100% of the time, but full recovery fails under FORS addresses eprint-2026-2753.
- CPU hashing in SLH-DSA leaks SK.seed under side-channel analysis eprint-2024-367.
- Differential power analysis recovered at least 32 bits of a SPHINCS-256 key. XMSS resistance comes down to its PRNG eprint-2018-673.
- A single power trace can be enough to attack Keccak eprint-2020-371.
- Loop-abort faults in Keccak break ML-KEM and ML-DSA in all phases eprint-2024-1522.
- One instruction-skip fault in Keccak-f during squeezing breaks one-wayness. This enables key recovery on six Round-2 NIST signature candidates eprint-2026-619.
- Hardware Keccak cores can be backdoored arxiv-2403.09352.
- Masked hashes target side channels eprint-2026-1129.
Performance and hash choice
- SPHINCS speed depends strongly on the hash, on both x86 and ARM eprint-2017-898. On Cortex-M4, the hash (SHA-256, SHAKE256, Gimli-Hash or Keccak) materially changes LMS and XMSS performance eprint-2020-470.
- Haraka v2 is an AES-instruction hash for short inputs, aimed at SPHINCS and XMSS eprint-2016-098. SPHINCS-Simpira is faster than SPHINCS-256 eprint-2017-645.
- Keccak dominates the cost of hash-based and many lattice signatures eprint-2026-1417 eprint-2026-1539 eprint-2026-1576.
- Hashing large keys and signatures can take as long as signing and verifying arxiv-2010.06571 arxiv-2508.17071.
- SHA-NI plus AVX2 speeds up SPHINCS+ eprint-2022-1726. Keccak and Neon techniques help on AArch64 eprint-2022-1243, and batching hash calls helps on ARM eprint-2026-2351.
- Keccak is optimized for RISC-V eprint-2021-1648 eprint-2024-1198 eprint-2024-1515. A vector Keccak instruction speeds SHAKE greatly, and ML-KEM and ML-DSA moderately eprint-2026-2932.
- Accelerated XMSS has been reported eprint-2018-1225.
Hardware designs
- In hardware KEMs, hashing and encoding dominate cost eprint-2020-1067. The hash is also the bottleneck in an NTRUEncrypt FPGA design eprint-2019-322.
- SHA-3-based sampling saves a lot of energy on the Sapphire lattice processor eprint-2019-1140.
- ASCON or Trivium can replace Keccak/SHAKE in KEMs to save area eprint-2024-1170 eprint-2021-155. A shared SHA-2/SHA-3 core also saves area eprint-2026-1572. The HQC KEM hardware design shares one SHAKE256 core eprint-2026-592.
- Offloading hashes is often limited by data transfer, not by accelerator compute eprint-2023-1767.
- The SLotH accelerator makes SLH-DSA much faster eprint-2024-367. An FPGA accelerator targets the WOTS+ chains and XMSS trees inside SLH-DSA eprint-2026-837.
- A splittable Keccak core speeds up hash chains, but signing gains are small because the processor dominates eprint-2026-3086.
Hashes inside proofs and commitments
Foundations
- Hash-based commitments need no trusted setup and are plausibly post-quantum eprint-2026-1367.
- Soundness proven up to the Johnson bound is safe. Conjectures reaching up to capacity were disproved over large fields eprint-2026-1367.
- FRI, STIR and WHIR have an unconditional soundness bound above the Johnson bound, at about 2x query cost eprint-2026-858.
- Micali's SNARG (succinct non-interactive argument) is secure in the QROM eprint-2019-834. Merkle-based succinct reductions are too eprint-2025-2166.
- Commit-and-open proofs are tightly extractable in the QROM eprint-2021-280 eprint-2022-270.
- Collapsing hashes give post-quantum succinct arguments eprint-2021-334. They can be built from LPN (learning parity with noise, a noisy-linear-equations problem) and other assumptions eprint-2022-678.
- Sequential-work proofs stay secure in the parallel QROM arxiv-2006.10972.
Proof systems
- Ligero needs only a collision-resistant hash and no trusted setup eprint-2022-1608. BooLigero shrinks proofs for SHA-2 and SHA-3 circuits eprint-2021-121.
- SmallWood is a hash-based argument for lattice statements eprint-2025-1085. SmallWood+ shrinks hash-based ZK arguments further eprint-2026-2880.
- Binary-field provers handle batches of standard hashes quickly, including Flock arxiv-2607.27491 eprint-2026-1329 and BinarySpartan eprint-2026-1656. A lattice alternative exists eprint-2026-2103.
- The Magnetar zkVM (zero-knowledge virtual machine) rests only on standard hashes eprint-2026-2423.
- ML-DSA aggregation proves Keccak over GF(2) and the lattice part over a prime field eprint-2026-2936.
- A transparent lattice argument for R1CS exists, but its quantum ZK guarantees are incomplete eprint-2026-2943.
Circuit-friendly hashes
- SHA and BLAKE are a poor fit for ZK circuits. An R-SIS (lattice) hash is a circuit-friendly candidate eprint-2021-1010.
- The lattice hash Vortex had 2 of its 15 parameter sets broken by an SVP attack eprint-2022-1754.
- Code-based collision-resistant hashes are still theory eprint-2024-175.
- SNARK-friendly signatures include CAPSS eprint-2025-061 and Loquat eprint-2024-868.
Other uses
- Hash commitments support post-quantum publicly verifiable secret sharing without ZK proofs eprint-2026-813.
- A salted-hash file ratchet can replace post-quantum OPRFs in password login eprint-2026-2798.
- A hybrid KEM's key-derivation function (KDF) should bind the ciphertexts eprint-2026-140. A multi-input KDF suits hybrids eprint-2025-657. See hybrid-schemes.
Proof of work
- Grover gives PoW only a quadratic speedup. At current difficulty, slow quantum gates and fast ASICs (custom mining chips) largely cancel it out arxiv-1710.10377 arxiv-1711.04235.
- Bitcoin's backbone stays secure if each quantum query is worth about p^-1/2 classical queries arxiv-2012.15254 eprint-2019-1150.
- The papers differ on confirmations. One says settlement needs about the same confirmations as classically arxiv-2012.15254. Another says settlement waits grow by about p^-1/6 eprint-2019-1150.
- Quantum mining is not cost-effective at current difficulty arxiv-2110.00878.
- A quantum miner can gain by manipulating timestamps. Raising difficulty by c costs classical miners c, but a Grover miner only sqrt(c) arxiv-2403.08023.
- Proposed alternatives: Momentum-style memory-hard PoW arxiv-1710.10377 and lattice Hermite-SVP PoW eprint-2020-1362.
- See consensus.
Hashes in chain protocols
Hash-only chain designs
- A client-side-validation chain posts only three 32-byte hashes per transaction arxiv-2609.32015.
- A hash commit-reveal scheme avoids signature bloat, but each commitment works only once arxiv-2605.06853.
- RGB claims collision resistance is its only assumption. This needs full-text checking eprint-2025-1400.
- Mining on the sender side can shorten digests and signatures eprint-2022-1581.
- A lattice chameleon hash can make chains redactable eprint-2023-774.
- Old data can be protected from hash breaks by re-hashing it under a newer hash eprint-2007-238.
Ethereum (see ethereum-migration)
- Falcon was chosen partly for its built-in SHAKE256 (an extendable-output hash), because the EVM (Ethereum Virtual Machine) lacked that function arxiv-2106.06640.
- EIP-8052 proposes Falcon precompiles with SHAKE256 and Keccak variants arxiv-2608.22924.
- Hash-based STARK verification fits in one Solana transaction eprint-2025-1741. See other-chain-migration.
Consensus and randomness
- Hash-only asynchronous agreement exists eprint-2024-677 eprint-2024-1710 eprint-2024-479.
- A SHA-256-based Bracha reliable broadcast (RBC) gives signature-free consensus arxiv-2606.14404 arxiv-2505.02761.
- iVRF (indexed verifiable random function) allows hash-only leader election eprint-2022-993. Hash-based VRFs give quantum-safe randomness eprint-2026-052 arxiv-2109.02012.
- Hash-only random beacons include HashRand eprint-2023-1755 and others eprint-2025-1041 eprint-2026-2021.
Hiding keys behind hashes (see wallets-keys)
- Hashing the address hides the public key only until the first spend arxiv-2106.06640 arxiv-1711.04235.
- Hashed keys give preimage-based security for single use. A delay signature is needed against rushing adversaries eprint-2023-420.
- If a hashed UTXO is spent directly, a mempool watcher can recover the key and front-run the spend arxiv-2303.06754.
- A hash-based "Sleeve" nests a quantum-safe fallback key inside an ECDSA key eprint-2022-888.
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?
- One survey lists Grover as a threat to SHA-256 and quotes qubit counts arxiv-2508.17296.
- Others call hashes largely unaffected arxiv-2112.00399 or say public keys should come first arxiv-2610.02435.
- Several NIST PQC candidates assumed SHA-3 was automatically quantum secure. One paper contradicts this eprint-2020-213. Another calls quantum hash security "believed well understood" eprint-2017-607.
How much margin is there?
- SHA-256 under Grover is given as 85 bits in one table arxiv-2501.11798 and 128 bits elsewhere arxiv-2508.21548.
- An older survey asks for 3b-bit outputs to get b-bit quantum security arxiv-1804.00200.
What does a quantum collision cost?
- Cited figures: 2^(λ/3) arxiv-2006.10972, Theta(N^{1/3}) eprint-2024-360 and O(2^(n/3)) eprint-2020-213.
- The 2^(2n/5) paper says the naive 2^(n/3) figure is not a real time speedup and should not be used for sizing eprint-2017-847.
- One survey says no quantum collision attack beats classical on relevant cost measures arxiv-2112.00399.
- Cost models disagree eprint-2022-197, and limited NISQ attackers do worse than generic bounds eprint-2024-360. All Grover forgery numbers are model-specific.
Is MD or the sponge more robust?
- One paper proves MD quantum-indifferentiable eprint-2018-276. A later paper shows public indifferentiability fails eprint-2026-128, and another finds a proof gap eprint-2026-1347.
- MD combiners sit well below ideal eprint-2022-1058. Sponge one-wayness meets the Grover bound eprint-2024-414, and sponge bounds look better eprint-2025-731.
- Under preprocessing, MD resists short collisions that the sponge does not eprint-2026-2695. Feed-forward sponges are no stronger than plain ones eprint-2026-2998. These are preprocessing-model results, so their reach to a real chain is unclear.
- The ST^2B bound for short MD collisions is still conjecture eprint-2026-2694.
SHA-2 or SHA-3?
- The SHA-3 standard recommends using both for diversity spec-fips-202-sha3.
- SHA-2 has a specific multi-target weakness that SHAKE256 avoids eprint-2026-2635.
- Power traces break SHA-2 SLH-DSA eprint-2026-2753, and faults or power analysis break Keccak eprint-2026-619 eprint-2026-2584. Neither family is safe against side channels without masking.
- The multi-target attack needs a huge number of signatures. The cards do not say whether a chain would ever reach that many.
How much are ROM and QROM proofs worth?
- ROM proofs alone are not enough eprint-2003-150, yet most schemes here depend on ROM or QROM proofs.
- The QROM may not capture real hash functions arxiv-2508.19250 arxiv-2509.02189. The ROM hides hash structure eprint-2025-1846.
- Older LMS bounds do not cover concrete SHA-256 variants eprint-2026-2624.
Do proofs and parameters hold up?
- Tight SPHINCS+ proofs were flawed and have been repaired eprint-2022-346 eprint-2023-408.
- The FORS paper reports weaker adaptive security but says SPHINCS+'s claims stand eprint-2020-564. Readers must judge that gap.
- The SPHINCS+ and Spinel variants are not validated arxiv-2508.19250 arxiv-2602.09882. The Streebog swap has not been evaluated in practice arxiv-1904.06525.
- Haraka has a limited margin, so one paper restricts itself to 128-bit results eprint-2021-1484. Later work attacks SPHINCS+-Haraka classically eprint-2024-604.
Hash-based signatures: practical or not?
- One paper says they lack practical performance for VRFs arxiv-2109.02012. Others build hash-based VRFs eprint-2026-052 and signatures eprint-2025-055.
- One paper proves a near-quadratic size barrier eprint-2026-2237. Another claims a stateless hash signature shorter than ML-DSA-44 eprint-2026-2502. They may not conflict, since the bound is asymptotic and the claim is one parameter point. This is unresolved.
Proof-system soundness
- One paper treats soundness as proven only up to the Johnson bound, because the capacity conjectures were disproved eprint-2026-1367.
- Another proves an unconditional bound above Johnson at about 2x query cost eprint-2026-858.
Algebraic and circuit-friendly hashes
- They speed up proofs eprint-2025-061 eprint-2021-1010.
- They keep getting broken or turn out weaker than claimed: AIM2 eprint-2025-2272 eprint-2026-903 and Vortex eprint-2022-1754.
- Magnetar avoids them entirely eprint-2026-2423.
PoW
- One survey says the quantum PoW advantage is inherent and suggests proof of stake arxiv-2508.17071.
- Others find the advantage bounded or negligible today arxiv-2012.15254 arxiv-1711.04235. The timestamp attack is impractical today arxiv-2403.08023.
Evidence quality
- Side-channel results come from specific hardware or simulated leakage eprint-2020-371. How far they apply to deployed chain software is unclear.
- Hardware gains vary. Hash chains speed up a lot, whole signatures much less eprint-2026-3086 eprint-2026-837.
- Some claims are abstract-only, such as RGB eprint-2025-1400 and the sponge collision result eprint-2026-2695.
What it means for our chain
Hash choice and sizing
- Make SHAKE256 or SHA3-256 the core hash, with domain separation everywhere spec-fips-202-sha3 eprint-2026-2635 eprint-2025-731.
- Keep 256-bit outputs and put migration effort into signatures first arxiv-2610.02435 arxiv-2607.13235.
- Size outputs against the quantum collision and multi-target preimage bounds eprint-2017-847 eprint-2024-360.
- Do not use a custom hash eprint-2019-344, naive MD combiners eprint-2022-1058 or unreviewed algebraic hashes eprint-2025-2272.
- Do not rely on classical SHA-2 random-oracle proofs in a quantum setting eprint-2026-128.
- Derive multiple oracles with a proven domain-separation method eprint-2020-241. Copy Bitcoin's tagged-hash pattern for Merkle trees and signature messages spec-bip-0340-mediawiki spec-bip-0341-mediawiki.
- Plan for hash agility and for re-hashing old commitments eprint-2007-238. See chain-design.
Hash-based signatures
- Use NIST-approved parameters and treat key state as a consensus invariant spec-sp-800-208-stateful-hbs. NIST says stateful schemes are not for general use spec-ir-8547-pqc-transition.
- Never reuse one-time keys eprint-2016-1042.
- Prefer schemes with QROM proofs and their corrected versions eprint-2017-607 eprint-2022-346.
- With LMS or XMSS on SHA-256, check exact bounds and leave room for the multi-target loss eprint-2026-2624 eprint-2026-2635.
- Audit key derivation for multi-target weaknesses eprint-2021-845.
- Avoid SPHINCS+-Haraka, the SHA-256 category-five set and AIM2-based signatures eprint-2021-1484 eprint-2022-1061 eprint-2026-903.
- Plan threshold custody with hashing at the circuit level eprint-2026-2194.
Implementation
- Mask every SLH-DSA or Keccak signer against power and fault attacks eprint-2026-2753 eprint-2026-619 eprint-2026-2584 eprint-2024-1522 eprint-2024-367.
- Keep hash backends fast, because Keccak dominates cost eprint-2026-1576. Node hardware with a Keccak instruction would help eprint-2026-2932.
- Budget for the cost of hashing large keys and signatures arxiv-2010.06571.
Proofs
- Prefer standard hashes that are fast to prove arxiv-2607.27491 eprint-2026-2423.
- Ligero-style proofs avoid a trusted setup eprint-2022-1608.
- Treat FRI-style parameters as safe up to the Johnson bound, or pay about 2x queries to go beyond it eprint-2026-1367 eprint-2026-858.
Consensus
- With PoW, model the timestamp and difficulty attack arxiv-2403.08023 and allow for deeper confirmations eprint-2019-1150.
- Hash-only consensus parts are possible. One agreement protocol tolerates only up to 20% Byzantine nodes eprint-2024-479.
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.