Single-key challenge program for cascade child channels #
A client uses natural-number channels in order of first visit. The program draws a challenge index using fair bits and rejects indices outside the channel budget. It memoizes random replies on earlier channels, forwards the selected channel to a single external word oracle, and uses independent private keys for later channels. Inputs are read as fixed-width blocks and replies are capped at the state width.
Main definitions #
Cslib.Crypto.CascadeChildChallengeState: first-use cursor and lazy answer cache.Cslib.Crypto.cascadeChildChallengeHandler: one simulated child query.Cslib.Crypto.cascadeChildChallengeAtProgram: simulate the client at a fixed index and key word.Cslib.Crypto.cascadeChildChallengeWithIndex: draw keys and simulate at a specified index.Cslib.Crypto.cascadeChildChallengeProgram: sample the challenge index and private keys, then simulate the client.
Main results #
Cslib.Crypto.isQueryBounded_cascadeChildChallengeProgram: the simulation preserves the client's external query bound.Cslib.Crypto.isOraclePPTOn_cascadeChildChallengeProgram: strict oracle PPT for the sampled simulation given a strict certificate for its encoded client.
References #
- [BS23], v0.6, Section 4.6.1 (printed pp. 152–154) and Section 6.4.2 (printed pp. 229–230), for the adjacent-hybrid step.
State of the single-key simulation. The cursor counts channels already assigned, and only channels before the challenge need an answer cache.
- assigned : ℕ
Number of child channels assigned in first-use order.
Sampled ideal answers, keyed by channel number and normalized block.
Answer a request for an already assigned channel or the next unused channel, below
count. Earlier channels have independent lazy random functions, selected calls the
external oracle, and later channels use separate n-bit rows of keys.
Run the simulated child oracle from an empty state with a fixed challenge channel and key word. The sampled wrapper rejects out-of-range channels before calling this program.
A child challenge at a computed binary index is strict oracle PPT. The caller supplies the certificate for the client on the single word port.
Sample a challenge index from indexBits fair bits. If it is in range, draw one private
n-bit key per channel and run the client with the simulated child oracle. An out-of-range
index returns false before the client runs.
The sampled challenge simulation is strict oracle PPT for a client certified on the single word port. The channel budget, block width and number of fair bits are unary computations, while the sampled index stays binary even on the rejection branch.
The fixed-index simulation forwards at most one external query per client query.
Local key and answer sampling consumes no external queries. The challenge channel forwards at most one external query per client query.