Documentation

CslibFrontier.Crypto.Computational.TreeSignature.IdealToLazy

Ideal-to-lazy coin hybrid for stateless tree signatures #

Proves the first post-PRF game hop toward [BS23], Section 14.6.3, Theorem 14.6, p. 600 (binary case q = 2): replacing the uniform random function supplying coins in treeIdealGame with lazy node keys and edge signatures plus leaf-collision aborts (lazyTreeGame) loses at most (Q ^ 2 : ℝ≥0) / 2 ^ (depth n + 1) across any Q-query adversary, whenever the coin-request width N n covers all padded tree requests (2 * depth n + 4 ≤ N n) and seeded key/signature coin budgets.

Main results #

References #

theorem Cslib.Crypto.TreeSignature.succProbability_treeIdealGame_le_lazy (S : IndexedSignatureScheme) (T : S.Seeded) (depth N : ℕ → ℕ) {n Q : ℕ} (hdepth_pos : 1 ≤ depth n) (hwidth : 2 * depth n + 4 ≤ N n) (hkgBudget : T.keyGenBudget n ≤ N n) (hsgBudget : ∀ keys ∈ (S.keyGen n).eval.support, ∀ u ≤ 1, ∀ (msg : List Bool), TreeMsg S n msg → T.signBudget keys.2 u msg ≤ N n) (adversary : Forger) (hq : ∀ root ∈ (S.keyGen n).eval.support, ProbOracleComp.IsQueryBounded (adversary n ((Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits) (n, root.1))) Q) :
Game.succProbability (treeIdealGame S T depth N adversary n).eval ≤ Game.succProbability (lazyTreeGame S depth adversary n).eval + ↑Q ^ 2 / 2 ^ (depth n + 1)

From ideal coins to lazy tree signing: when N n covers all padded tree request widths and seeded key/signature coin budgets, replacing the uniform random function in treeIdealGame with lazy node keys, lazy edge signatures, and leaf-collision aborts (lazyTreeGame) loses at most (Q ^ 2 : ℝ≥0) / 2 ^ (depth n + 1) across any Q-query adversary.