Documentation

CslibFrontier.Crypto.Computational.TreeSignature.LazyToIndexed

Lazy-tree to indexed-forgery reduction for stateless tree signatures #

Proves the second post-PRF game hop toward [BS23], Section 14.6.3, Theorem 14.6, p. 600 (binary case q = 2): pre-sampling dyadicSize (slotBound n) node key pairs and planting the indexed challenge verification key at a uniform dyadic slot target simulates lazyTreeGame exactly whenever Q * depth n ≤ slotBound n and every edge signature fits in sigCap n bits. Any valid tree forgery on a fresh n-bit message yields an indexed forgery at the deepest visited node along the forged path (extractForgery).

Main results #

References #

Simulation of plantedTreeHandler + indexedSigningOracle by localTreeHandler #

Equivalence between lazyTreeGame and presampledExp #

Query-bounded invariant on presampledExp and forgery extraction #

theorem Cslib.Crypto.TreeSignature.succProbability_lazyTreeGame_le (S : IndexedSignatureScheme) (depth slotBound sigCap : ℕ → ℕ) {n Q : ℕ} (hcap : 2 ≤ S.capacity n) (hdepth_pos : 1 ≤ depth n) (hslot : Q * depth n ≤ slotBound n) (hsigCap : ∀ keys ∈ (S.keyGen n).eval.support, ∀ u ≤ 1, ∀ (msg : List Bool), TreeMsg S n msg → ∀ σ ∈ (S.sign keys.2 u msg).eval.support, σ.length ≤ sigCap 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 (lazyTreeGame S depth adversary n).eval ≤ ↑(Probability.dyadicSize (slotBound n)) * Game.succProbability (S.indexedEufCmaGame (indexedForger S depth slotBound sigCap adversary) n).eval

From lazy tree signing to indexed forgery: when Q * depth n ≤ slotBound n and sigCap n bounds all supported edge signature lengths, the forging probability in lazyTreeGame is at most dyadicSize (slotBound n) times indexedForger's forging probability against S.