Pedersen commitments are perfectly hiding
ProvedCryptologyCity.pedersen_hidingcryptographycryptology-citydiscrete-logarithm
Let be prime and let generate a group of order . For every with and all messages , the law of for uniform equals the law of .
Preamble
import Definitions.Def_CryptologyCity_DLogCommitments open scoped ENNReal
Formal statement
namespace CryptologyCity
theorem pedersen_hiding {G : Type*} [Group G] (g : G) (p : ℕ) [Fact p.Prime]
(hg : IsCyclicGroupOfOrder g p) (h : G) (hh : h ≠ 1) (m m' : ZMod p) :
(PMF.uniformOfFintype (ZMod p)).map (fun r => pedersen g h m r) =
(PMF.uniformOfFintype (ZMod p)).map (fun r => pedersen g h m' r) := by sorry
end CryptologyCitySource
Cryptology City, DLOG ⇒ Statistically hiding commitment, https://cryptology.city/Reductions/dlog-to-com-ped91 (Statement: perfectly hiding, also for receiver-chosen parameters passing the check h ≠ 1). Pedersen, CRYPTO 1991, https://doi.org/10.1007/3-540-46766-1_9.
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a group (no finiteness or decidability assumption), , and a prime with : every element of is an integer power of and has order exactly . Let with , and let be arbitrary.
The theorem asserts equality of two probability distributions on : the distribution of for uniform on equals the distribution of for uniform on ,
where is the canonical representative. This is an exact (perfect) equality for each fixed ; is a parameter, not sampled, and no adversary or game appears.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.