Documentation

CslibFrontier.Crypto.Computational.ZeroKnowledge.View

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 #

@[reducible, inline]

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.

@[reducible, inline]

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.

def Cslib.Crypto.ZKDistinguisher.IsPPT {α : Type} (enc : α ↪ List Bool) (adversary : ZKDistinguisher α) :

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.