Efficient extractors and simulators for interactive reductions #
Interactive.Verifier.KnowledgeSound and Interactive.Reduction.HVZK name their extractor and
simulator but place no efficiency requirement on them. Without one, knowledge soundness says no
more than soundness, and HVZK says no more than honest-verifier witness indistinguishability
(test modules CslibFrontierTests.InteractiveKnowledgeSound and
CslibFrontierTests.UnboundedSimulators). This module adds the efficient variants.
Efficiency is uniform over a family of reductions indexed by i : I, typically a unary security
parameter together with a system parameter. Statements, witnesses and protocol shapes may depend
on the index, so the algorithms are certified on words, through the encodings collected in an
Interactive.Encoding.
Verifier.EfficientKnowledgeSound V relIn relOut enc encOut encIn E ε: at every indexE iis a straight-line extractor with errorε i, and one deterministic polynomial-time function of words computes the whole family (ExtractorRealizedBy).Reduction.EfficientHVZK R rel enc Sim ε δ: at every indexSim iis anε i-HVZK simulator, and one uniform strict PPT program realizes the whole family on encoded transcripts up to statistical distanceδ i(SimulatorRealizedBy). A typed simulator may sample from distributions, such as uniform field elements, that a strict PPT machine with fair coins samples only approximately;δaccounts for that.
Both variants contain the exact property at every index with the same extractor or simulator, so
every theorem about KnowledgeSound and HVZK applies to them; the realizing program of an
efficient simulator is ε i + δ i-close to honest transcripts
(SimulatorRealizedBy.closeTo_run). Note that ε and δ are explicit, unconstrained parameters
of these predicates rather than bundled Negligible obligations: when ε i ≥ 1 or δ i ≥ 1
(since event probabilities are at most 1), KnowledgeSound or SimulatorRealizedBy holds
vacuously (not_efficientKnowledgeSound_dlTrustMe and not_efficientHVZK_sendWitnessDL in
CslibFrontierTests.EfficientSimulators require ε i < 1 and ε i + δ i ≤ 1 / 2). Computational
theorems and security claims built on these predicates must therefore pair them with an explicit
error bound (such as Negligible) across the setup distribution. Extraction here is straight-line,
from the transcript, as for interactive oracle proofs; rewinding extractors in the sense of Bellare
and Goldreich are a different notion, as are malicious-verifier zero knowledge and computational
zero knowledge.
Main definitions #
Interactive.Encoding: word encodings of an indexed family of reductions.Interactive.ExtractorRealizedBy,Interactive.SimulatorRealizedBy: a word function or program computes an extractor or simulator family on encodings.Interactive.Verifier.EfficientKnowledgeSound: knowledge soundness with a polynomial-time extractor.Interactive.Reduction.EfficientHVZK: HVZK with a strict PPT simulator, up toδ.
Main results #
Interactive.SimulatorRealizedBy.closeTo_run: the realizing program of an efficient simulator isε i + δ i-close to the honest encoded transcript.
Word encodings for a family of reductions indexed by I, with rounds s i and input
statements in Stmt i at the index i.
The index, such as a unary security parameter with a system parameter.
The input statements at each index.
The transcripts at each index.
The word function f computes the extractor family E on encodings: from the index, the
encoded statement, the encoded transcript and the encoded output witness, it returns the encoded
input witness.
The program program realizes the simulator family Sim on encodings up to statistical
distance δ: on the index and the encoded statement, its output is within δ i of the encoded
transcript sampled by Sim i.
Efficient straight-line knowledge soundness. At every index, E i is a straight-line
extractor for V i with error ε i, in the plain model, and one deterministic polynomial-time
function of the index and words computes the whole family on encodings.
- knowledgeSound (i : I) : (V i).KnowledgeSound (relIn i) (relOut i) (E i) (ε i)
E iis a straight-line extractor with errorε iat every index. - polyTime : ∃ (f : I × List Bool × List Bool × List Bool → List Bool), Turing.MultiTapeTM.ComputableInPolyTime f (Turing.MultiTapeTM.encPair enc.index (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits))) Turing.MultiTapeTM.encBits ∧ ExtractorRealizedBy enc encOut encIn E f
One polynomial-time word function computes the extractor family.
Efficient honest-verifier zero knowledge, with simulation error ε and realization error
δ. At every index, Sim i is an ε i-HVZK simulator for R i, in the plain model, and one
uniform strict PPT program of the index and the encoded statement realizes the whole family on
encoded transcripts up to δ.
- hvzk (i : I) : (R i).HVZK (rel i) (Sim i) (ε i)
Sim iis anε i-HVZK simulator at every index. - realized : ∃ (program : I × List Bool → ProbComp (List Bool)), Probability.IsPPTOn (Turing.MultiTapeTM.encPair enc.index Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits program ∧ SimulatorRealizedBy enc Sim program δ
One uniform strict PPT program realizes the simulator family up to
δ.
A program realizing an ε-HVZK simulator up to δ is ε i + δ i-close to the honest encoded
transcript, for every statement and valid witness.