Coin Brief ENDE

EIP-8526 proposes Keccak-256 as a second hash for SSZ Merkleization

EIP-8526, added to the Ethereum EIPs repository as a draft on 30 November, addresses a mismatch between Ethereum's two layers. Simple Serialize, or SSZ, the encoding of the consensus layer, builds its Merkle trees with SHA-256. The execution layer uses Keccak-256 everywhere: to commit to state, transactions, receipts and blocks, to derive addresses, and in the KECCAK256 instruction available to contracts. Until now an execution-layer structure that adopted SSZ would have had to use SHA-256 to do so.

The proposal, by Etan Kissling, Ben Adams, Tamaghna Choudhuri and Kevaundray Wedderburn, adds an optional hash keyword to every composite SSZ type, written for example as Container(hash=keccak256), and defines Keccak-256 as an alternative to SHA-256. Three properties are designed in. The hash is bound to the type, so an object has the same hash_tree_root wherever it appears, on either layer. The shape of the Merkle tree does not depend on the hash function, so generalized indices stay stable. And the choice is made per type, so a type can switch to Keccak-256 without changing the hash of the types that contain it.

EIP-8526 proposes Keccak-256 as a second hash for SSZ Merkleization
EIP-8526 proposes Keccak-256 as a second hash for SSZ Merkleization — Coin Brief

The motivation goes beyond compatibility. The authors call Keccak-256 a conservative long-term choice with a large security margin and a long record of public cryptanalysis, and cite a document called PQAI #1, dated 24 November, in which Ethereum Foundation researchers observe that proof systems over binary fields now prove hash functions such as Keccak-256 efficiently, so that security, rather than proving cost, should decide the choice. That document recommends Keccak-256 for Ethereum's hash-based cryptography and for SSZ once it reaches the execution layer.

EIP-8526 requires EIP-7495, EIP-7916 and EIP-8016. On the same day, EIP-7495 and EIP-7916 were moved to Last Call, along with EIP-7688 and EIP-7773.