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 #
Cslib.Crypto.IndexedSignatureScheme.Seeded: seeded key generation and signing with budgets.Cslib.Crypto.IndexedSignatureScheme.seeded: the seeded algorithms of any indexed scheme.
Main results #
Cslib.Crypto.IndexedSignatureScheme.exists_keyGenWith,Cslib.Crypto.IndexedSignatureScheme.exists_signWith: seeded evaluators with polynomial-time budgets exist for every indexed scheme.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 14.6.2, "Generating internal keys using a PRF", and Exercise 13.6.
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.
Key generation at parameter
nfrom the coin word.The number of coins key generation at parameter
nneeds.Signing
msgat indexuunderskfrom the coin word.The number of coins signing
msgat indexuunderskneeds.- keyGenWith_polyTime : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : ℕ × List Bool) => self.keyGenWith p.1 p.2) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits)
- keyGenBudget_polyTime : Turing.MultiTapeTM.ComputableInPolyTime self.keyGenBudget Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
- eval_keyGen (n length : ℕ) : self.keyGenBudget n ≤ length → (S.keyGen n).eval = PMF.map (self.keyGenWith n) (BitString.uniformList length)
- signWith_polyTime : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : (List Bool × ℕ × List Bool) × List Bool) => self.signWith p.1.1 p.1.2.1 p.1.2.2 p.2) (Turing.MultiTapeTM.encPair encIndexedSignInput Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits
- signBudget_polyTime : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : List Bool × ℕ × List Bool) => self.signBudget p.1 p.2.1 p.2.2) encIndexedSignInput Turing.MultiTapeTM.encUnary
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.
Every indexed scheme has seeded signing with a polynomial-time budget.
The seeded algorithms of any indexed scheme, read off its strict-PPT certificates.