Guessing attacks on Sigma protocols #
This module formalizes the generic guessing impersonator against a Sigma protocol in
[BS23], Section 19.1.1 and Exercise 19.7. A dishonest prover given an arbitrary
transcript simulator simulate commits by sampling a simulated conversation (t, c₀, z) and
sending t, then answers whatever verifier challenge arrives with z. Whenever simulate
always produces accepting transcripts, this impersonator wins SigmaProtocol.directAttack with
probability at least (Fintype.card C : ℝ≥0)⁻¹, without using a witness or any zero-knowledge
indistinguishability property.
Main definitions #
SigmaProtocol.guessingImpersonator: the guessing impersonator built from a transcript simulatorsimulate : Y → C → PMF (T × Z).
Main results #
SigmaProtocol.inv_card_le_succProbability_directAttack_guessingImpersonator: for any simulator always outputting accepting transcripts and any key generatorkeyGen,guessingImpersonator simulatesucceeds inP.directAttackwith probability at least(Fintype.card C : ℝ≥0)⁻¹.SigmaProtocol.SpecialHVZK.inv_card_le_succProbability_directAttack: specialization to aSpecialHVZKsimulator (Exercise 19.7).
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 19.1.1 and Exercise 19.7.
The guessing impersonator ([BS23], Section 19.1.1 and Exercise 19.7): given a
transcript simulator simulate : Y → C → PMF (T × Z), sample a simulated conversation
(t, c₀, z), commit t, store z, and return z on any challenge.
Generic guessing bound ([BS23], Exercise 19.7): if simulate y c always
outputs accepting (t, z), then guessingImpersonator simulate wins P.directAttack keyGen
with probability at least (Fintype.card C : ℝ≥0)⁻¹ (a lower bound where the exercise says
"probability 1/|C|"). Neither a valid witness in keyGen nor simulator indistinguishability is
required.
The form for special HVZK protocols, as Exercise 19.7 states it: the general guessing bound
instantiated at the simulator of a SpecialHVZK Sigma protocol.