Extraction from a fork of the Schnorr simulation
ProvedCryptologyCity.schnorr_fork_extractcryptographycryptology-citydiscrete-logarithmrandom-oracle-model
Let be prime and let generate a group of order . Let be a message type with decidable equality and let be nonempty. Let , a forger program , signing coins and answer vectors be given, and let . If the simulation on public key with answers returns , the simulation with answers ( for , for ) returns , and , then , and .
Preamble
import Definitions.Def_CryptologyCity_SchnorrROM open scoped ENNReal
Formal statement
namespace CryptologyCity
theorem schnorr_fork_extract {G : Type*} [Group G] [DecidableEq G] {M : Type*} [DecidableEq M]
(g : G) (p : ℕ) [Fact p.Prime] (hg : IsCyclicGroupOfOrder g p) (x : ZMod p) (qH : ℕ)
(P : SigProg G M p) (σs : List (ZMod p × ZMod p)) (h h' : Fin (qH + 1) → ZMod p)
(J : ℕ) (hJ : J < qH + 1) (y y' : G × M) (e s e' s' : ZMod p)
(h₁ : schnorrSimForge g (g ^ x.val) P σs (List.ofFn h) = some (J, y, e, s))
(h₂ : schnorrSimForge g (g ^ x.val) P σs
(List.ofFn fun i => if i.val < J then h i else h' i) = some (J, y', e', s'))
(hne : h ⟨J, hJ⟩ ≠ h' ⟨J, hJ⟩) :
y' = y ∧ e ≠ e' ∧ (s - s') * (e - e')⁻¹ = x := by sorry
end CryptologyCitySource
Cryptology City, DLOG ⇒ Schnorr signatures, https://cryptology.city/Reductions/dlog-and-rom-to-schnorr-signatures-sch91 (Sketch: two forgeries (R, c, s), (R, c', s') with c ≠ c' give x = (s − s')/(c − c')). Cryptology City, Forking lemma, https://cryptology.city/Folklore/forking-lemma (Application to Fiat–Shamir signatures).
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.