Straight-line multi-round oracle-table reconstruction for the BCS transform #
Straight-line reconstruction of depth-d IOP oracle tables, witnesses, and Merkle hash collisions
from a recorded Merkle query-answer trace tr_MT for the multi-round Ben-Sasson–Chiesa–Spooner
(BCS) transformation ([BSCS16]; compare [CY24], Chapter 18,
Construction 18.5.3 and Lemma 18.5.7, printed pp. 199 and 204–207, and Construction 26.1.3,
printed pp. 290–291).
Main definitions #
Cslib.Crypto.Protocols.BCS.bcsExtractTable,Cslib.Crypto.Protocols.BCS.bcsExtractOracles,Cslib.Crypto.Protocols.BCS.bcsExtractWitness: straight-line reconstruction of a single round table, allrround tables, and a candidate IOP witness from a Merkle query tracetr_MT.Cslib.Crypto.Protocols.BCS.BCSOpeningsQueriedInTrace: predicate recording that every Merkle authentication path opened in aBCSProofhas all of its hash steps present intr_MT.Cslib.Crypto.Protocols.BCS.bcsFindTraceConflict,Cslib.Crypto.Protocols.BCS.bcsExtractTraceCollision: deterministic search for a conflicting BCS opening and extraction of an explicit Merkle hash collision fromtr_MT.
Main results #
Cslib.Crypto.Protocols.BCS.bcsExtractTable_eq_of_merkleVerify,Cslib.Crypto.Protocols.BCS.iopVerify_bcsExtractOracles_of_bcsVerify: on a collision-free trace covering all opened paths of an accepted BCS proof,bcsExtractOraclesagrees with every opened symbol and is accepted byiopVerify.Cslib.Crypto.Protocols.BCS.exists_collision_of_bcsVerify_of_iopVerify_eq_false,Cslib.Crypto.Protocols.BCS.bcs_trace_sound_or_collision,Cslib.Crypto.Protocols.BCS.isCollision_bcsExtractTraceCollision: on a trace consistent withH kcovering all opened paths of an accepted BCS proof, eitheriopVerifyacceptsbcsExtractOraclesorbcsExtractTraceCollisiondeterministically outputs a collision forH k.Cslib.Crypto.Protocols.BCS.bcsExtractTable_cons_of_ne,Cslib.Crypto.Protocols.BCS.bcsExtractOracles_cons_of_ne: prepending a fresh Merkle query whose digest avoids target roots and existing child digests leaves straight-line extraction unchanged.
References #
- E. Ben-Sasson, A. Chiesa, N. Spooner, Interactive Oracle Proofs
- A. Chiesa, E. Yogev, Building Cryptographic Proofs from Hash Functions, Chapter 18 (Construction 18.5.3 and Lemma 18.5.7) and Chapter 26 (Construction 26.1.3).
Straight-line extraction of a depth-d IOP oracle table over Sym committed under Merkle root
rt from a recorded Merkle hash trace tr_MT: decodes each leaf returned by
extractLeafFromTrace via decSym, defaulting to defaultSym on unqueried positions
([BSCS16]; [CY24], Construction 18.5.3 and Lemma 18.5.7).
Straight-line extraction of all r committed round oracle tables from a Merkle trace tr_MT
and root vector roots : Fin r → List Bool.
Straight-line BCS knowledge extractor: reconstructs the r committed IOP oracle tables from
tr_MT via bcsExtractOracles and applies the underlying straight-line IOP extractor iopExtract.
Every Merkle opening ((j, idx), ⟨val, path⟩) checked by iop.queries x chals against
prf.openings has all of its hash steps recorded in tr_MT.
Instances For
If tr_MT is collision-free and records the authentication path of an opening (val, path) at
idx accepted by merkleVerify, then bcsExtractTable recovers val.
Fixed-trace consistency of bcsExtractOracles ([CY24], Lemma 18.5.7): if
tr_MT is collision-free and records all hash steps of the openings in prf, then whenever
bcsVerify accepts prf, iopVerify accepts the extracted oracle tables bcsExtractOracles at
bcsChallenge hFS x prf.roots.
Dual collision extraction for bcsExtractOracles: if tr_MT is consistent with H k and
records all opened paths of a proof accepted by bcsVerify, yet iopVerify rejects
bcsExtractOracles, then tr_MT contains two distinct queries with the same hash under H k.
Find the first query-opening pair ((j, idx), ⟨val, path⟩) in a BCS proof where straight-line
Merkle leaf extraction extractLeafFromTrace disagrees with some (encSym val).
Deterministic trace collision extractor for the BCS transform: find the first query
position where prf opens a symbol that disagrees with extractLeafFromTrace tr_MT and run
extractTraceCollision on that opening.
Trace-extraction binding (bcs_trace_sound_or_collision): if tr_MT is consistent with
H k and records all opened authentication paths of an accepted BCS proof prf, then either the
IOP verifier accepts bcsExtractOracles at bcsChallenge hFS x prf.roots, or
bcsExtractTraceCollision deterministically extracts a hash collision for H k.
If the IOP verifier rejects bcsExtractOracles on a consistent trace tr_MT covering all
opened paths of an accepted BCS proof prf, then bcsExtractTraceCollision deterministically
outputs a hash collision for H k.
Prepending (q, ans) to tr_MT leaves bcsExtractTable at rt unchanged whenever ans ≠ rt
and ans does not equal unframe p.1 or dropFrame p.1 for any p ∈ tr_MT.
Prepending (q, ans) to tr_MT leaves bcsExtractOracles on roots unchanged whenever ans
avoids all roots j and all left/right child digests of tr_MT.