ALFOMs and the Moirai: Quantifying the Performance/Security Tradeoff for ZK-friendly Hash Functions
Zero-Knowledge (ZK) protocols rely internally on hash functions for their security arguments. However, the hash functions that are the most efficient in this context differ substantially from e.g. SHA-3: their round function $R$ must enable an efficient arithmetization of its verification. In practice, it means that verifying if y = R(x) involves as few finite field multiplications as possible. In turn, this design requirement implies a greater vulnerability to algebraic attacks. In fact, their recent improvements have proven devastating, which implies the need to completely rethink the methods used to ensure security against them. In this paper, we show that it is possible to build a simple yet efficient security argument based on a precise estimate of the so-called “ideal degree” of a system of equations. Furthermore, we show that the increase of this quantity across rounds is tightly connected to the cost of the hash function in two different arithmetizations, namely AIR and R1CS. We precisely quantify this relation by introducing ALgebraic Figures Of Merit (ALFOMs) that capture how efficient a specific primitive (and in fact its round function) is at increasing the algebraic security per unit of cost. This new insight allows us to better understand sometimes puzzling performance differences between state-of-the-art hash functions in the R1CS and AIR cases, and to provide a fair and simple comparison of their round functions in this context. Furthermore, we present a new group of round functions we call the Moirai (a case study rather than a full new design) which allow us to explore what a round function providing optimal performance/security tradeoff could look like.
Authors
- Léo Paul Perrin (ORCID: https://orcid.org/0000-0002-4722-7005)
- Aurélien Boeuf (ORCID: https://orcid.org/0009-0003-0016-2667)
Institutions
- Institut national de recherche en sciences et technologies du numérique (FR)
- Simula UiB (NO)
Publication Details
- Journal
- IACR Transactions on Symmetric Cryptology
- Published
- 2026-10-30
- DOI
- https://doi.org/10.46586/tosc.a0ivomx4wo3r
- Primary Topic
- Cryptographic Implementations and Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00