Two openings of a Pedersen commitment give
ProvedCryptologyCity.pedersen_two_openingscryptographycryptology-citydiscrete-logarithm
Let be prime and let generate a group of order . Let and satisfy and . Then
Preamble
import Definitions.Def_CryptologyCity_DLogCommitments open scoped ENNReal
Formal statement
namespace CryptologyCity
theorem pedersen_two_openings {G : Type*} [Group G] (g : G) (p : ℕ) [Fact p.Prime]
(hg : IsCyclicGroupOfOrder g p) (h : G) (m r m' r' : ZMod p)
(heq : pedersen g h m r = pedersen g h m' r') (hne : (m, r) ≠ (m', r')) :
h = g ^ ((m - m') * (r' - r)⁻¹).val := by sorry
end CryptologyCitySource
Cryptology City, DLOG ⇒ Statistically hiding commitment, https://cryptology.city/Reductions/dlog-to-com-ped91 (Statement: two openings (m, r) ≠ (m', r') of one c give log_g h = (m − m')(r' − r)^{-1} mod p).
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a group, , and a prime with : every element of is an integer power of and has order exactly . Let be arbitrary (it is not required that ), and let satisfy
- , and
- (the pairs differ in at least one coordinate; or is not excluded by this hypothesis alone).
The theorem concludes
where the exponent is computed in and then reduced to its representative in , and is the field inverse in with the convention . In the literal statement, if the right-hand side is .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.