Documentation

CslibFrontier.Crypto.Computational.SchnorrSignature.StatisticalROM

Actual Schnorr sampling in the adaptive random-oracle game #

schnorrEncodedROMScheme takes its key law and scalar-nonce law as parameters. The native scheme schnorrNativeROMScheme samples with schnorrSigKeyGen and sampleExp, each within statistical distance 2⁻ⁿ of the ideal uniform law, and the typed Fiat–Shamir bound (succProbability_eufCmaGame_schnorrWordROMScheme_le) is proved for the ideal laws. This module moves a forger from the actual laws to the ideal ones in the existing EUF-CMA game:

For a forger making at most Qs signing calls the total is (Qs + 1) / 2 ^ n. For a native oracle-PPT forger and a deterministic group family whose encoded descriptions have polynomial length, the saved-coin adapter of WordRandomOracle supplies the call budget, so the bound needs no assumed query cap. These are statistical transport laws for the existing games; they do not certify the forking reduction.

Main results #

References #

Original compositions of the existing sampler, stateful replacement and representation laws.

Adaptive signing pays one sampler error per signing request, retaining all output and state. The secret key is an arbitrary word, and the cache and log may already contain entries.

The actual key and nonce distributions of the native scheme cost at most one key error plus one error per signing call. The final verification uses the same cache; repeated signing requests remain allowed. The right side is the existing canonical word game, with total outer signature decoding.

theorem Cslib.Crypto.PrimeOrderGroupFamily.exists_closeTo_wordEufCmaGame_schnorrNativeROMScheme (F : PrimeOrderGroupFamily) (description : ℕ → F.Desc) (hdescription : PolynomiallyBounded fun (n : ℕ) => (F.encDesc (description n)).length) (width : ℕ → ℕ) (hwq : ∀ (n : ℕ), 2 ^ width n ≤ F.order (description n)) {program : ℕ → List Bool → Probability.WordOracleComp Bool (List Bool × List Bool)} (hprogram : Probability.IsOraclePPT (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) program) :
∃ (k : ℕ) (Control : Type) (_ : Finite Control) (machine : Turing.MultiTapePTM k Bool Control Bool) (c : ℕ) (e : ℕ) (keyC : ℕ) (keyD : ℕ), Probability.IsOraclePPTOn Protocols.ROMSignature.encReplayInput (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) (Protocols.ROMSignature.savedWordReplay machine (fun (op : Bool) (word : List Bool) => ProbOracleComp.query (op, word)) c e keyC keyD) ∧ ∀ (n : ℕ), have A := Protocols.ROMSignature.savedCoinForger machine (Turing.MultiTapeTM.encBitString (width n)) c e keyC keyD n; have budget := Probability.savedCoinBudget c e keyC keyD n; A.CallBounded budget budget ∧ Probability.CloseTo (Protocols.ROMSignature.wordEufCmaGame (Turing.MultiTapeTM.encBitString (width n)) (F.schnorrNativeROMScheme n (description n) (width n)) (program n)) (Protocols.ROMSignature.eufCmaGame (F.schnorrWordROMScheme (description n) ⋯) (F.schnorrDecodedForger (description n) A)) (↑(budget + 1) * ↑(1 / 2 ^ n))

An actual native forger gets one efficient replay and one parameter-only polynomial query budget from actual key-generation support. Descriptions here are a fixed deterministic family whose encoded length is polynomial in the security parameter; the family need not be computable, and this does not assert a random-setup routing theorem. The word forger's game retains the actual key and nonce laws of the native scheme before statistical transport.