A Fiat–Shamir Transformation from Duplex Sponges
Alessandro Chiesa (EPFL), Michele Orrù (CNRS)
Accepted paper presented at ZKProof 8 in Rome, May 9–10, 2026.
Speaker

Professor, EPFL
About this talk
Alessandro Chiesa presented a formal security analysis of the Fiat–Shamir transformation as it is actually built in practice, from a duplex sponge over an ideal permutation, rather than the textbook versions theoreticians usually study.
The gap between theory and practice
Fiat–Shamir is less a single transformation than an umbrella term for several related ones. In its original form, it turns a three-message public-coin interactive argument into a non-interactive one: the prover hashes the statement and its first message to obtain the verifier's random challenge, emulating the interaction "in its head". The same idea extends to k rounds, where each round's challenge is derived by hashing the statement and all prover messages so far. A common "hash chain" variant instead hashes the previous challenge together with the new prover message.
Theoreticians analyze these textbook variants with the hash function modelled as a random oracle (often a separate one per round), and their security there is well understood. But each of those idealized hash functions must accept the protocol's instance and message spaces as input and produce verifier messages as output. Real hash functions don't look like that: they are compression functions or permutations over a fixed number of bits or field elements. In practice, implementations bridge this mismatch with sponge-like constructions, which the textbook analyses don't cover.
The talk focused on this gap between deployed variants and what has been formally analyzed in an ideal model. It explicitly set aside a different open question: the security of any Fiat–Shamir variant in the standard (plain) model.
The duplex sponge Fiat–Shamir transformation
A duplex sponge splits a permutation's state into a rate part, which absorbs and outputs data, and a capacity part, which acts as a hidden internal state. It can alternate freely between absorbing input and squeezing output, any number of symbols at a time.
Looking at what implementations do, the authors propose a cleaned-up, canonical variant they call duplex sponge Fiat–Shamir:
- Prover messages are absorbed into the sponge and verifier challenges are squeezed out.
- A codec encodes prover messages into sequences of the permutation's alphabet symbols and decodes squeezed symbols back into verifier messages.
- For zero knowledge, a random salt is absorbed at the start.
- The construction minimizes the number of permutation calls for the amount of information absorbed and squeezed.
The speaker described the construction itself as a natural one; the contribution is its analysis, together with an open-source implementation.
What the authors prove
Because real permutations are efficiently invertible, the analysis is in the ideal permutation model, with the adversary given access to both the permutation and its inverse. The results include:
- Knowledge soundness: the non-interactive argument's error is the state-restoration knowledge soundness error of the underlying interactive argument, plus an additive term roughly quadratic in the adversary's number of queries, divided by the alphabet size raised to the capacity.
- Zero knowledge: the error is the honest-verifier zero-knowledge error of the interactive argument, plus a term linear in the number of queries over the alphabet size raised to the smaller of the capacity and the salt length.
Both bounds come with small explicit constants. The speaker's takeaway: this construction is one practitioners can rally behind, and anyone considering small variations now has a formal analysis to start from.
Why indifferentiability isn't enough
The duplex sponge is known to be indifferentiable from a random oracle, which might suggest that duplex sponge Fiat–Shamir automatically inherits the security of the textbook version. It doesn't quite: indifferentiability carries over soundness, but not knowledge soundness or zero knowledge.
Knowledge extraction depends on reasoning about the adversary's oracle queries and answers, and indifferentiability gives no way to map query traces against a permutation onto traces against a random oracle. Zero-knowledge simulation has a similar problem with programmed oracle points. To close the gap, the authors introduce two natural strengthenings: extraction-friendly indifferentiability, which carries over knowledge soundness, and simulation-friendly indifferentiability, which carries over zero knowledge.
Implementation
The work comes with an open-source library (called spongefish in the paper) that can be instantiated with any permutation and includes codecs for bridging different prover message types and permutations, including across cryptographic libraries. According to the paper, it is written in Rust and ships with Keccak and Poseidon permutations.
The speaker also mentioned a significant post-quantum expansion of arkworks, partly motivated by this work, and invited anyone interested in contributing to get in touch.
From the Q&A
- Why a duplex rather than a plain sponge? Alternating absorb and squeeze links every round to everything before it, which lets the security proof extract the whole transcript back to the first round. Without that linking, the speaker said he wouldn't know how to prove security, and he expects some protocols that are secure under basic Fiat–Shamir would be insecure under an unlinked variant.
- What do codecs need? Only information-theoretic properties: encoding must be injective, and decoding must preserve uniformity when turning uniform symbols into verifier messages. No computational assumptions are made on codecs.
- Variable-length messages? Supported: message sizes can depend on the instance, and the duplex sponge handles any length on the fly.
- Basic or hash chain variant? The hash chain variant loses an additive term roughly equal to the probability of finding a hash collision. But both are too idealized to match practice, and the speaker recommended using duplex sponge based constructions.
Go further: watch the full talk or read the paper on IACR ePrint.
This summary was written by the conference team, not by the speaker or the paper's authors. For the authoritative account of this work, please refer to the paper on IACR ePrint.
More ZKProof 8 talks on this topic
Pairing-based SNARKs, Plonk and security foundations
Pairing-Based SNARGs with Two Group Elements
Gal Arnon (Bocconi University), Jesko Dujmovic (Northeastern University), Eylon Yogev (Bar-Ilan University)
Plonk is Simulation Extractable in ROM Under Falsifiable Assumptions
Helger Lipmaa (University of Tartu)
Plonk Without Random Oracles
Georg Fuchsbauer (TU Wien), Marek Sefranek (TU Wien)
What a Wonderful World: zkSNARKs in the Algebraic Group Model are Universally Composable
Gaspard Anthoine (IMDEA Software Institute, Universidad Politécnica de Madrid), Dario Fiore (IMDEA Software Institute), Mahak Pancholi (IMDEA Software Institute)
Non-Malleable Reductions of Knowledge
Lili Tong (EURECOM), Antonio Faonio (EURECOM)
