The Ethereum Foundation has recommended Keccak-256 as the default hash function for Ethereum's future hash-based cryptography in a post-quantum security model, favoring a primitive already embedded across the network over faster or more specialized alternatives.
The recommendation would concentrate several cryptographic tasks around the Keccak-f[1600] permutation: Keccak-256 for ordinary hashing, Keccak-duplex for Fiat-Shamir transformations used in cryptographic proofs, and SHAKE256 for pseudorandom generation and key derivation. The Foundation's argument is that recent advances in SNARK proving systems have removed much of the performance advantage once held by hashes designed specifically for zero-knowledge applications.
Keccak-256 already has a deep place in Ethereum's architecture. It produces Ethereum addresses, helps secure execution-layer state, and is available to smart contracts through the KECCAK256 opcode. Reusing it for future hash-based signature and proof systems would reduce the number of distinct cryptographic components that client teams, smart contract developers, zkVM builders and software development kit providers must implement correctly.
The recommendation is a technical direction rather than an immediate protocol migration. Ethereum's consensus layer currently relies on SHA2-256 for SSZ merkleization, while the execution layer has long used Keccak-256 extensively. Moving toward a common primitive would require changes across clients and standards, particularly if developers pursue the Foundation's longer-term suggestion of replacing SHA2-256 in SSZ merkleization.
Snark performance changes the selection criteria
The Foundation evaluated five families of candidates: Poseidon and Poseidon2, BLAKE3, BLAKE2, SHA2-256 and Keccak-256. Earlier generations of zero-knowledge systems made the choice relatively straightforward: specialized hashes such as Poseidon could be substantially cheaper to prove inside a SNARK than conventional functions built for ordinary processors.
That distinction has narrowed. The Foundation said its target is to prove more than 500,000 hashes per second on EIP-7870-class hardware in a zkVM environment. It mapped that throughput to roughly 1,000 attestations per second, a level it said could cover a consensus-layer committee.
The Foundation said Keccak-f proving in leanVM already exceeds that target. BLAKE3 remains easier to prove, and SHA2-256 is faster in native CPU environments, but neither advantage was presented as large enough to outweigh Keccak's longer record of public analysis and its lower integration burden inside Ethereum.
That shifts the debate from selecting the cheapest hash circuit toward selecting a function with a security margin that is easier to assess. A security margin is the distance between the full version of an algorithm and the most advanced publicly known attack against a reduced-round version. Larger gaps do not prove a function is invulnerable, but they give protocol designers more room against future cryptanalytic advances.
Why Ethereum passed on newer hash designs
Poseidon and Poseidon2 were built for efficiency in zero-knowledge proofs and remain common in zk applications. The Foundation said it did not select them because their relatively short public history leaves less accumulated cryptanalysis than older standards.
Its review cited research by Lorenzo Grassi Bariant and co-authors from 2022 describing an approach that skips two full rounds at near-zero cost. It also referenced later reduced-round analysis by Alberto Sanso and Luca Vitto in 2025 and by Bak and co-authors in 2026. The Foundation said the full-round versions of Poseidon and Poseidon2 have not been reported as broken, but the steady stream of new reduced-round results weighed against making them a foundational Ethereum primitive.
BLAKE3 offered stronger proof performance. The Foundation cited the SNARK.fast Flock challenge leaderboard, where participants proved about 2.2 million BLAKE3 compressions per second on a 16-vCPU machine. Yet BLAKE3 modifies the BLAKE2 round function and cuts its round count from 10 to seven, meaning older BLAKE2 analysis does not fully carry over.
The Foundation also pointed to the absence of a security proof for BLAKE3's mode of operation and to known distinguishers for its underlying block cipher over many rounds. Those findings do not amount to a break of BLAKE3, but they leave a thinner base of analysis than Ethereum was prepared to accept for long-lived protocol cryptography.
BLAKE2 presented a more mature option and has an existing foothold in Ethereum through the EIP-152 blake2f precompile. The Foundation characterized public cryptanalysis of BLAKE2 as limited, with fewer than 10 published attacks and its best cited hash attack reaching 2.5 rounds. Its conclusion was that Ethereum did not need BLAKE2's performance profile badly enough to choose it over candidates with more extensive scrutiny.
Sha2-256 lost the final comparison
The final choice came down to SHA2-256 and Keccak-256, both of which already operate within Ethereum. SHA2-256 is used for SSZ, the serialization system underpinning consensus-layer data structures. It is also available in the execution layer through the 0x02 precompile and appears in Ethereum's existing deposit contract.
The Foundation's reservations centered on SHA2-256's Merkle-Damgard construction and reduced-round cryptanalysis. Merkle-Damgard hashes have length-extension behavior: someone who knows a hash of a message can, under some circumstances, calculate the hash of an extended message without knowing the original content. Protocols can safely use SHA2-256 by adding suitable construction rules, but those rules add complexity.
The Foundation cited collision attacks reaching 35 of SHA2-256's 64 rounds, with a best reported collision attack at 38 rounds in work referenced to Li and co-authors, Zhang and co-authors, and Goldreich in 2026. It also noted that hash-based signature constructions including SLH-DSA-SHA2 use tools such as HMAC and MGF1 for functions where plain SHA2-256 requires extra care.
Keccak-256 uses a sponge construction rather than Merkle-Damgard. The Foundation said practical collision attacks reach five of Keccak's 24 rounds, while theoretical attacks on the underlying permutation reach six rounds, citing work by Guo and co-authors and by Zhang, Hou and Liu. It also referenced a QCrypt 2026 paper by Furkan Tokat, Gorjan Alagic, James Carolan and Christian Majenz examining indistinguishability properties of sponge constructions against classical and, under looser bounds, quantum adversaries.
Existing opcode reduces migration risk
Keccak-256 and SHA3-256 share the same Keccak-f permutation, rate and capacity. According to the Foundation, they therefore offer the same security level, native performance and proof cost. Their difference is a padding convention.
Ethereum selected Keccak-256 rather than SHA3-256 largely to avoid maintaining two near-identical functions that differ by a single padding byte. That choice preserves compatibility with the existing KECCAK256 opcode and limits the risk that software components use subtly incompatible hashes during upgrades.
Execution-layer clients would not need a new Keccak implementation for signature verification because the function is already present. The Foundation also recommended Keccak-256 alongside SSZ if Ethereum introduces SSZ into the execution layer through a framed-transaction design.
A longer migration of consensus-layer SSZ merkleization would be more consequential, since it would touch validator software and consensus data formats. The Foundation's recommendation places that potential work within a broader effort to prepare Ethereum for post-quantum cryptography without building its security model around newer primitives whose long-term resistance remains less tested.
To deepen your understanding of Ethereum’s role in crypto, explore our guide on what is Ethereum and how does it work.
Disclaimer: The content on this page is provided for general informational purposes only and does not represent the views or financial advice of Toobit. We make no guarantees regarding the accuracy or completeness of this information and shall not be held liable for any errors, omissions, or outcomes resulting from its use. Investing in digital assets involves risk; users should independently evaluate their financial situation and the risks involved. For further details, please consult our Terms of Service and Risk Disclosure.
