Views and distinguishers of zero-knowledge experiments #
A zero-knowledge statement compares the view of a malicious verifier interacting with the honest prover against the output of a simulator, as seen by a distinguisher that also receives the security parameter, the instance and an auxiliary input. This module names those parts, so that statements need not spell out the prover run or the nested distinguisher input.
Main definitions #
Cslib.Crypto.zkRealView: the law of the verifier's output after interacting with a prover.Cslib.Crypto.ZKDistinguisher: a distinguisher taking(n, a, z)and a view.Cslib.Crypto.ZKDistinguisher.IsPPT: one uniform strict PPT machine reads the complete encoded input((1^n, (a, z)), view)and writes the distinguisher's bit.
The real view of a zero-knowledge experiment: the law of the output of verifier after it
interacts with the prover P from P's initial state, with P's final state discarded.
A zero-knowledge distinguisher: given the security parameter n, the instance a, an
auxiliary input word z and a view, it outputs a bit. ZKDistinguisher.IsPPT states its
efficiency on encodings.
A zero-knowledge distinguisher is PPT when one uniform strict PPT machine reads its complete
encoded input ((1^n, (a, z)), view), laid out by encPair (encInstanceAuxInput enc) encBits,
and writes its output bit.