Multi-opening Merkle-tree commitment extraction #
Given any list of claimed openings against a Merkle root rt at depth d,
merkleExtractVector reconstructs a committed vector of length len by reading the first accepted
opening of each index (and filling unqueried slots with a default word), while
merkleVectorBindingOutput searches for two accepted openings of the same index to different
leaves:
- If
merkleVectorBindingOutputfinds any conflicting pair among accepted openings whose leaves lie inleafSpace n, then it breaksmerkleBreaksBinding(merkleBreaksBinding_merkleVectorBindingOutput), andextractMerkleCollisionextracts a collision onmerkleHashDomain leafSpace. - Otherwise every accepted opening below
lenagrees withmerkleExtractVectorat its index (getD_merkleExtractVector_eq_of_conflict_eq_none).
All extraction and conflict-search functions carry ComputableInPolyTime certificates, and
merkleVectorBindingOutput produces a MerkleBindingOutput satisfying merkleBreaksBinding for
downstream standard-model binding reductions via CollisionResistantOn.merklePositionBinding or
merklePositionBinding_of_hashFamily.
Main definitions #
Cslib.Crypto.MerkleIndexedOpening,Cslib.Crypto.encMerkleIndexedOpening: indexed Merkle openings and their framing encoding.Cslib.Crypto.merkleVerifiedOpenings,Cslib.Crypto.merkleExtractVector: filtering verified openings and reconstructing the committed leaf vector.Cslib.Crypto.merkleOpeningConflict,Cslib.Crypto.merkleVectorBindingOutput: finding a disagreeing pair of openings as aMerkleBindingOutput.
Main results #
Cslib.Crypto.length_merkleExtractVector: the extracted vector has lengthlen.Cslib.Crypto.merkleBreaksBinding_merkleVectorBindingOutput,Cslib.Crypto.getD_merkleExtractVector_eq_of_conflict_eq_none,Cslib.Crypto.getD_merkleExtractVector_or_merkleBreaksBinding: either all verified openings belowlenagree with the extracted vector, ormerkleVectorBindingOutputbreaks position binding (and yields a hash collision onmerkleHashDomain leafSpace).Cslib.Crypto.computableInPolyTime_merkleVerifiedOpenings,Cslib.Crypto.computableInPolyTime_merkleExtractVector,Cslib.Crypto.computableInPolyTime_merkleVectorBindingOutput: uniform polynomial-time certificates for multi-opening extraction and conflict detection.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 8.9.1 (Definitions 8.3 and 8.4, Attack Game 8.2, Theorem 8.8).
- B. Barak, O. Goldreich, Universal Arguments and their Applications, Construction 3.4 (locator not re-verified against primary PDF).
An indexed Merkle opening pairs a leaf position with a bit-string leaf opening.
- position : ℕ
The leaf index opened.
The claimed bit-string leaf and authentication path.
Instances For
The encoding of an indexed Merkle opening: the unary index, then the bit-string opening.
The tuple of the fields of encMerkleIndexedOpening.
Reconstruct a len-entry leaf vector from openings by taking the first opening matching
each index below len, falling back to defaultLeaf at unopened positions.
Find the first pair of entries in openings that open the same index to different leaves.
Convert the first conflict in openings against root into a MerkleBindingOutput.
If every entry in openings is verified at depth d against root and lies in
leafSpace n, then any conflicting pair at the same index makes merkleVectorBindingOutput break
position binding.
When merkleOpeningConflict openings = none, every entry below len agrees with
merkleExtractVector.
Commitment-vector consistency or position-binding break: filtering openings to verified
openings below len, either every verified opening in openings below len agrees with the
reconstructed vector merkleExtractVector, or merkleVectorBindingOutput breaks
merkleBreaksBinding (assuming verified openings have leaves in leafSpace n).
Filtering verified indexed openings takes polynomial time.
Reconstructing merkleExtractVector from indexed openings takes polynomial time.
Searching openings for a conflicting leaf pair takes polynomial time.
Constructing merkleVectorBindingOutput takes polynomial time.