Ethereum picks Keccak-256 as its hash for a post-quantum future

Ethereum is standardizing on Keccak-256 as its primary hash function, a decision supported by nearly two decades of cryptanalysis and offering a “large security margin” for the network’s post-quantum future. This move avoids introducing a new hash function into the protocol, building instead on an existing component already used for Ethereum addresses and state. The selection is the result of a multi-year effort involving numerous researchers and engineers, including Vitalik Buterin, and uses the Keccak-f permutation to create a family of related primitives for diverse applications, from standard hashing to pseudorandom bit generation.

Keccak-256 Selected for Ethereum’s Post-Quantum Cryptography

Practical collision attacks against the underlying permutation used by Keccak-256, SHAKE128, and SHAKE256 currently reach five of its 24 rounds, while theoretical attacks extend to six rounds, according to Guo et al. 2020 and Zhang, Hou and Liu 2024. This level of scrutiny provides a substantial foundation of confidence as the protocol prepares for the challenges posed by quantum computing. The team accepted a relative performance cost in exchange for this security margin and historical cryptanalysis.

The move strategically uses an existing component within the Ethereum ecosystem, extending its functionality rather than introducing a completely new cryptographic primitive. Beyond standard hashing, Ethereum will use a family of symmetric primitives derived from the Keccak-f permutation, including Keccak-duplex for Fiat-Shamir transformations and SHAKE256 for pseudorandom bit generation and key derivations.

This approach ensures the hash function can effectively operate across multiple environments, from native client execution for signing and verification to its role within the leanVM zkVM. The versatility of the Keccak-f permutation is central to the long-term security and scalability of the Ethereum network.

A collaborative effort involving numerous researchers and engineers was instrumental in this decision, with contributions from the authors of Binius and WHIR, Angus Gruen, Lev Soukhanov for GKR work, Benedikt Bünz, Ron Rothblum and William Wang for Flock, Justin Thaler and Quang Dao for their sumcheck innovations, and the zkEVM teams, Ethereum says. Within the Ethereum Foundation, Alex Hicks, Antonio Sanso, Benedikt Wagner, Cody Gunton, Derek Sorensen, Dmitry Khovratovich, Emile, George Kadianakis, Gottfried Herold, Han Jian, Ignacio Hagopian, Justin Drake, Tau, Thomas Coratger, and Vitalik Buterin all contributed to the multi-year effort. “We recommend Keccak-256 as the hash function for Ethereum’s hash-based cryptography,” the team stated.

The choice between Keccak-256 and SHA3-256, both built on the same Keccak-f permutation, rate and capacity, ultimately came down to integration within Ethereum. Keccak-256 is already implemented as an opcode and extensively used on both the execution and application layers, avoiding the introduction of two nearly identical functions that would differ only by a single padding byte. The team also determined that FIPS approval did not factor into the decision.

The potential for integration bugs with SHA3-256, informally called “SHA3” alongside Keccak, was a key consideration. The underlying sponge mode of Keccak-256 is provably indifferentiable from a random oracle, assuming an ideal underlying permutation, against classical adversaries, and with a loose bound, against quantum adversaries, according to Tokat, Alagic, Carolan and Majenz, QCrypt 2026. This theoretical foundation, combined with the extensive practical cryptanalysis, positions Keccak-256 as a robust choice for securing Ethereum’s future.

Comparative Analysis of Hash Candidates: Poseidon, BLAKE2, BLAKE3

The shift toward efficient zero-knowledge (ZK) proofs has fundamentally altered the criteria for selecting a primary hash function for Ethereum, diminishing the prior need for algorithms specifically designed for SNARK-friendly proving. For years, the computational expense of proving hashes within zkVMs dictated a preference for functions like Poseidon, which prioritized proving speed over established cryptographic strength; however, recent advances in SNARK technology have changed this calculation.

Binary-field SNARKs, including Binius, Flock, and GKR-based provers, now achieve hash proving rates exceeding 500K hashes per second, effectively leveling the playing field between standard and algebraic hashes. This newfound parity in proving performance has redirected focus to security as the paramount consideration, given the long-term implications of the choice. The team prioritized a function with a substantial body of cryptanalysis and a “large security margin” to safeguard Ethereum’s value for decades, recognizing that reversing this decision would be exceedingly difficult.

Five candidates, Poseidon, Poseidon2, BLAKE3, BLAKE2 and Keccak-256, underwent comparative analysis, with the evaluation extending beyond raw speed to encompass the depth and breadth of existing cryptographic scrutiny. Poseidon and Poseidon2, initially favored for their SNARK compatibility, have faced increasing scrutiny.

A 2022 analysis by Bariant et al. demonstrated that two rounds could be skipped with minimal impact on performance, while the Ethereum Foundation’s Poseidon Cryptanalysis Initiative, launched in November 2024, continues to yield new attacks on round-reduced instances of both functions, as detailed in Sanso and Vitto (2025) and Bak et al, according to the company.

(2026). While neither full-round version of Poseidon has been broken, the team determined that waiting for further cryptanalysis to mature was unnecessary given the performance of standard hashes. Poseidon and Poseidon2, despite sharing design principles, are effectively distinct hash functions, leading to the same conclusion for both.

BLAKE3, the fastest traditional hash tested, achieves approximately 2.2 million compressions per second on a 16-vCPU machine, as demonstrated in the SNARK.fast Flock Challenge leaderboard. However, BLAKE3 deviates from BLAKE2 by modifying the round function and reducing the number of rounds to seven, resulting in a sparser cryptanalysis record and a lack of a formal security proof for its mode of operation, the company says.

BLAKE2, while better studied than BLAKE3, still has fewer than ten published cryptanalytic attacks, with the best attacks reaching only 2.5 rounds, according to the BLAKE2 site’s cryptanalysis FAQ. The team highlighted the potential benefits of integrating Keccak-256 with the planned introduction of SSZ on the execution layer, and noted that Keccak-256 is already used by clients for discv5 node IDs. The recommendation to transition SSZ merkleisation from SHA2-256 to Keccak-256 emphasises a strategic move towards consolidating on a single, well-vetted hash function.

Security Margins Favor Keccak-256 Over SHA2-256 and Alternatives

Keccak-256 benefits from nearly two decades of dedicated cryptanalysis, a substantial advantage when considered alongside alternatives for Ethereum’s cryptographic needs. This extensive vetting period has yielded a level of scrutiny uncommon for functions now central to post-quantum security strategies, according to the team’s assessment. The decision to prioritize Keccak-256 wasn’t simply about choosing a secure hash, but about using an already well-understood component within the Ethereum ecosystem.

While BLAKE2 and BLAKE3 presented viable options, their comparatively limited cryptanalysis records raised concerns. The team noted that BLAKE3’s mode of operation lacks a formal security proof, and its underlying blockcipher exhibits vulnerabilities after a limited number of rounds, five rounds of the hash function. SHA2-256, currently used in several Ethereum layers, presented a different set of challenges. Schemes built upon it require careful implementation to address potential vulnerabilities, specifically related to the random oracle issue.

The team determined that mandating these extra precautions for every protocol relying on SHA2-256 was undesirable. This structural preservation means that attacks cannot exploit the sponge construction itself, focusing instead on the internal Keccak-f permutation. While LeanVM achieves over 500K Keccak-f permutations per second on EIP-7870 hardware, the team acknowledges that Keccak-256’s performance lags behind both BLAKE3 and SHA2-256 in native speed, Ethereum reports. The primary driver for choosing Keccak-256 over SHA3-256 was its existing integration within Ethereum.

Stay current

See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.

Avatar of Dr. Donovan

Latest Posts by Dr. Donovan: