Stateless tree signature reduction and coin-request interface #
Defines the intermediate lazy tree game lazyTreeGame and the planted-node indexed-forgery
reduction indexedForger for the security proof of TreeSignature.scheme ([BS23],
Section 14.6.3, Theorem 14.6, p. 600, binary case q = 2). Splitting these definitions and
coin-request width/injectivity lemmas out of
CslibFrontier.Crypto.Computational.TreeSignature.Security lets the three main proof components
(ForgerEfficiency, IdealToLazy, and LazyToIndexed) elaborate in parallel without sharing
private imports.
Main definitions #
Cslib.Crypto.TreeSignature.TreeMsg: admissible messages signed inside the tree scheme (outern-bit user messages or supported node verification keys fromS.keyGen n).Cslib.Crypto.TreeSignature.NodeSlotCache,Cslib.Crypto.TreeSignature.NodeKeyCache,Cslib.Crypto.TreeSignature.EdgeSigCache: association-list caches keyed by tree paths and edges.Cslib.Crypto.TreeSignature.TreeLog,Cslib.Crypto.TreeSignature.TreeState: named records for the signing query/leaf/abort log (queried,seenLeaves,bad) and the full handler state pairing an algorithm-specific cacheinnerwithlog : TreeLog.Cslib.Crypto.TreeSignature.LazyCaches,Cslib.Crypto.TreeSignature.LazyTreeState,Cslib.Crypto.TreeSignature.LazyCertState,Cslib.Crypto.TreeSignature.certifyStepLazy,Cslib.Crypto.TreeSignature.certifyLazy,Cslib.Crypto.TreeSignature.lazySignHandler,Cslib.Crypto.TreeSignature.lazyTreeGame: intermediate tree forging game with lazy node keys, lazy edge signatures, and leaf-collision abort.Cslib.Crypto.TreeSignature.PlantedCaches,Cslib.Crypto.TreeSignature.PlantedState,Cslib.Crypto.TreeSignature.initPlantedState,Cslib.Crypto.TreeSignature.plantNodeKeys,Cslib.Crypto.TreeSignature.visitNodeM,Cslib.Crypto.TreeSignature.signEdgeRaw,Cslib.Crypto.TreeSignature.signEdgeM,Cslib.Crypto.TreeSignature.SlotCertState,Cslib.Crypto.TreeSignature.PlantedCertState,Cslib.Crypto.TreeSignature.certifyStepPlanted,Cslib.Crypto.TreeSignature.certifyPlanted,Cslib.Crypto.TreeSignature.plantedTreeHandler,Cslib.Crypto.TreeSignature.extractForgery,Cslib.Crypto.TreeSignature.indexedForgerAt,Cslib.Crypto.TreeSignature.indexedForger: the planted-node reduction from stateless tree forgery to indexed forgery.
Main results #
Cslib.Crypto.TreeSignature.length_keyInput,Cslib.Crypto.TreeSignature.length_signInput,Cslib.Crypto.TreeSignature.keyInput_injective,Cslib.Crypto.TreeSignature.signInput_injective,Cslib.Crypto.TreeSignature.keyInput_ne_signInput,Cslib.Crypto.TreeSignature.padRequest_keyInput_injective,Cslib.Crypto.TreeSignature.padRequest_signInput_injective,Cslib.Crypto.TreeSignature.padRequest_keyInput_ne_signInput: request widths and disjointness under padding.Cslib.Crypto.TreeSignature.exists_treeCoinBudget: polynomial-time unary coin budget covering all tree request widths and seeded key/signature coin budgets.Cslib.Crypto.TreeSignature.exists_sigCap_polyTime: polynomial-time unary upper bound on the bit-length of every supported edge signature.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 14.6.3, Theorem 14.6, p. 600.
Request lengths, injectivity, and coin/signature budgets #
Admissible messages signed inside the tree scheme at security parameter n: either outer
n-bit user messages or supported node verification keys from S.keyGen n.
Every seeded indexed signature scheme admits a polynomial-time unary coin budget covering all
tree request widths (2 * depth n + 4), key-generation budgets, and signing budgets on supported
keys and messages (n-bit messages or supported public keys).
Every indexed signature scheme admits a polynomial-time unary upper bound on the length of
every supported signature issued on n-bit messages or supported public keys at index u ≤ 1.
Lazy tree game definitions #
Association-list cache assigning node paths to pre-sampled slot indices.
Association-list cache memoizing node keys (pk, sk) by path.
Association-list cache memoizing signatures by (path, u).
Per-game signing query log shared by the lazy and planted tree handlers: queried messages, sampled leaves, and the leaf-collision abort flag.
Messages submitted to the signing oracle (most recent first).
Leaves sampled during non-aborting signing queries (most recent first).
- bad : Bool
Sticky abort flag set once a sampled leaf repeats a member of
seenLeaves.
Instances For
Lazily populated node-key and edge-signature caches of lazyTreeGame.
- nodes : NodeKeyCache
Memoized
(pk, sk)node key pairs indexed by tree path. - edges : EdgeSigCache
Memoized edge signatures indexed by
(path, u).
Instances For
State of the lazy tree signing handler: node keys, edge signatures, and signing log
TreeLog.
Chain state during certifyLazy: active certification chain paired with LazyCaches.
- chain : CertState
Active certification chain along the leaf prefix.
- caches : LazyCaches
Lazily populated node-key and edge-signature caches.
Instances For
One step of lazy certification along leaf: memoize the child's key from S.keyGen n and
memoize the parent's signature on the child's public key from S.sign.
Lazily certify the path along leaf from root for depth n - 1 steps.
Signing handler of lazyTreeGame: check msg.length = n, sample a uniform leaf, abort with
[] if a leaf collision occurs (or has already occurred), and otherwise lazily certify the path
and sign msg.
Intermediate tree forging game ([BS23], proof of Theorem 14.6): node keys and
internal/leaf signatures are sampled lazily from S.keyGen and S.sign, and signing returns []
once any leaf is sampled twice.
The planted-node reduction (indexedForger) #
Visited node-to-slot and edge-signature caches of plantedTreeHandler.
- visited : NodeSlotCache
Memoized slot assignments
(path, slotIdx)for visited tree nodes. - edges : EdgeSigCache
Memoized edge signatures indexed by
(path, u).
Instances For
State of plantedTreeHandler: visited node-to-slot cache, edge-signature cache, and signing
log TreeLog.
Initial state of plantedTreeHandler: the root [] occupies slot 0.
Pre-sample dyadicSize (slotBound n) node key pairs, planting (vk, []) at min target (dyadicSize (slotBound n) - 1).
Assign path its cached slot or the next available slot min visited.length cap.
Produce an edge signature at slot idx and index u on msg, querying the external indexed
signing oracle when idx = target and running S.sign locally otherwise, capped at sigCap
bits.
Memoize signEdgeRaw on (path, u) in edges.
Chain state during certifyPlanted: SlotCertState paired with PlantedCaches.
- chain : SlotCertState
Active slot-indexed certification chain along the leaf prefix.
- caches : PlantedCaches
Visited node-to-slot and edge-signature caches.
Instances For
One step of planted certification along leaf.
Certify depth n - 1 steps from the root [] at slot 0 using planted keys.
Signing handler of indexedForgerAt: answer n-bit signing queries along uniform leaves,
aborting with [] on leaf collisions, and delegating signatures at slot target to the external
indexed signing oracle.
Extract a candidate indexed forgery (u, m, σ) for the key planted at target from a tree
forgery (msg, sig) and the visited-node cache visited: look up the unique path assigned to
target, and output either the child-key certificate at depth path.length (when internal) or the
final message signature (u, msg, last) (when at depth d - 1).
The indexed forger with its challenge verification key planted at slot target.
The indexed forger: sample a uniform dyadic slot target < dyadicSize (slotBound n) and run
indexedForgerAt.