Schnorr signatures are the Fiat–Shamir transform of the Schnorr identification protocol: to sign with secret key , sample , set , and ; the signature is , and it verifies iff for . Pointcheval and Stern (PS96, PS00) proved them EUF-CMA secure in the random-oracle model under DLOG. The reduction simulates signatures by programming the oracle and forks the forger at the oracle query behind its forgery. Bellare and Neven's general forking lemma (BN06, Lemma 1) gives the exact bound . Cryptology City records the reduction on DLOG ⇒ Schnorr signatures and the lemma on Forking lemma. This mission machine-checks the general forking lemma and the full reduction, with the simulator and the forking algorithm written out explicitly, and states the resulting concrete bound.
The setting is that of Cryptology City II and IV. is a group, has order and generates , exponents lie in , and is g ^ x.val. Adversaries are arbitrary randomized functions (PMF-valued), and games output when the adversary wins. is the probability that outputs for uniform . Messages range over an arbitrary type with decidable equality. The challenge set is a nonempty .
SigProg). A program asks hash queries and signing queries on messages , and finally outputs a forgery . Every randomized interactive forger is such a distribution. The query budget P.Within qH qS means at most hash and signing queries on every branch.schnorrSimForge). Given , signing coins and a list of oracle answers , it runs the program deterministically. A fresh hash query receives the next list answer, recorded with its list index. A signing query on takes the next coin , answers with , and programs ; if is already in the table it raises the flag bad. On the forgery it evaluates the same way. It returns the list index of if the forgery verifies, was not signed, bad was not raised, and came from the list.schnorrFork. On : sample the program, signing coins and oracle answers , and run the simulation. If it returns , sample fresh answers and rerun with the same program and coins on the answers . If the rerun returns the same and the same point with , output , and otherwise.Let be prime. For every forger making at most hash and signing queries, with and = schnorrFork,
Exact bounds are stated, with no asymptotics. Subtraction is truncated at . The term is the collision ; the bound holds for every nonempty , and it is meaningful when is small. The term bounds the probability that a programmed point is already in the oracle table, since each such commitment is uniform in and the table has at most entries. The final verification query is counted in . In , ; the reduction only inverts when . Running time is not modelled: the reduction runs the forger twice, so its time is about twice the forger's.
namespace CryptologyCity
theorem schnorr_rom_security {G : Type*} [Group G] [DecidableEq G] {M : Type*} [DecidableEq M]
(g : G) (p : ℕ) [Fact p.Prime] (hg : IsCyclicGroupOfOrder g p) (C : Finset (ZMod p))
(hC : C.Nonempty) (qH qS : ℕ) (A : SchnorrForger G M p)
(hA : ∀ X, ∀ P ∈ (A X).support, P.Within qH qS) :
((schnorrEUFAdv g p C hC A - (qS * (qH + qS) : ℝ≥0∞) / p).toReal) ^ 2 / (qH + 1) -
1 / C.card ≤
(dlogAdv g p (schnorrFork g p C hC qH qS A)).toReal := by sorry
end CryptologyCityLet be prime and let generate a group of order . Let be a message type with decidable equality and let be nonempty. For every forger whose programs all make at most hash and signing queries on every branch, let , let , and let be the forking reduction schnorrFork. Then
No open leaves. Every sub-goal is proved or awaiting decomposition.