Replacing a forger by saved-coin interactions #
Equality of joint output and arbitrary external state is sufficient to replace a probabilistic forger by a mixture of fixed-coin programs in the existing shared-world game. The handler state includes both the cache and signing log, and verification continues with the resulting cache.
Main results #
Cslib.Crypto.Protocols.ROMSignature.eval_worldRealize_eq_bind: shared-world mixture law.
References #
Original consequence of the existing stateful interpreter composition laws.
theorem Cslib.Crypto.Protocols.ROMSignature.eval_worldRealize_eq_bind {PK SK M Sig Query Digest Coins : Type} [DecidableEq Query] [Fintype Digest] [Nonempty Digest] (scheme : Scheme PK SK M Sig Query Digest) (pk : PK) (sk : SK) (program : ProbOracleComp (ForgerSpec M Query Sig Digest) (M × Sig)) (coins : PMF Coins) (replay : Coins → OracleComp (ForgerSpec M Query Sig Digest) (M × Sig)) (h :
∀ (Store : Type) (handler : (q : M ⊕ Query) → StateT Store PMF (ForgerSpec M Query Sig Digest q)) (s : Store),
ProbOracleComp.runWith handler program s = coins.bind fun (r : Coins) => ProbOracleComp.runWith handler (liftOracleForger (replay r)) s) (accept : Bool → M × Sig → List (M × Sig) → Bool) :
(world scheme sk).eval (worldRealize scheme pk program accept) = coins.bind fun (r : Coins) => (world scheme sk).eval (worldRealize scheme pk (liftOracleForger (replay r)) accept)
A saved-coin decomposition valid for every stateful handler preserves any shared-world acceptance rule, including final-message freshness with repeated signing queries allowed.