Identification from Sigma protocols #
A Sigma protocol together with a key generator for its relation is an identification scheme
([BS23], Section 19.6): the key generator samples a witness-statement pair (x, y),
the statement y is the public verification key, and the prover proves knowledge of x. This
module proves the concrete bounds and the identity behind Boneh and Shoup's Theorems 19.3, 19.14
and 19.15 for one such scheme. They are steps toward those theorems, not the cited results. There
is no efficiency claim here: the reductions are explicit programs, and the theorems relate the
success probabilities of explicit experiments for one protocol and key generator at a fixed
security level. The asymptotic theorems for a generic Sigma protocol are open (#5293). For
Schnorr identification over a PrimeOrderGroupFamily, they are
PrimeOrderGroupFamily.negligible_schnorrDirectProbGame and
PrimeOrderGroupFamily.negligible_schnorrEavesdropProbGame.
An Impersonator commits from what it sees, keeps a private state, and answers the verifier's
challenge from that state, possibly with fresh randomness. In a direct attack it sees only the
verification key (directAttack, Attack Game 18.1); in an eavesdropping attack it also sees Q
honest conversations (eavesdropAttack, Attack Game 18.2). oneWayGame is the one-way key
generation experiment (Attack Game 19.2).
- Extraction (the bounds (19.17) and (19.18) of Theorem 19.14). If
extractis a witness extractor for the statements the key generator produces (SpecialSoundOn, implied bySpecialSoundness), rewinding an impersonator with direct-attack success probabilityεrecovers a witness for the key with probability at leastε ^ 2 - ε / N, whereNis the number of challenges; consequentlyε ≤ 1 / N + √ε'. The generated pairs need not be in the relation. - Simulation (the equality of Theorems 19.3 and 19.15). If the protocol is special HVZK, an eavesdropper succeeds with exactly the probability of the direct impersonator that simulates the conversations itself, provided the key generator only outputs pairs in the relation.
Both reductions only run the given impersonator and the simulator or extractor. Their efficiency, which Theorems 19.3, 19.14 and 19.15 state, and the corresponding asymptotic statements under a hardness assumption are separate obligations (#5293).
The experiments are Games, that is PMF Bool, written in do notation; the PMF monad lives
in a single universe, so the protocol's types and the impersonator's state are in Type here,
although SigmaProtocol itself is universe-polymorphic.
Main definitions #
SigmaProtocol.Impersonator: a two-stage prover strategy.SigmaProtocol.directAttack,SigmaProtocol.eavesdropAttack: impersonation experiments.SigmaProtocol.oneWayGame: recover a witness for a generated statement.SigmaProtocol.SpecialSoundOn: special soundness for the statements of a key generator.SigmaProtocol.Impersonator.rewind: the rewinding witness extractor.SigmaProtocol.simulateConversation,SigmaProtocol.Impersonator.withSimulatedViews: replace eavesdropped conversations by simulated ones.
Steps toward Theorems 19.3, 19.14 and 19.15 #
SigmaProtocol.sq_sub_le_oneWayGame_rewind:ε ^ 2 - ε / N ≤ ε'(the bound (19.17)).SigmaProtocol.succProbability_directAttack_le:ε ≤ 1 / N + √ε'(the bound (19.18)).SigmaProtocol.eavesdropAttack_eq_directAttack: an eavesdropper succeeds exactly as often as the direct impersonator that simulates its views (the equality of Theorems 19.3 and 19.15).SigmaProtocol.succProbability_eavesdropAttack_le: the two combined.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Sections 18.2, 18.3, 18.5, 19.1 and 19.6.
An impersonator: from its view it commits to t and keeps a private state, and from that
state it answers the verifier's challenge, possibly with fresh randomness.
- State : Type
The impersonator's private state between its two messages.
Commit from the view, keeping a private state.
Answer a challenge from the private state.
A direct impersonation attack ([BS23], Attack Game 18.1): a key pair is generated,
the impersonator sees the verification key y, commits, receives a uniform challenge, and
responds; it wins when the conversation is accepting for y.
An eavesdropping impersonation attack ([BS23], Attack Game 18.2): as
directAttack, but the impersonator first sees Q independent honest conversations between the
prover and the verifier for the generated key.
One-way key generation ([BS23], Attack Game 19.2): the adversary sees a generated statement and wins when it outputs a witness for it, not necessarily the generated one.
Extraction by rewinding #
The rewinding extractor (proof of [BS23], Theorem 19.14): run the impersonator to its commitment, answer two independent uniform challenges from the same state, and apply the extractor to the two conversations.
Special soundness for the statements a key generator can produce: from two accepting
conversations with a common commitment and distinct challenges for such a statement, extract
computes a witness. It follows from SpecialSoundness, and suffices for extraction.
Special soundness gives special soundness for every key generator.
Concrete bound (19.17) for one Sigma protocol and key generator, a step of the proof of
[BS23], Theorem 19.14, not the cited result: with special soundness on the generated
statements, the rewinding extractor recovers a witness with probability at least ε ^ 2 - ε / N,
where ε is the direct-attack success probability and N the number of challenges. Theorem 19.14
also says that the extractor is efficient, running in about twice the impersonator's time; nothing
here certifies A.rewind extract as efficient (#5293).
Concrete bound (19.18) for one Sigma protocol and key generator, a step toward
[BS23], Theorem 19.14, not the cited result: with special soundness on the generated
statements, the direct-attack success probability is at most 1 / N + √ε', where ε' is the
success probability of the rewinding extractor A.rewind extract in the one-way game.
Theorem 19.14 states that this extractor is efficient and concludes security against direct
attacks for every efficient impersonator when the key generator is one-way. This lemma has no
efficiency claim and fixes one instance; the generic asymptotic theorem is open (#5293). For
Schnorr identification over a PrimeOrderGroupFamily it is
PrimeOrderGroupFamily.negligible_schnorrDirectProbGame.
Eavesdropping by simulation #
A simulated conversation: a uniform challenge and the simulator's commitment and response for
it. Under special HVZK this is the law of an honest conversation
(SpecialHVZK.conversation_eq).
An eavesdropper turned into a direct impersonator ([BS23], Theorem 19.3 and
Figure 19.2): it simulates the Q conversations it would have overheard.
Exact identity for one Sigma protocol and key generator, a step toward [BS23],
Theorems 19.3 and 19.15, not the cited results: for a special HVZK protocol and a key generator
whose pairs are in the relation, an eavesdropper succeeds with exactly the probability of the
direct impersonator A.withSimulatedViews simulate that simulates its Q views (the equality
ID2adv[A, I] = ID1adv[B, I]). The theorems state that this impersonator is an elementary
wrapper around A and conclude security against eavesdropping from security against direct
attacks. Nothing here certifies the simulating impersonator as efficient, and the protocol is one
instance; the generic asymptotic theorem is open (#5293). For Schnorr identification over a
PrimeOrderGroupFamily it is PrimeOrderGroupFamily.negligible_schnorrEavesdropProbGame.
Concrete bound for one special-sound, special-HVZK Sigma protocol and key generator, the
steps toward [BS23], Theorems 19.14 and 19.15, combined, not the cited results: an
eavesdropper's success probability is at most 1 / N + √ε', where ε' is the success
probability of the rewinding extractor of the simulating direct impersonator. This lemma has no
efficiency claim for that composed reduction and fixes one instance; the generic asymptotic
theorem is open (#5293). For Schnorr identification over a PrimeOrderGroupFamily it is
PrimeOrderGroupFamily.negligible_schnorrEavesdropProbGame.