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 #
Cslib.Crypto.CommitmentScheme.PublicOperations: public deterministic operations, their polynomial-time certificates, and their exact relationship to the ideal commitment law.
Main results #
Cslib.Crypto.CommitmentScheme.PublicOperations.computableInPolyTime_commit,Cslib.Crypto.CommitmentScheme.PublicOperations.computableInPolyTime_verify: composition with efficiently produced public keys and words.
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.
Compute a commitment and opening from a public key, message and supplied randomness word.
Ideal law of the supplied randomness, independent of the message. No sampler is bundled.
- map_commit (k : Key) (m : List Bool) : PMF.map (self.commit k m) (self.randomness k) = S.commitDist k m
Evaluation on the ideal randomness law gives exactly the existing commitment distribution.
- commit_polyTime : Turing.MultiTapeTM.ComputableInPolyTime (fun (x : Key × List Bool × List Bool) => match x with | (k, msg, r) => self.commit k msg r) (Turing.MultiTapeTM.encPair S.encodeKey (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits)) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits)
Deterministic evaluation is polynomial-time in the public key, message and randomness word.
- verify_polyTime : Turing.MultiTapeTM.ComputableInPolyTime (fun (x : Key × List Bool × List Bool × List Bool) => match x with | (k, msg, c, o) => S.verify k msg c o) (Turing.MultiTapeTM.encPair S.encodeKey (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits))) Turing.MultiTapeTM.encBool
Verification is polynomial-time in the public key, message, commitment and opening words.
Compose a public commitment evaluator with efficient producers of its full encoded input.
Compose the scheme's verifier with efficient producers of its full encoded input.