Efficient simulation, extraction and verification under statement maps #
Transfers EfficientSpecialHVZK, EfficientSpecialSoundness and EfficientVerifier along a
statement map g whose word representation gw : I × List Bool → List Bool is deterministic
polynomial time ([BS23], Section 20.2, p. 829). Also provides
EfficientSpecialSoundness.mapWitness to post-process an efficient extractor by a polynomial-time
witness map back.
Efficiency of the derived honest prover (which applies f) is not formalized here, because the
library has no efficiency predicate for Sigma-protocol honest provers.
Main definitions #
Cslib.Crypto.Protocols.SigmaProtocol.Encoding.withStatement: replace the statement encoding of anEncodingfor a derived Sigma protocol family.
Main results #
Cslib.Crypto.Protocols.SigmaProtocol.EfficientSpecialHVZK.comap: transfer strict-PPT special HVZK simulation under condition (i) and a polynomial-time word mapgwrealizingg.Cslib.Crypto.Protocols.SigmaProtocol.EfficientSpecialSoundness.comap: transfer polynomial-time special-soundness extraction for "wis a witness ofg y".Cslib.Crypto.Protocols.SigmaProtocol.EfficientSpecialSoundness.mapWitness: post-process an efficient extractor with a polynomial-time witness map back.Cslib.Crypto.Protocols.SigmaProtocol.EfficientVerifier.comap: transfer polynomial-time verification along a polynomial-time word mapgwrealizingg.
Efficient special HVZK is inherited under condition (i) when the statement map is polynomial
time on encodings: the derived simulator computes g and runs the simulator of P'.
Efficient special soundness is inherited for the relation "w is a witness of g y" when
the statement map is polynomial time on encodings: the derived extractor computes g and runs the
extractor of P'.
Post-process an efficient extractor by a witness map that is polynomial time on encodings.
Efficient verification is inherited when the statement map is polynomial time on encodings:
the derived verifier computes g and runs the verifier of P'.