The Chaum–Pedersen protocol with a fair-coin prover, extractor and simulator #
The Chaum–Pedersen protocol for Diffie–Hellman triples ([BS23], Section 19.5.2,
Figure 19.7 and Theorem 19.10, pp. 777–778) over a PrimeOrderGroupFamily, as a family indexed by
a unary security parameter n and a group description d, with challenges in ZMod q for the
group order q. A statement is a triple (u, v, w) of group elements and a witness is β with
β • g = v and β • u = w ([BS23], (19.12), in additive notation). Statements and
commitments are framed tuples of the family's element encoding, and scalars are binary
(chaumPedersenEncoding).
chaumPedersenProbFamily equips the protocol with the fair-coin commitment sampler
chaumPedersenCommit, which draws its commitment nonce with sampleExp n d (within statistical
distance 1 / 2 ^ n of uniform on ZMod q). Both prover rounds have uniform polynomial-time word
realizations (chaumPedersenCommitWord and schnorrRespondBits), and chaumPedersenFamily keeps
the exact-uniform ZMod q commitment law (SigmaProtocol.linear) used as the ideal-sampling
intermediate step:
- Completeness and certified prover (
chaumPedersenProbFamily_complete,eval_chaumPedersenCommitWord,isPPTOn_chaumPedersenCommitWord,schnorrRespondBits_chaumPedersen, Theorem 19.10 with Definition 19.3): honest conversations ofchaumPedersenProbFamilyalways accept, and its commitment and response rounds are uniform strict PPT and deterministic polynomial time on encodings (efficientVerifier_chaumPedersenProbinCslibFrontier.Crypto.Computational.ChaumPedersenProtocol.Verifiercertifies the verifier). - Efficient special soundness (
efficientSpecialSoundness_chaumPedersenProbandefficientSpecialSoundness_chaumPedersen, Theorem 19.10 with Definition 19.4): the extractorchaumPedersenExtractcomputes(c - c')⁻¹ (z - z')withextractNat. It reads neither the statement nor the commitment, so its polynomial-time word function is Schnorr'sschnorrExtractWord. - Statistical closeness and computational special HVZK for the fair-coin prover
(
closeTo_transcript_chaumPedersenProbFamily_simulator,advantage_chvzkGame_chaumPedersenProbFamily_le,computationalSpecialHVZK_chaumPedersen, Theorem 19.10 with Definitions 19.5 and 20.6): Theorem 19.10 states exact special HVZK (Definition 19.5(ii), identical transcript distribution, which relies on Definition 2.8, p. 30, permitting negligible runtime-overflow probability and exact rejection sampling onZMod q); in the strict-PPT fair-coin model exact simulation is impossible whenqis not a power of two, so this module establishes the2 / 2 ^ nstatistical form (closeTo_transcript_chaumPedersenProbFamily_simulator) and Definition 20.6 (computationalSpecialHVZK_chaumPedersen), derived from the sharedlinearProbFamilytransfer inCslibFrontier.Crypto.Computational.LinearSigmaProtocol. Boneh and Shoup's simulator samples a uniform responsezand outputs((z • g - c • v, z • u - c • w), z). The typed simulatorchaumPedersenSimulator(certified strict PPT bychaumPedersenSimulateWord) sampleszwithsampleExp, incurring1 / 2 ^ nagainst the ideal-nonce prover (efficientSpecialHVZK_chaumPedersen_ideal) and2 / 2 ^ nagainst the fair-coin proverchaumPedersenProbFamilyat every challenge on valid triples, with Attack Game 20.4 advantage at most2 / 2 ^ nagainst arbitrary adversaries and exact zero acceptance error (accepts_chaumPedersenSimulator,δ = fun _ => 0) along any group-description setup.
Main definitions #
Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenCommit,Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenCommitWord,Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenProbFamily: the fair-coin commitment sampler, its strict-PPT word program, and the fair-coin Chaum–Pedersen Sigma protocol family.Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenFamily: the ideal-nonce protocol at each index.Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenEncoding: its word encodings.Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenExtract: the extractor.Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenSimulator,Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenSimulateWord: the simulator withsampleExpand the strict PPT word program computing it.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.chaumPedersenProbFamily_complete,Cslib.Crypto.PrimeOrderGroupFamily.eval_chaumPedersenCommitWord,Cslib.Crypto.PrimeOrderGroupFamily.isPPTOn_chaumPedersenCommitWord,Cslib.Crypto.PrimeOrderGroupFamily.schnorrRespondBits_chaumPedersenCslib.Crypto.PrimeOrderGroupFamily.efficientSpecialSoundness_chaumPedersenProb,Cslib.Crypto.PrimeOrderGroupFamily.efficientSpecialSoundness_chaumPedersenCslib.Crypto.PrimeOrderGroupFamily.closeTo_transcript_chaumPedersenProbFamily_simulator,Cslib.Crypto.PrimeOrderGroupFamily.advantage_chvzkGame_chaumPedersenProbFamily_le,Cslib.Crypto.PrimeOrderGroupFamily.computationalSpecialHVZK_chaumPedersen
Ideal-sampling steps #
Cslib.Crypto.PrimeOrderGroupFamily.efficientSpecialHVZK_chaumPedersen_ideal: statistical special HVZK against the ideal-nonce proverchaumPedersenFamily, consumed bycloseTo_transcript_chaumPedersenProbFamily_simulatorandadvantage_chvzkGame_chaumPedersenProbFamily_le.Cslib.Crypto.PrimeOrderGroupFamily.computationalSpecialHVZK_chaumPedersen_ideal: computational special HVZK against the ideal-nonce proverchaumPedersenFamily, consumed bycomputationalSpecialHVZK_chaumPedersen.
References #
- D. Boneh and V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 19.4 (Definitions 19.3–19.5, pp. 772–774), Section 19.5.2 (Figure 19.7 and Theorem 19.10, pp. 777–778), and Section 20.4.2 (Attack Game 20.4 and Definition 20.6, p. 840).
The Chaum–Pedersen protocol ([BS23], Section 19.5.2) in the group described by
i.2, with challenges in ZMod q. The security parameter i.1 does not change the protocol. The
honest prover draws its commitment nonce exactly uniformly on ZMod q at the PMF level, an
ideal sampler that no fair-coin machine with a strict polynomial time bound realizes exactly when
q is not a power of two; chaumPedersenProbFamily equips the protocol with the fair-coin
commitment sampler chaumPedersenCommit.
The fair-coin commitment sampler of the Chaum–Pedersen prover ([BS23],
Section 19.5.2, Figure 19.7, p. 777): at index (n, d) and statement (u, v, w), sample s with
sampleExp n d, read it as r = (s : ZMod q), and return the commitment (r • g, r • u) together
with the prover state r.
The Chaum–Pedersen commitment sampler on words: on the index (n, d) and an encoded statement
(u, v, w), sample s with sampleExp n d and return the encoded commitment (s • g, s • u) and
the binary state (s % q).bits. It certifies chaumPedersenCommit (eval_chaumPedersenCommitWord,
isPPTOn_chaumPedersenCommitWord).
The Chaum–Pedersen Sigma protocol ([BS23], Section 19.5.2, Figure 19.7, p. 777) with
a fair-coin prover: at index (n, d), the honest prover commits with chaumPedersenCommit (using
sampleExp n d), answers a challenge c with r + c * β, and the verifier checks
z • g = t₁ + c • v and z • u = t₂ + c • w.
The word encodings of chaumPedersenFamily: the unary security parameter with the
description, statements (u, v, w) and commitments (t₁, t₂) as framed tuples of the family's
element encoding, and challenges and responses in binary.
The Chaum–Pedersen extractor ([BS23], Theorem 19.10), computed with extractNat: it
is (c - c')⁻¹ (z - z') whenever c ≠ c', and reads neither the statement nor the commitment.
The Chaum–Pedersen simulator ([BS23], Theorem 19.10) with fair coins: at index
(n, d), on a statement (u, v, w) and a challenge c, sample s with sampleExp n d, read it
as the response z = s mod q, and return the commitment (z • g - c • v, z • u - c • w) with
z.
The Chaum–Pedersen simulator on words: on the index (n, d), an encoded statement
(u, v, w) and a binary challenge c, sample s with sampleExp n d and return the encoding of
(s • g - c • v, s • u - c • w) and of s mod q. It is the strict PPT certificate of
chaumPedersenSimulator (eval_chaumPedersenSimulateWord).
Special soundness #
The Chaum–Pedersen protocol has efficient special soundness ([BS23], Theorem 19.10 with Definition 19.4).
The fair-coin Chaum–Pedersen protocol has efficient special soundness ([BS23], Theorem 19.10 with Definition 19.4).
Fair-coin prover completeness and efficiency #
Completeness of the fair-coin Chaum–Pedersen protocol ([BS23], Theorem 19.10
with Definition 19.3): for every valid witness-statement pair (β, (u, v, w)) and challenge c,
every honest transcript of chaumPedersenProbFamily is accepting.
On an encoded statement, chaumPedersenCommitWord computes the encoded commitment and scalar
state of chaumPedersenCommit.
chaumPedersenCommitWord is uniform strict PPT in the security parameter, the group
description and the encoded statement.
schnorrRespondBits (computableInPolyTime_schnorrRespondBits) computes the response step of
chaumPedersenProbFamily on encodings.
Special HVZK #
On an encoded statement and challenge, chaumPedersenSimulateWord computes the encoded output
of chaumPedersenSimulator.
chaumPedersenSimulateWord is uniform strict PPT in the security parameter, the description
and the encoded statement and challenge.
chaumPedersenSimulator is uniform strict PPT, certified by chaumPedersenSimulateWord.
chaumPedersenSimulator realizes the perfect Chaum–Pedersen simulator linearSimulate
([BS23], Theorem 19.10) up to statistical distance 1 / 2 ^ n at security parameter
n.
Ideal-sampling step toward [BS23], Theorem 19.10 (special HVZK, Definition 19.5),
not the cited result: against the honest prover of chaumPedersenFamily, which draws its
commitment nonce exactly uniformly on ZMod q at the PMF level, linearSimulate is a perfect
simulator, and the strict PPT simulator chaumPedersenSimulator realizes it with statistical
error 1 / 2 ^ n at security parameter n. Consumed by
closeTo_transcript_chaumPedersenProbFamily_simulator and
advantage_chvzkGame_chaumPedersenProbFamily_le for the fair-coin prover
chaumPedersenProbFamily.
Every output of chaumPedersenSimulator is an accepting conversation (acceptance error 0):
for every sampled z, (z • g - c • v) + c • v = z • g and (z • u - c • w) + c • w = z • u.
Ideal-sampling step toward [BS23], Theorem 19.10 with Definition 20.6 (special
computational HVZK), not the cited result: Experiment 0 of Attack Game 20.4 runs the honest prover
of chaumPedersenFamily, which draws its commitment nonce exactly uniformly on ZMod q at the
PMF level, and against it the strict PPT simulator chaumPedersenSimulator satisfies
Definition 20.6 with zero acceptance error (δ = fun _ => 0) over any group-description setup
setup : ℕ → PMF F.Desc paired with the security parameter. Consumed by
computationalSpecialHVZK_chaumPedersen for the fair-coin prover chaumPedersenProbFamily.
On every valid witness-statement pair (β, (u, v, w)) and challenge c, the honest transcript
of the fair-coin chaumPedersenProbFamily and the output of the strict PPT simulator
chaumPedersenSimulator are within statistical distance 2 / 2 ^ n (1 / 2 ^ n from the
prover's sampleExp commitment nonce and 1 / 2 ^ n from the simulator's sampleExp response;
[BS23], Theorem 19.10 with Definition 19.5, in the strict-PPT fair-coin model). Derived
from efficientSpecialHVZK_chaumPedersen_ideal via
closeTo_transcript_linearProbFamily_simulator.
In Attack Game 20.4 (chvzkRealGame vs chvzkSimGame), the fair-coin Chaum–Pedersen prover
chaumPedersenProbFamily and the strict PPT simulator chaumPedersenSimulator differ in
distinguishing advantage by at most 2 / 2 ^ n against every adversary (including
computationally unbounded ones). Derived from efficientSpecialHVZK_chaumPedersen_ideal via
advantage_chvzkGame_linearProbFamily_le.
The fair-coin Chaum–Pedersen protocol satisfies computational special HVZK
([BS23], Theorem 19.10, Section 19.5.2, p. 777, with Definition 20.6, Section 20.4.2,
p. 840): Theorem 19.10 states exact special HVZK (Definition 19.5(ii), under Definition 2.8's
negligible-overflow runtime convention, p. 30); in the strict-PPT fair-coin model exact simulation
is impossible when q is not a power of two, so Definition 19.5(ii) is relaxed here to the
2 / 2 ^ n statistical form (closeTo_transcript_chaumPedersenProbFamily_simulator) and
Definition 20.6. Against the fair-coin honest prover of chaumPedersenProbFamily, the strict PPT
simulator chaumPedersenSimulator satisfies Definition 20.6 with exact zero acceptance error
(δ = fun _ => 0) over any group-description setup setup : ℕ → PMF F.Desc paired with the
security parameter. Derived from computationalSpecialHVZK_chaumPedersen_ideal via
computationalSpecialHVZK_linearProbFamily.