Documentation

CslibFrontier.Crypto.Computational.Commitment.PublicOperations

Efficient public operations for commitment schemes #

CommitmentScheme.PublicOperations supplies a deterministic commitment-and-opening evaluator and polynomial-time certificates for evaluation and verification. Both machines receive the key through exactly the public encoding CommitmentScheme.encodeKey; supplied randomness and all message, commitment and opening words are charged as part of the input.

An ideal PMF law for the supplied randomness recovers the scheme's existing commitment law. This is separate from an executable sampler: the record does not certify key generation, randomness sampling, or a strict-PPT implementation of the commitment distribution. In particular, an exact uniform law on a finite group need not have a strict-PPT fair-coin sampler.

This is additional evidence for an existing CommitmentScheme, rather than a new security model. Its evaluation and verification certificates use the same plain native-machine predicate as BitCommitmentScheme.

Main definitions #

Main results #

Efficient deterministic public operations for S, with an ideal supplied-randomness law. The input encoding for both certificates is S.encodeKey, so the machine receives precisely the public key word rather than additional semantic key data. The randomness field is an ideal law, not an algorithm or an efficiency certificate for sampling.

Compose a public commitment evaluator with efficient producers of its full encoded input.

theorem Cslib.Crypto.CommitmentScheme.PublicOperations.computableInPolyTime_verify {Key α : Type} {S : CommitmentScheme Key} {input : α ↪ List Bool} (ops : S.PublicOperations) {key : α → Key} {message commitment opening : α → List Bool} (hkey : Turing.MultiTapeTM.ComputableInPolyTime key input S.encodeKey) (hmessage : Turing.MultiTapeTM.ComputableInPolyTime message input Turing.MultiTapeTM.encBits) (hcommitment : Turing.MultiTapeTM.ComputableInPolyTime commitment input Turing.MultiTapeTM.encBits) (hopening : Turing.MultiTapeTM.ComputableInPolyTime opening input Turing.MultiTapeTM.encBits) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (a : α) => S.verify (key a) (message a) (commitment a) (opening a)) input Turing.MultiTapeTM.encBool

Compose the scheme's verifier with efficient producers of its full encoded input.