Adaptive straight-line random-oracle knowledge soundness of the BCS transform #
Defines the combined BCS execution bcsExecROM and the zero-rewinding straight-line knowledge
soundness experiment bcsKnowledgeSoundnessGame (which extracts a candidate witness directly from
the prover's pre-verifier Merkle query trace tr_P), and proves explicit non-asymptotic bounds on
extraction failure (bcsROMKnowledgeSoundness_trace_bound, bcsROMKnowledgeSoundness_bound,
bcsROMKnowledgeSoundness_bound_of_prover_verifier) from IOPRoundByRoundKnowledgeSoundness
([BSCS16]; compare [CY24], Theorem 26.1.1 and Construction 26.1.3,
printed pp. 288–291, and Chapter 31, Definition 31.1.6 and Theorem 31.3.1).
Main definitions #
Cslib.Crypto.Protocols.BCS.bcsExecROM: combined prover-and-verifier execution in the two-channel BCS random-oracle model.Cslib.Crypto.Protocols.BCS.bcsKnowledgeSoundnessGame: straight-line ROM knowledge-soundness experiment extractingbcsExtractWitnessfrom the prover's Merkle tracetr_Pbefore runningbcsVerifyROM.Cslib.Crypto.Protocols.BCS.BCSExtractionFails: trace-level extraction-failure event on an output ofbcsExecROM.
Main results #
Cslib.Crypto.Protocols.BCS.isCostBounded_bcsFSCost_bcsExecROM,Cslib.Crypto.Protocols.BCS.isCostBounded_bcsMTCost_bcsExecROM: per-channel query-cost bounds forbcsExecROM.Cslib.Crypto.Protocols.BCS.bcsROMKnowledgeSoundness_trace_bound,Cslib.Crypto.Protocols.BCS.bcsROMKnowledgeSoundness_bound,Cslib.Crypto.Protocols.BCS.bcsROMKnowledgeSoundness_bound_of_prover_verifier: adaptive straight-line ROM knowledge-soundness bounds without rewinding.
References #
- E. Ben-Sasson, A. Chiesa, N. Spooner, Interactive Oracle Proofs
- A. Chiesa, E. Yogev, Building Cryptographic Proofs from Hash Functions, Chapter 26 (Theorem 26.1.1 and Construction 26.1.3) and Chapter 31 (Definition 31.1.6 and Theorem 31.3.1).
Combined prover-and-verifier execution in the two-channel BCS random-oracle model: runs P to
obtain (x, prf) and then runs bcsVerifyROM iop encSym x prf, returning ((x, prf), ok).
Straight-line BCS ROM knowledge soundness experiment (bcsKnowledgeSoundnessGame), run
once in the memoized two-channel ROM bcsMemoize σ from the empty traces ([], []):
- the cheating prover
Poutputs(x, prf); - the Merkle trace
tr_Precorded so far (the prover's own queries) gives the candidate witnessw := bcsExtractWitness iopExtract decSym defaultSym tr_P x prf.roots, straight-line fromtr_Palone, before the verifier runs and with zero rewinding; bcsVerifyROM iop encSym x prfcontinues in the same oracle to obtainok;- the game outputs
trueiffok = trueand¬ rel x w.
Straight-line extraction failure on an output (((x, prf), ok), (tr_MT, tr_FS)) of
bcsExecROM under bcsMemoize σ: the verifier accepts (ok = true), but the witness
bcsExtractWitness iopExtract decSym defaultSym tr_MT x prf.roots extracted from the Merkle trace
tr_MT fails rel x.
Trace-level straight-line BCS ROM knowledge soundness bound: on a combined execution of
bcsExecROM iop encSym P under bcsMemoize σ, the probability of BCSExtractionFails (the
verifier accepts (x, prf) while the witness extracted from the final Merkle trace tr_MT fails
rel x) is at most
(t_FS + r) * (ε_rbr + (t_FS + r) * (1 / Fintype.card Chal)) +
Q_MT * ((3 * Q_MT + r * (t_FS + r)) * (1 / 2 ^ σ)).
Adaptive straight-line BCS ROM knowledge soundness theorem (compare state-restoration
knowledge soundness and direct extraction in [BSCS16] and [CY24],
Theorem 26.1.1 and Construction 26.1.3, printed pp. 288–291, and the round-by-round reduction in
[CY24], Chapter 31, Definition 31.1.6 and Theorem 31.3.1): under
IOPRoundByRoundKnowledgeSoundness iop rel iopExtract doomed goodStep with per-round challenge
escape probability ≤ ε_rbr, for any adaptive cheating prover P making at most t_FS
Fiat–Shamir queries such that bcsExecROM iop encSym P makes at most Q_MT Merkle hash queries,
the probability that bcsVerifyROM accepts (x, prf) while the straight-line witness
bcsExtractWitness iopExtract decSym defaultSym tr_P x prf.roots (extracted from the prover's own
Merkle trace tr_P with zero rewinding, before running the verifier) fails rel x is at most
(t_FS + r) * (ε_rbr + (t_FS + r) * (1 / Fintype.card Chal)) +
Q_MT * ((3 * Q_MT + r * (t_FS + r)) * (1 / 2 ^ σ)).
Adaptive straight-line BCS ROM knowledge soundness (separate prover/verifier Merkle budgets on
P.support): if P makes at most t_MT Merkle hash queries and t_FS Fiat–Shamir queries, and
bcsVerifyROM iop encSym x prf makes at most q_V Merkle hash queries for outputs (x, prf) ∈ P.support, then bcsKnowledgeSoundnessGame fails straight-line witness extraction on an accepted
proof with probability at most
(t_FS + r) * (ε_rbr + (t_FS + r) * (1 / Fintype.card Chal)) +
(t_MT + q_V) * ((3 * (t_MT + q_V) + r * (t_FS + r)) * (1 / 2 ^ σ)).