Classical ROM EUF-CMA for deterministic and salted hash-and-sign trapdoor signatures #
This module formalizes finite classical random-oracle-model (ROM) existential unforgeability under
adaptive chosen-message attack (EUF-CMA) for deterministic unsalted and salted
hash-and-sign trapdoor-preimage signature schemes, together with their composition with
extracted-model single-issuer VOLE-ACT credit conservation
(Cslib.Crypto.AnonymousToken.Conservation).
Scope and model boundaries #
- Finite classical ROM, query-bounded reductions. All adversaries are finite classical
ProbOracleComporROMSignature.Forgerprograms with explicit signing-query budgetq_Sand hash-query budgetq_H. Every reduction is an explicit program with a proved query bound; no Turing-machine / PPT runtime certificate is claimed (tracked in #7068). No quantum random-oracle (QROM) bound is proved here:[KosugeXagawa2022](Theorem 1 and Appendix B.2 Proposition 3) motivates the salted variant in the QROM, while the salted theorems proved here are finite classical-ROM reductions after[KosugeXagawa2022](Theorem 1, classical-ROM specialization on p. 18, and Section 2.3, Figure 4 / Definition 7 on p. 10), with explicit deviations: no retry (Option Preimagefailure retained soq'_sign = q_sign, omitting retry failure slack), classical ROM queries ((q_H + 1) * INVrather than QROM(2 q_qro + 1)^2 * INV), and explicit salt-collision slack(q_S * q_H + q_S.choose 2) / |Salt|. - Abstract trapdoor preimage systems (
TrapdoorPreimageSystem). A system bundles key generation, public evaluationeval : PK → Preimage → Target, a total finite preimage samplerinvert : SK → Target → ProbComp (Option Preimage)retaining explicit failure (none) without conditioning, and a secret-free simulated preimage samplersamplePreimage : PK → ProbComp Preimage.idealUOVSysteminstantiates this interface withUOV.idealKeyGenand uniform preimage sampling so that(idealUOVSystem F v o derive).toRawScheme = UOV.idealRawScheme derive(idealUOVSystem_toRawScheme). Concrete round-3 UOV signing and vinegar-retry bounds remain tracked in #4987 and #5219. - Programmable ROM
Tag, starting after vinegar derandomization.detSchememodels deterministic unsalted hash-and-sign (Σ_Tagof [ZPS26], Protocol Specification / Tag) after per-target derandomization: key generation drawsinvTable ← PMF.pi (eval ∘ invert sk)and stores that fullTarget → Option Preimagetable insk(replacing it by a PRF or PRG seed is outside this model), so repeated signatures on the same target return the same preimage while distinct targets are inverted independently, andTagis modeled as a lazy uniform random oracle rather than concreteKeccak-p[800, 12].saltedSchememodels salted hash-and-sign (SignCoins := Salt × (Target → Option Preimage)), drawing a fresh uniform salt and independent preimage on every signing call. - Concrete game bounds. Preimage resistance (
INV) reusesSignature.targetExperimentonsys.toRawSchemewith uniform targets. Preimage simulatability (PS) comparespsExperimentReal(sampling uniformyandx ← invert sk y) againstpsExperimentSim(samplings ← samplePreimage pkand returning(eval pk s, some s)), adapted from Figure 4 of[KosugeXagawa2022]with explicit failure retained. All bounds are concrete inequalities relating explicit games; no new asymptotic hardness-assumptionPropis introduced.
Main definitions #
TrapdoorPreimageSystem,TrapdoorPreimageSystem.check,TrapdoorPreimageSystem.toRawScheme,idealUOVSystem: abstract trapdoor-preimage signature core and ideal UOV instantiation.TrapdoorPreimageSystem.sampleRealPair,TrapdoorPreimageSystem.sampleSimPair,PSDistinguisher,psExperimentReal,psExperimentSim: preimage simulatability (PS) experiments after[KosugeXagawa2022], Figure 4.detScheme,saltedScheme: deterministic unsalted and salted hash-and-signROMSignature.Schemeconstructions.detPSDistinguisher,detPSOneDistinguisher,detInverter: explicit multi-queryPS, single-queryPS, andINVreductions fordetScheme.saltedPSDistinguisher,saltedInverter: explicitq_S-queryPSandINVreductions forsaltedScheme.ROMExtractedAdversary,ROMExtractedCallBounded,romExtractedConservationExperiment,romTargetForger,detCommitmentBindingReduction,saltedCommitmentBindingReduction: lazy-ROM extracted VOLE-ACT credit-conservation game attag = Prod.mk(original to this library) and its explicit target-forgery and commitment-binding reductions.
Main results #
idealUOVSystem_toRawScheme: equality between(idealUOVSystem F v o derive).toRawSchemeandUOV.idealRawScheme derive.detScheme_correct,saltedScheme_correct: completeness of both ROM schemes wheninvertsucceeds with valid preimages.detPSDistinguisher_queryBound,detPSOneDistinguisher_queryBound,saltedPSDistinguisher_queryBound,romTargetForger_callBounded: exact query budgets for thePSand credit-conservation reductions.saltedRomWorldEufCma_succProbability_le,eufCmaGame_saltedScheme_succProbability_le: classical ROM EUF-CMA bounds for salted hash-and-sign after[KosugeXagawa2022]Theorem 1 (without retry), with(q_H + 1)INVloss,q_S-queryPSadvantage, and(q_S * q_H + q_S.choose 2) / |Salt|salt-collision slack.detRomWorldEufCma_succProbability_le,eufCmaGame_detScheme_succProbability_le: classical ROM EUF-CMA bounds for deterministic unsalted hash-and-sign (original to this library, adapting the(q_H + 1)programming argument) with(q_H + 1)loss onINV + PS_1,(q_S + q_H)-queryPSadvantage, and(q_S + q_H).choose 2 / |Target|target birthday slack.romExtractedConservationExperiment_succProbability_le,romExtractedConservationExperiment_detScheme_succProbability_le,romExtractedConservationExperiment_saltedScheme_succProbability_le: original end-to-end extracted+ROM credit-conservation bounds composing the lazy-ROM EUF-CMA bounds with keyless commitment binding attag = Prod.mk.
References #
- W. Beullens et al., UOV: Unbalanced Oil and Vinegar, Algorithm Specifications and Supporting Documentation, v3.0, Appendix A, Definition 2, p. 49.
- VOLE-ACT, Protocol Specification / Parameters / Tag and Spending.
- Baum et al., PoMFRIT, USENIX prepublication, Definition 3.1.
- H. Kosuge and K. Xagawa, Probabilistic Hash-and-Sign with Retry in the Quantum Random Oracle Model, ePrint 2022/1359, Figure 4, Theorem 1, and Proposition 3.
Trapdoor preimage systems and preimage simulatability (PS) #
An abstract finite trapdoor-preimage relation with explicit inversion failure and a secret-free simulated preimage distribution.
Key-pair generator.
- eval : PK → Preimage → Target
Public forward map
P : Preimage → Target. Trapdoor preimage sampler, returning
noneon failure without conditioning it away.- samplePreimage : PK → ProbComp Preimage
Secret-free simulated preimage sampler used in preimage simulatability (
PS).
Check a candidate optional preimage against target: none rejects, some s checks
eval pk s = target.
Package a trapdoor-preimage system as a raw target Signature.Scheme, reusing
Signature.targetExperiment for preimage resistance (INV).
A system is inverting-correct when invert never fails and every returned preimage maps back
to the requested target on all supported key pairs.
Ideal UOV instantiation of TrapdoorPreimageSystem: uses UOV.idealKeyGen, the public
multivariate quadratic map, the caller's finite preimage derivation program, and uniform preimage
sampling on Fin (v + o) → F. Its .toRawScheme equals UOV.idealRawScheme
(idealUOVSystem_toRawScheme).
(idealUOVSystem F v o derive).toRawScheme agrees with UOV.idealRawScheme derive.
Real preimage-simulatability sample: draw a uniform target y and invert it with sk.
Simulated preimage-simulatability sample: draw s ← samplePreimage pk and return
(eval pk s, some s).
The first marginal of sampleRealPair is the exact uniform distribution on Target.
An adaptive distinguisher in the preimage-simulatability (PS) game (after
[KosugeXagawa2022], Section 2.3, Figure 4 and Definition 7, adapted to retain Option Preimage
failure without retry): given pk, it queries a sampling oracle returning (y, x) pairs and
outputs a bit.
Real PS experiment (b = 0): oracle calls return (y, invert sk y) for uniform y.
Simulated PS experiment (b = 1): oracle calls return (eval pk s, some s) for
s ← samplePreimage pk.
Deterministic unsalted and salted ROM hash-and-sign schemes #
Call budget for a probabilistic ROM forger (ProbOracleComp): at most q_S signing queries
and at most q_H direct hash queries on every execution path.
Lifting a deterministic ROMSignature.Forger with CallBounded q_S q_H preserves both
signing and hash budgets as a ProbOracleComp forger.
The EUF-CMA acceptance predicate for ROMSignature.worldGame: the signature verifies and the
forged message was never submitted to the signing oracle.
Deterministic unsalted hash-and-sign scheme (Σ_Tag) in the classical ROM, after
per-target derandomization: keyGen draws invTable ← PMF.pi (eval ∘ invert sk) and stores the
full Target → Option Preimage table in sk (replacing it by a PRF or seed is outside this model),
sign hashes m and returns invTable (H m), and verify checks sys.check pk (H m) sig.
Salted hash-and-sign scheme in the classical ROM: signCoins draws a fresh uniform salt
and independent preimage table per signing call, sign hashes (m, r) and returns (r, f y),
and verify hashes (m, r) and checks sys.check pk y sig.
Completeness of detScheme: when sys.InvertCorrect, every signature produced by detScheme
verifies under the same random-oracle cache.
Completeness of saltedScheme: when sys.InvertCorrect, every signature produced by
saltedScheme verifies under the same random-oracle cache.
Shared Bellare–Rogaway guessing helper #
Classical ROM EUF-CMA for salted hash-and-sign #
Stateful handler of saltedPSDistinguisher: signing draws a uniform salt, queries the PS
oracle once for (y, x), and overwrites ((m, r), y) in the cache; hashing lazily draws uniform
targets.
Explicit q_S-query preimage-simulatability (PS) distinguisher for saltedScheme: runs
forger against saltedPSHandler, verifies the output against the resulting cache (drawing a
fresh uniform target if unqueried), and accepts iff the forgery verifies on an unsigned message.
saltedPSDistinguisher makes at most q_S queries to the PS oracle whenever forger makes
at most q_S signing queries (independent of q_H).
Stateful handler of saltedInverter: signing simulates (y, x) ← sampleSimPair pk and
overwrites the cache without advancing hCount; the jStar-th fresh direct hash query embeds
the challenge target yStar.
Explicit preimage inverter (INV reduction) for saltedScheme: guesses the forgery's fresh
direct-hash (or unqueried verification) index jStar ← Fin (q_H + 1), embeds the challenge target
yStar there, simulates all signing queries via sampleSimPair pk, and outputs the candidate
preimage.
Proof of classical ROM EUF-CMA for saltedScheme #
Classical ROM EUF-CMA reduction for salted hash-and-sign (ProbOracleComp form),
after [KosugeXagawa2022], Theorem 1 (classical-ROM specialization, p. 18) and Figure 4, adapted
for finite classical adversaries with explicit Option Preimage failure (no retry, so q'_sign = q_sign) and concrete salt-collision slack: for any probabilistic ROM forger making at most q_S
signing queries and q_H direct hash queries,
Pr[EUF-CMA] ≤ (q_H + 1) * Pr[INV(saltedInverter)] + Adv^PS(saltedPSDistinguisher) +
(q_S * q_H + q_S.choose 2) / |Salt|.
Every reduction is an explicit finite program with query bounds (no runtime certificate claimed;
tracked in #7068).
Lift a ROMSignature.Forger whose coin distribution is realized by coinSampler : ProbComp
into a ProbOracleComp forger.
liftForger preserves both signing and hash call budgets.
When A.coins = ProbComp.eval coinSampler, ROMSignature.eufCmaGame scheme A equals
ROMSignature.worldGame scheme (liftForger A coinSampler) eufCmaAccept.
Classical ROM EUF-CMA reduction for salted hash-and-sign (ROMSignature.eufCmaGame form),
after [KosugeXagawa2022], Theorem 1 (classical-ROM specialization, p. 18), without retry.
Applies to ROMSignature.Forger adversaries whose coin distribution A.coins is realized by a
finite ProbComp A.Coins sampler (hcoins : A.coins = ProbComp.eval coinSampler).
Classical ROM EUF-CMA for deterministic unsalted hash-and-sign #
Any ProbForgerCallBounded forger q_S q_H makes at most q_S + q_H total external queries.
Stateful PS-oracle handler simulating detScheme for detPSDistinguisher. Every fresh
message m (whether queried via Sign or H) draws one (y, x) pair from the PS oracle and
caches (m, (y, x)) for consistent replay across both oracles.
Multi-query PS distinguisher (D_ps) for deterministic unsalted hash-and-sign: runs the
forger using detPSHandler (at most q_S + q_H PS queries) and returns whether the forgery
verifies on an unsigned message.
detPSDistinguisher makes at most q_S + q_H queries to the PS oracle.
Stateful handler for detPSOneDistinguisher: embeds a pre-drawn target yStar at the
jStar-th fresh direct hash query (storing none as its preimage slot so a later Sign on that
message returns none), while answering all other fresh queries with sys.sampleSimPair pk.
1-query PS distinguisher (D_ps,1) for deterministic unsalted hash-and-sign: queries the
PS oracle once upfront, uses only its target component yStar, guesses jStar ← Fin (q_H + 1),
embeds yStar at the jStar-th fresh direct hash query (returning none if Sign is later
called on that message), and outputs whether the forgery succeeds at index jStar.
detPSOneDistinguisher makes at most 1 query to the PS oracle.
Stateful inverter handler for deterministic unsalted hash-and-sign: embeds the challenge
target yStar at the jStar-th fresh direct hash query (returning none if Sign is later
called on that message), and simulates all other fresh queries with sys.sampleSimPair pk.
Explicit target inverter (B_inv) for deterministic unsalted hash-and-sign: guesses
jStar ← Fin (q_H + 1), embeds yStar at the jStar-th fresh direct hash query, and outputs the
forger's candidate preimage sigStar.
Classical ROM EUF-CMA reduction for deterministic unsalted hash-and-sign
(ProbOracleComp form), original to this library (adapting the (q_H + 1) programming
argument after [KosugeXagawa2022] to unsalted detScheme): for any probabilistic ROM forger
making at most q_S signing queries and q_H direct hash queries,
Pr[EUF-CMA] ≤ (q_H + 1) * (Pr[INV(detInverter)] + Adv^PS(detPSOneDistinguisher)) +
Adv^PS(detPSDistinguisher) + (q_S + q_H).choose 2 / |Target|.
Every reduction is an explicit finite program with proved query bounds (detPSDistinguisher
makes at most q_S + q_H PS queries, detPSOneDistinguisher makes at most 1 PS query;
no runtime certificate claimed, tracked in #7068).
Classical ROM EUF-CMA reduction for deterministic unsalted hash-and-sign
(ROMSignature.eufCmaGame form), original to this library. Applies to ROMSignature.Forger
adversaries whose coin distribution A.coins is realized by a finite ProbComp A.Coins sampler
(hcoins : A.coins = ProbComp.eval coinSampler).
Extracted-model VOLE-ACT credit conservation in the lazy ROM #
An adaptive adversary in the extracted single-issuer VOLE-ACT credit-conservation game in the
lazy random-oracle model: given the issuer's public key pk, it queries the extracted issuer
oracle (Request → Option Sig) and the random oracle (Query → Digest), and outputs the target
context ctx* it claims is overspent.
Cost function counting issuer requests (.inl) of a ROMExtractedAdversary.
Cost function counting direct random-oracle queries (.inr) of a ROMExtractedAdversary.
Separate issuer-request (q_R) and direct random-oracle (q_H) call budgets for a
ROMExtractedAdversary.
Lazy-ROM extracted single-issuer VOLE-ACT handler at tag = Prod.mk:
- On an issuance request, checks
com nf ctx T r = c; if valid, signs(c, 0)using the shared lazy random oracle and appends the request to the accepted log. - On a spend request, checks
(V2)change commitment opening,(V3)natural-number balancet + x = t' + d, nullifier freshness, and(V1)scheme.verifyagainst the shared lazy random oracle; if all hold, signs(c', x')and appends the request to the accepted log. - On a direct random-oracle query, answers via
ROMSignature.oracle Digest.
Execute A in the lazy-ROM extracted VOLE-ACT credit-conservation game at tag = Prod.mk,
returning the target context, final RO cache, and oldest-first list of accepted requests.
Extracted-model single-issuer VOLE-ACT credit-conservation experiment in the lazy classical
ROM at tag = Prod.mk, original to this library: the adversary wins if, in its chosen context
targetCtx, total accepted spend debits strictly exceed total accepted issued credit plus granted
refunds. As in AnonymousToken.Conservation, VOLEitH witness extraction error and (V4) range
checks are outside this extracted-model game.
Stateful handler used by romTargetForger: simulates the lazy-ROM extracted issuer using an
external ROMSignature.ForgerSpec (Commitment × ℕ) Query Sig Digest oracle, forwarding (V1)
verification hash calls and direct hash queries to .inr and accepted (c, x) signing calls to
.inl.
Explicit target-forgery reduction from ROMExtractedAdversary to a ProbOracleComp forger
against ROMSignature.worldGame scheme _ eufCmaAccept on messages Commitment × ℕ.
Query bound for romTargetForger: if A makes at most q_R issuer requests and q_H direct
random-oracle queries, and scheme.verify makes at most vQ random-oracle queries per call, then
romTargetForger makes at most q_R signing calls and q_H + q_R * vQ random-oracle calls.
Extract a commitment-binding collision over (nullifier, context, credit) from an accepted
VOLE-ACT transcript accepted when the first uncertified spend shares its (c, x) target with an
accepted request; returns a trivial non-collision otherwise.
Generic ROM commitment-binding experiment induced by runROMExtractedConservation against a
keyless commitment scheme CS.
Generic lazy-ROM extracted credit-conservation reduction at tag = Prod.mk, original to
this library: for any ROM signature scheme
scheme : ROMSignature.Scheme PK SK (Commitment × ℕ) Sig Query Digest, any keyless commitment
scheme CS whose verifier checks com nf ctx t o = c under every key, and any
ROMExtractedAdversary A, overspending in romExtractedConservationExperiment is bounded by the
ROM EUF-CMA success of romTargetForger com scheme A plus the commitment-binding probability
romBindingExperiment com CS scheme A.
Concrete ProbComp commitment-binding reductions and end-to-end UOV conservation #
Verification of detScheme makes at most 1 random-oracle query.
Verification of saltedScheme makes at most 1 random-oracle query.
Explicit ProbComp commitment-binding reduction for detScheme sys: simulates the lazy-ROM
extracted issuer with a lazy memoization table for sys.invert sk (matching upfront PMF.pi
derandomization identically) and returns romFindBindingCollision com accepted.
Explicit ProbComp commitment-binding reduction for saltedScheme sys Salt: simulates the
lazy-ROM extracted issuer directly in ProbComp and returns romFindBindingCollision com accepted.
End-to-end extracted+ROM credit conservation for deterministic unsalted hash-and-sign
(detScheme sys), original to this library: combines
romExtractedConservationExperiment_succProbability_le with detRomWorldEufCma_succProbability_le
and detCommitmentBindingReduction for any TrapdoorPreimageSystem (including idealUOVSystem)
and keyless commitment scheme CS, substituting q_S ↦ q_R and q_H ↦ q_H + q_R to obtain loss
(q_H + q_R + 1) on INV + PS_1, (q_H + 2 * q_R)-query PS advantage,
(q_R + (q_H + q_R)).choose 2 / |Target| birthday slack, and CS binding error.
End-to-end extracted+ROM credit conservation for salted hash-and-sign
(saltedScheme sys Salt), original to this library: combines
romExtractedConservationExperiment_succProbability_le with
saltedRomWorldEufCma_succProbability_le and saltedCommitmentBindingReduction for any
TrapdoorPreimageSystem (including idealUOVSystem) and keyless commitment scheme CS,
substituting q_S ↦ q_R and q_H ↦ q_H + q_R to obtain (q_H + q_R + 1) INV loss, q_R-query
PS advantage, (q_R * (q_H + q_R) + q_R.choose 2) / |Salt| salt-collision slack, and CS
binding error.