Fiat–Shamir non-interactive proofs in the random-oracle model: completeness and concrete bounds #
The Fiat–Shamir transformation ([FS87]; [BS23], Sections 20.3.3–20.3.5)
compiles a public-coin Sigma protocol P : SigmaProtocol X Y T C Z for a relation
R : X → Y → Prop into a non-interactive proof system in the random-oracle model: given a
witness-statement pair (x, y) and commitment coins (t, st) ← P.commit x y, the prover queries a
hash oracle H : Y × T → C on the pair (y, t) to obtain the challenge c and outputs
(t, P.respond x y st c) (fiatShamirNIZKProve); the verifier queries H at (y, t) and checks
P.verify y t c z (fiatShamirNIZKVerify). Binding both the statement y and the commitment t
in the hash query is essential when statements can be chosen adaptively after querying H: hashing
t alone fails soundness on protocols such as Schnorr's where a cheating prover can solve the
verification equation for y after seeing H(t).
This module proves completeness of Fiat–Shamir non-interactive proofs and concrete simulation,
extraction and soundness bounds for them in the OracleComp random-oracle model:
- Completeness (
fiatShamirNIZK_complete,fiatShamirNIZK_verify_of_prove; [BS23], Section 20.3.3): for every(x, y)withR x yand every initial random-oracle cachecache, running honest commitment sampling,fiatShamirNIZKProve, andfiatShamirNIZKVerifyagainst the lazy uniform random oracleROMSignature.oracle Caccepts with probability1(= PMF.pure true). - The zero-knowledge bound (20.9) in the programmable ROM ([BS23], Section
20.3.5, Attack Game 20.3 and Figure 20.2; a step toward Theorem 20.3): an adaptive
distinguisher queries
.inl (x, y)for a proof (validated by an explicit Boolean relation checkervalid : X → Y → Boolwith∀ x y, valid x y = true → R x y, returningnoneidentically in both experiments whenvalid x y = false) and.inr (y, t)for the random oracle. UnderP.SpecialHVZK R simulateandδ-unpredictable commitments (P.UnpredictableCommitments R δ, Definition 19.7), replacing honest proving by the witness-free programmable-ROM simulatornizkSimProve simulatechanges the acceptance probability of any distinguisher making at mostQpprove calls andQrohash calls by at mostQp * (Qp + Qro) * δ(abs_sub_fiatShamirNIZKRealGame_simGame_le,advantage_fiatShamirNIZKRealGame_simGame_le). Concrete adaptation: whereas Figure 20.2 in [BS23] outputsfailwhen a sampled commitment point(y, t)is already programmed in the random-oracle table,nizkSimProveoverwrites(y, t)at the head of the association-list cache; the programming collision hopRandomOracle.closeTo_run_lazyProgramHandler_overwriteProgramHandler_of_isQueryBoundeddirectly justifies this overwrite simulator. - ROM extraction bounds and derived simulation-extractability bounds:
- Plain ROM extraction bound (
fiatShamirNIZKExtract,succProbability_fiatShamirNIZKPokGame_le, proved via the general forking inequality of [BN06], Lemma 1): for an explicit-coin cheating prover making at mostQrohash calls on statementy, the acceptance probabilityεsatisfiesε ≤ (Qro + 1) / |C| + √((Qro + 1) * ε'), whereε'is the probability that rewinding outputssome wwithR w y. On a false statement this gives the soundness bound(Qro + 1) / |C|(succProbability_fiatShamirNIZKPokGame_le_of_false). [BS23], Section 20.3.4, proves soundness (Theorem 20.2) by guessing the relevant hash query instead. - Derived adaptive simulation-extraction bounds (
fiatShamirNIZKSimExtractWith,fiatShamirNIZKSimExtract,succProbability_fiatShamirNIZKRealExtGame_le,succProbability_fiatShamirNIZKSimExtGame_le): derived here by combining our Attack Game 20.3 zero-knowledge simulation hop,SimCoinSourcepresampling across forks, and [BN06], Lemma 1 (rather than stated as a standalone theorem in [BS23]). When an explicit-coin adversary also makes up toQpadaptive prove calls and outputs(y*, (t*, z*))whose statement-commitment pair(y*, t*)was never returned by the prove oracle (which in particular holds whenevery*is a fresh statement), the witness-free rewinding extractor recoverssome (y*, w*)withR w* y*with probabilityε'satisfyingε ≤ Qp * (Qp + Qro) * δ + (Qro + 1) / |C| + √((Qro + 1) * ε')against real proofs (andε ≤ (Qro + 1) / |C| + √((Qro + 1) * ε')against simulated proofs).
- Plain ROM extraction bound (
Specializations are provided for SigmaProtocol.linear and SigmaProtocol.schnorr, using an
explicit statement-independent simulator coin source (linearSimCoinSource) so that linear and
schnorr simulation-extraction bounds require no finiteness assumption on the statement or group
carrier types.
Every result is about one Sigma protocol: completeness is an equality of distributions, and the
other results are concrete inequalities. The zero-knowledge, extraction and soundness bounds are
steps toward [BS23], Theorems 20.2 and 20.3, not the cited results: those theorems
conclude that the proof system is sound (Definition 20.4) and niZK (Definition 20.5, which asks
for an efficient simulator), while nothing here certifies the simulator nizkSimProve or the
rewinding extractors as efficient. The asymptotic theorems are open (#5293).
Main definitions #
Cslib.Crypto.Protocols.SigmaProtocol.NIZKHashSpec: statement-bound random-oracle query specification(Y × T) → C.Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKProve,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKVerify: Fiat–Shamir non-interactive prover and verifier programs.Cslib.Crypto.Protocols.SigmaProtocol.UnpredictableCommitments:δ-unpredictable commitments on a relation.Cslib.Crypto.Protocols.SigmaProtocol.NIZKDistinguisherSpec,Cslib.Crypto.Protocols.SigmaProtocol.NIZKCallBounded: two-channel prove/hash oracle interface and separate call budgets.Cslib.Crypto.Protocols.SigmaProtocol.nizkSimProve,Cslib.Crypto.Protocols.SigmaProtocol.nizkRealHandler,Cslib.Crypto.Protocols.SigmaProtocol.nizkSimHandler,Cslib.Crypto.Protocols.SigmaProtocol.nizkRealExtHandler,Cslib.Crypto.Protocols.SigmaProtocol.nizkSimExtHandler,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKRealGame,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKSimGame: adaptive multi-theorem real and programmable-ROM simulated handlers and experiments.Cslib.Crypto.Protocols.SigmaProtocol.NIZKProver,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKPokGame,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKExtract,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKExtractGame: plain ROM proof-of-knowledge experiment and rewinding witness extractor.Cslib.Crypto.Protocols.SigmaProtocol.SimCoinSource,Cslib.Crypto.Protocols.SigmaProtocol.SimCoinSource.ofFintype,Cslib.Crypto.Protocols.SigmaProtocol.linearSimCoinSource: explicit coin sources for replaying adaptive multi-statement simulation across forks.Cslib.Crypto.Protocols.SigmaProtocol.NIZKSimProver,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKRealExtGameOn,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKRealExtGame,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKSimExtGameOn,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKSimExtGame,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKFreshStmtGameOn,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKSimExtractWith,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKSimExtract,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZKSimExtractGame: adaptive simulation-extractability experiments and witness-free rewinding extractors.
Main results #
Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZK_verify_of_prove,Cslib.Crypto.Protocols.SigmaProtocol.fiatShamirNIZK_complete: perfect completeness in the lazy random-oracle model.Cslib.Crypto.Protocols.SigmaProtocol.nizkRealHandler_inl_of_false,Cslib.Crypto.Protocols.SigmaProtocol.nizkSimHandler_inl_of_false,Cslib.Crypto.Protocols.SigmaProtocol.nizkSimHandler_inl_congr: invalid queries returnnoneidentically and simulation ignores witness values beyondvalid x y.Cslib.Crypto.Protocols.SigmaProtocol.linear_unpredictableCommitments_of_injective,Cslib.Crypto.Protocols.SigmaProtocol.schnorr_unpredictableCommitments,Cslib.Crypto.Protocols.SigmaProtocol.schnorr_fiatShamirNIZK_complete: unpredictable commitments ofSigmaProtocol.linearandSigmaProtocol.schnorr, and completeness for Schnorr.
Steps toward Theorems 20.2 and 20.3 #
Cslib.Crypto.Protocols.SigmaProtocol.abs_sub_fiatShamirNIZKRealGame_simGame_le,Cslib.Crypto.Protocols.SigmaProtocol.advantage_fiatShamirNIZKRealGame_simGame_le: the concrete zero-knowledge bound (20.9),Qp * (Qp + Qro) * δ, for one Sigma protocol.Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKPokGame_le,Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKPokKeyGen_le,Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKPokGame_le_of_false: concrete extraction bounds on one statement and against a key generator, and the soundness bound on one false statement.Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKSimExtGameOn_le,Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKSimExtGame_le,Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKRealExtGameOn_le,Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKRealExtGame_le,Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKFreshStmtGameOn_le,Cslib.Crypto.Protocols.SigmaProtocol.succProbability_fiatShamirNIZKRealExtGameOn_le_of_false: concrete adaptive simulation-extraction and soundness bounds, derived here.Cslib.Crypto.Protocols.SigmaProtocol.linear_advantage_fiatShamirNIZKRealGame_simGame_le,Cslib.Crypto.Protocols.SigmaProtocol.linear_succProbability_fiatShamirNIZKPokGame_le,Cslib.Crypto.Protocols.SigmaProtocol.linear_succProbability_fiatShamirNIZKRealExtGame_le: specializations toSigmaProtocol.linear.Cslib.Crypto.Protocols.SigmaProtocol.schnorr_advantage_fiatShamirNIZKRealGame_simGame_le,Cslib.Crypto.Protocols.SigmaProtocol.schnorr_succProbability_fiatShamirNIZKPokGame_le,Cslib.Crypto.Protocols.SigmaProtocol.schnorr_succProbability_fiatShamirNIZKRealExtGame_le: specializations toSigmaProtocol.schnorr.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Sections 19.6.1, 19.7, and 20.3.2–20.3.5 (Definitions 20.3–20.5, Attack Games 20.2 and 20.3, Figure 20.2, and Theorems 20.2 and 20.3).
- M. Bellare, G. Neven, Multi-Signatures in the Plain Public-Key Model and a General Forking Lemma, Lemma 1.
- A. Fiat, A. Shamir, How to Prove Yourself: Practical Solutions to Identification and Signature Problems.
Non-interactive prover, verifier, and completeness #
Random-oracle query specification for Fiat–Shamir NIZK proofs
([BS23], Section 20.3.3): every challenge query binds both the statement y : Y and the
commitment t : T and returns a challenge in C.
Fiat–Shamir non-interactive prover ([BS23], Section 20.3.3): given witness x,
statement y, and commitment coins (t, st) sampled from P.commit x y, query the random oracle
at (y, t) for the challenge c and output (t, P.respond x y st c).
Fiat–Shamir non-interactive verifier ([BS23], Section 20.3.3): query the random
oracle at (y, prf.1) for the challenge c and check P.verify y prf.1 c prf.2.
Support-level completeness of Fiat–Shamir NIZK proofs: for any (x, y) in R, any supported
commitment coins, and any initial random-oracle cache, every proof produced by
fiatShamirNIZKProve is accepted by fiatShamirNIZKVerify under the updated cache.
Perfect completeness of Fiat–Shamir NIZK proofs in the lazy random-oracle model
([BS23], Section 20.3.3): for any (x, y) satisfying R x y and any initial cache
cache, sampling commitment coins, proving, and verifying in sequence against oracle C accepts
with probability 1.
Unpredictable commitments and adaptive multi-theorem zero knowledge #
Commitments of P are δ-unpredictable on R ([BS23], Definition 19.7): for every
witness-statement pair (x, y) in R, no commitment value occurs with probability greater than
δ.
Monotonicity of UnpredictableCommitments in both the relation and the collision bound.
Two-channel oracle specification for adaptive multi-theorem Fiat–Shamir NIZK experiments
([BS23], Section 20.3.5, Attack Game 20.3): .inl (x, y) requests a proof for candidate
witness-statement pair (x, y) (returning Option (T × Z)) and .inr (y, t) queries the random
oracle at (y, t) (returning C).
Separate prove-query (Qp) and hash-query (Qro) budgets for an OracleComp over
NIZKDistinguisherSpec.
A program making at most Qp prove calls and Qro hash calls makes at most Qp + Qro calls
in total.
Witness-free programmable-ROM proof simulation on statement y ([BS23], Section
20.3.5, adapted from Figure 20.2): sample a uniform challenge c ← C, sample
(t, z) ← simulate y c, program (y, t) ↦ c at the front of the random-oracle cache (overwriting
any existing binding rather than returning fail), and return (t, z).
Real multi-theorem NIZK oracle handler ([BS23], Attack Game 20.3): invalid witness
candidates (valid x y = false) return none without touching the random-oracle cache; valid
pairs sample honest commitment coins and run fiatShamirNIZKProve against oracle C.
Programmable-ROM simulated multi-theorem NIZK oracle handler ([BS23], Attack Game
20.3, using the overwrite adaptation of Figure 20.2): invalid witness candidates
(valid x y = false) return none identically without touching the cache; valid pairs run the
witness-free simulator nizkSimProve simulate y.
Invalid prove queries return none without modifying the cache in nizkRealHandler.
Invalid prove queries return none without modifying the cache in nizkSimHandler.
Witness-invariance of nizkSimHandler: two witness candidates x₁, x₂ with the same validity
bit valid x₁ y = valid x₂ y induce identical simulated prove transitions.
Real adaptive multi-theorem NIZK experiment ([BS23], Attack Game 20.3, Experiment 0).
Simulated adaptive multi-theorem NIZK experiment in the programmable random-oracle model
([BS23], Attack Game 20.3, Experiment 1, with the overwrite simulator nizkSimProve).
Shared game-hop handlers (logging proved (y, t) pairs via RandomOracle.Programming) #
Logged real prove/hash handler, recording (y, t) on each valid prove query.
Logged programmable-ROM simulated prove/hash handler, recording (y, t) on each valid prove
query.
Concrete zero-knowledge bound (20.9) for one Sigma protocol, a step toward [BS23],
Theorem 20.3, not the cited result: under SpecialHVZK and δ-unpredictable commitments, any
adaptive distinguisher making at most Qp prove calls and Qro direct hash calls distinguishes
fiatShamirNIZKRealGame from fiatShamirNIZKSimGame with acceptance-probability difference at most
Qp * (Qp + Qro) * δ. The simulator is the overwrite variant nizkSimProve of Figure 20.2,
justified by the programming hop
RandomOracle.closeTo_run_lazyProgramHandler_overwriteProgramHandler_of_isQueryBounded.
Theorem 20.3 concludes that the proof system is niZK (Definition 20.5), which asks for an efficient simulator. This lemma has no efficiency claim for the simulator and fixes one protocol; the asymptotic theorem is open (#5293).
Game.advantage form of the concrete zero-knowledge bound (20.9) for one Sigma protocol, a step
toward [BS23], Theorem 20.3, not the cited result: the simulator has no efficiency claim
(abs_sub_fiatShamirNIZKRealGame_simGame_le; #5293).
The forking reduction for proofs of knowledge #
Plain ROM proof of knowledge #
An explicit-coin cheating prover in the plain random-oracle model: it draws private coins
coins and, given statement y, queries NIZKHashSpec Y T C to output a candidate proof
(t, z).
- Coins : Type
The cheating prover's private coin type.
Distribution on the cheating prover's private coins.
Deterministic oracle program producing
(t, z)for statementy.
Plain random-oracle proof-of-knowledge experiment on statement y: draw s ← A.coins, run
A.prove y s against oracle C from an empty cache, and verify the returned proof under the
shared cache.
Plain ROM knowledge extractor ([BS23], Section 20.3.4; rewinding via
[BN06], Lemma 1): fork A across its at most Qro + 1 hash queries on statement y
and apply extract to the two accepting transcripts when the fork succeeds.
Concrete extraction bound for one Sigma protocol and statement, a step toward
[BS23], Theorem 20.2, not the cited result (proved via the general forking inequality of
[BN06], Lemma 1): if P is special sound at y with extractor extract and A makes
at most Qro hash calls on y, then A's acceptance probability ε satisfies
ε ≤ (Qro + 1) / |C| + √((Qro + 1) * ε'), where ε' is the probability that
fiatShamirNIZKExtract P extract A Qro y outputs some w with R w y.
The book proves soundness, not extraction, in Section 20.3.4; this bound yields the soundness bound
succProbability_fiatShamirNIZKPokGame_le_of_false. The extractor has no efficiency claim and the
protocol is one instance (#5293).
Concrete extraction bound against a key generator (oneWayGame form), a step like
succProbability_fiatShamirNIZKPokGame_le, with no efficiency claim for the extractor (#5293):
averaging over (x, y) ← keyGen, a cheating prover making at most Qro hash calls yields a
oneWayGame adversary via fiatShamirNIZKExtract.
Concrete soundness bound on one fixed false statement, a step toward [BS23],
Theorem 20.2, not the cited result: if y has no witness in R, any cheating prover making at most
Qro hash calls convinces fiatShamirNIZKVerify with probability at most (Qro + 1) / |C|.
This is the bound (Qro + 1) / N that the book derives from Theorems 20.2 and 20.1 for its
Chaum–Pedersen example (pp. 837–838), here from special soundness and for a statement fixed in
advance. In Attack Game 20.2 the adversary chooses the statement; with special HVZK and
unpredictable commitments, succProbability_fiatShamirNIZKRealExtGameOn_le_of_false bounds
adaptively chosen false statements. Theorem 20.2 assumes only that the Sigma protocol is sound and
concludes asymptotic soundness (#5293).
Simulation-extractability (adaptive multi-theorem proof of knowledge) #
An explicit coin source realizing one step of simulateConversation simulate: drawing
r ← coins and evaluating eval r y reproduces (t, c, z) ← simulateConversation simulate y at
every statement y.
- Coins : Type
Coin space for one simulated transcript across statements.
Distribution on simulator coins.
Deterministic evaluation of
(t, c, z)at statementy.- map_eval (y : Y) : PMF.map (fun (r : self.Coins) => self.eval r y) self.coins = simulateConversation simulate y
Marginal law at each statement
yequalssimulateConversation simulate y.
Canonical SimCoinSource for any simulator over finite statement, commitment, and response
types via PMF.pi.
Explicit-coin adaptive multi-theorem cheating prover: it draws private coins coins, queries
both the prove oracle .inl (x, y) and the hash oracle .inr (y, t), and outputs a target
statement y* paired with a candidate proof (t*, z*).
- Coins : Type
The adversary's private coin type.
Distribution on the adversary's private coins.
Adaptive oracle program outputting
(y*, (t*, z*)).
A makes at most Qp prove calls and Qro hash calls on every coin sample.
Real adaptive multi-theorem proof-of-knowledge experiment with final-statement guard
admissible: A interacts with the real prove and hash oracles and wins when its output
(y*, (t*, z*)) satisfies admissible y*, passes fiatShamirNIZKVerify, and has a fresh
statement-commitment pair (y*, t*) not returned by any valid prove query.
Unrestricted real adaptive multi-theorem proof-of-knowledge experiment (admissible = true).
Simulated adaptive multi-theorem proof-of-knowledge experiment with final-statement guard
admissible: A interacts with the programmable-ROM simulated prove oracle and shared hash oracle,
winning under the same fresh-(y*, t*) acceptance condition.
Unrestricted simulated adaptive multi-theorem proof-of-knowledge experiment
(admissible = true).
Real fresh-statement experiment with final-statement guard admissible: as
fiatShamirNIZKRealExtGameOn, but the output statement y* itself must not have been answered by a
valid prove call.
Witness-free simulation-extractability rewinding extractor parameterized by an explicit
SimCoinSource (derived adaptive multi-theorem reduction combining SimCoinSource presampling with
[BN06], Lemma 1).
Witness-free simulation-extractability rewinding extractor over finite statement and
transcript spaces (admissible = true), answering prove queries with simulate and rewinding hash
queries via Forking.fork.
Game testing whether a simulation-extractability extractor outputs some (y*, w*) satisfying
both admissible y* and R w* y*.
Concrete simulation-extraction bound against simulated proofs for one Sigma protocol, derived
here and not a result of [BS23] (general SimCoinSource and admissible form, via
SimCoinSource presampling and [BN06], Lemma 1): without needing commitment
unpredictability or SpecialHVZK, an adaptive adversary making at most Qp prove calls and Qro
hash calls wins fiatShamirNIZKSimExtGameOn with probability at most
(Qro + 1) / |C| + √((Qro + 1) * ε'). The extractor has no efficiency claim (#5293).
The concrete simulation-extraction bound of succProbability_fiatShamirNIZKSimExtGameOn_le
against simulated proofs, over finite statement and transcript types.
Concrete adaptive simulation-extraction bound against real proofs for one Sigma protocol,
derived here and not a result of [BS23] (general SimCoinSource and admissible form,
combining the Attack Game 20.3 zero-knowledge hop with SimCoinSource presampling and
[BN06], Lemma 1): under SpecialSoundness, SpecialHVZK, and
UnpredictableCommitments R_honest δ, an adversary making at most Qp prove calls and Qro hash
calls wins fiatShamirNIZKRealExtGameOn with probability at most
Qp * (Qp + Qro) * δ + (Qro + 1) / |C| + √((Qro + 1) * ε'). The extractor has no efficiency
claim (#5293).
The concrete simulation-extraction bound of succProbability_fiatShamirNIZKRealExtGameOn_le
against real proofs, over finite statement and transcript types, with every final statement
admissible.
Fresh-statement corollary: outputting an accepted proof on a statement y* never queried on an
accepted prove call (!(proved.map Prod.fst).contains y*) implies (y*, t*) ∉ proved, so the same
simulation-extractability bound applies.
Concrete adaptive soundness bound on false statements for one Sigma protocol, derived here: if
every statement accepted by admissible lacks a witness in R, then even after Qp adaptive
prove queries on valid statements, A produces an accepted proof on an admissible false
statement with probability at most Qp * (Qp + Qro) * δ + (Qro + 1) / |C|.
Specializations to SigmaProtocol.linear and SigmaProtocol.schnorr #
When ψ y is injective on every statement y having a witness x with ψ y x = u y, the
commitments ψ y r of linear ψ u ι are (Fintype.card M)⁻¹-unpredictable.
Statement-independent SimCoinSource for linearSimulate ψ u ι: a single uniform draw from
C × M determines (ψ y z - ι c • u y, c, z) at every statement y, requiring no finiteness on
Y or N.
Adaptive multi-theorem NIZK zero-knowledge bound for SigmaProtocol.linear.
Plain ROM proof-of-knowledge bound for SigmaProtocol.linear when q is prime.
Adaptive multi-theorem simulation-extractability bound for SigmaProtocol.linear when q is
prime (requiring no finiteness on Y or N).
Commitments of schnorr ι g are (q : ℝ≥0)⁻¹-unpredictable whenever g ≠ 0
(reusing schnorr_commit_map_fst_le).
Perfect completeness of Schnorr Fiat–Shamir NIZK proofs in the lazy random-oracle model.
Adaptive multi-theorem NIZK zero-knowledge bound Qp * (Qp + Qro) / q for Schnorr Fiat–Shamir
NIZK proofs when g ≠ 0.
Plain ROM proof-of-knowledge bound for Schnorr Fiat–Shamir NIZK proofs.
Adaptive multi-theorem simulation-extractability bound
Qp * (Qp + Qro) / q + (Qro + 1) / |C| + √((Qro + 1) * ε') for Schnorr Fiat–Shamir NIZK proofs
when g ≠ 0 (requiring no finiteness assumption on G).