Documentation

CslibFrontier.Crypto.Computational.IndexedSignature.Seeded

Seeded deterministic algorithms of an indexed signature scheme #

Stateless tree signatures ([BS23], Section 14.6.3) derive the key pair of every tree node, and every signature of an internal node, from pseudorandom coins, so that repeated invocations of the signer reproduce the same keys and signatures. This needs the key generation and signing algorithms of the underlying indexed scheme as deterministic functions of explicit coins. IndexedSignatureScheme.Seeded packages such evaluators with their coin budgets: every coin word yields a supported result, and uniform coins of at least the budget reproduce the algorithm's distribution exactly. IndexedSignatureScheme.seeded provides one for every indexed scheme from the strict-PPT certificates (IsPPTOn.exists_total_seeded_evaluator); a scheme with naturally deterministic algorithms may supply a simpler one.

Main definitions #

Main results #

References #

Deterministic key generation and signing of the indexed scheme S on explicit coins. Every coin word gives a supported result, and uniform coins of at least the budget's length reproduce the algorithm's law exactly.

The coin budget c * (size + 1) ^ d of a seeded evaluator is polynomial time in the encoded input.

Every indexed scheme has seeded key generation with a polynomial-time budget.

theorem Cslib.Crypto.IndexedSignatureScheme.exists_signWith (S : IndexedSignatureScheme) :
∃ (signWith : List Bool × ℕ × List Bool → List Bool → List Bool) (budget : List Bool × ℕ × List Bool → ℕ), Turing.MultiTapeTM.ComputableInPolyTime (fun (p : (List Bool × ℕ × List Bool) × List Bool) => signWith p.1 p.2) (Turing.MultiTapeTM.encPair encIndexedSignInput Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits ∧ Turing.MultiTapeTM.ComputableInPolyTime budget encIndexedSignInput Turing.MultiTapeTM.encUnary ∧ (∀ (a : List Bool × ℕ × List Bool) (coins : List Bool), match a, coins with | (sk, u, msg), coins => signWith a coins ∈ (S.sign sk u msg).eval.support) ∧ ∀ (a : List Bool × ℕ × List Bool) (length : ℕ), budget a ≤ length → match a with | (sk, u, msg) => (S.sign sk u msg).eval = PMF.map (signWith a) (BitString.uniformList length)

Every indexed scheme has seeded signing with a polynomial-time budget.

The seeded algorithms of any indexed scheme, read off its strict-PPT certificates.