The BLS signature scheme in the random-oracle model #
This module formalizes the Boneh–Lynn–Shacham (BLS) signature scheme ([BS23], Section 15.5.1, pp. 627–629) in the random-oracle model, together with:
DecodablePairingGroupFamily: aPairingGroupFamilywhose first source groupG₀admits a canonical polynomial-time recognizable encoding (DecodablePrimeOrderGroupFamily), enabling native word-level verification that rejects non-canonical group encodings without stand-in validity predicates.- Typed BLS (
PairingGroupFamily.blsTypedROMScheme): keys(α • g₁, α)for uniformα, signingσ := α • H(m), and verificatione(H(m), pk) = e(σ, g₁), proved correct (blsTypedROMScheme_correct), uniquely verifiable (blsTypedROMScheme_unique, yieldingsufCmaGame_blsTypedROMScheme_eq_eufCmaGame), and bounded in the random-oracle EUF-CMA game via Coron's biased-coin co-CDH reduction (succProbability_eufCmaGame_blsTypedROMScheme_le, matching [BS23], Theorem 15.1, eq. (15.9),2.72 · (Q_s + 1)). - Native word BLS (
DecodablePairingGroupFamily.blsNativeROMScheme,blsWordSign,blsWordVerify): native strict-PPT key generation (P.G₁.toFamily.schnorrSigKeyGen n d), word-level signing and verification, canonical uniqueness (blsNativeROMScheme_unique_of_canonical), and equality ofwordSufCmaGameandwordEufCmaGame(wordSufCmaGame_blsNativeROMScheme_eq_wordEufCmaGame).
Notice that succProbability_eufCmaGame_blsTypedROMScheme_le bounds a distribution-level reduction
for an explicit typed call-bounded forger with ideal key generation, so it is a step toward
Theorem 15.1. The full asymptotic ROMSignature.EUFCMA and ROMSignature.SUFCMA theorems with
explicit uniform strict-PPT co-CDH reductions and native key sampling are proved in
CslibFrontier.Crypto.Computational.Pairing.BLSSecurity.
Main definitions #
Cslib.Crypto.DecodablePairingGroupFamily: pairing group family with decodableG₀.Cslib.Crypto.PairingGroupFamily.blsTypedROMScheme: typed ROM BLS scheme.Cslib.Crypto.PairingGroupFamily.blsBankedReduction: presampled Coron co-CDH reduction.Cslib.Crypto.DecodablePairingGroupFamily.blsNativeROMScheme,Cslib.Crypto.DecodablePairingGroupFamily.blsWordSign,Cslib.Crypto.DecodablePairingGroupFamily.blsWordVerify: native word-level BLS scheme and strict oracle-PPT algorithms.
Main results #
Cslib.Crypto.PairingGroupFamily.blsTypedROMScheme_correct,Cslib.Crypto.PairingGroupFamily.blsTypedROMScheme_unique,Cslib.Crypto.PairingGroupFamily.sufCmaGame_blsTypedROMScheme_eq_eufCmaGame: correctness and unique signatures for typed BLS.Cslib.Crypto.PairingGroupFamily.succProbability_eufCmaGame_blsTypedROMScheme_le_of_banked,Cslib.Crypto.PairingGroupFamily.succProbability_eufCmaGame_blsTypedROMScheme_le: quantitative Coron co-CDH bound ([BS23], Theorem 15.1, eq. (15.9)).Cslib.Crypto.DecodablePairingGroupFamily.isOraclePPTOn_blsWordSign,Cslib.Crypto.DecodablePairingGroupFamily.isOraclePPTOn_blsWordVerify,Cslib.Crypto.DecodablePairingGroupFamily.blsNativeROMScheme_correct,Cslib.Crypto.DecodablePairingGroupFamily.wordSufCmaGame_blsNativeROMScheme_eq_wordEufCmaGame: efficiency, correctness, and strong/existential equivalence for native word BLS.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 13.4.1 (Lemma 13.6, p. 543) and Section 15.5.1 (pp. 627–629, Theorem 15.1).
Pairing group families with decodable G₀ #
A pairing group family whose first source group G₀ admits a canonical polynomial-time
recognizable decoder (DecodablePrimeOrderGroupFamily), so arbitrary signature bit strings can be
tested and decoded in polynomial time without external validity stand-ins.
Decode a bit string as an element of
G₀.Carrier d, returningnoneif the word is not the canonical encoding of any element.- decode₀_encode (d : self.G₀.Desc) (x : self.G₀.Carrier d) : self.decode₀ d (self.G₀.encode d x) = some x
Decoding the encoding of any element recovers it.
- encode_eq_of_decode₀_eq_some {d : self.G₀.Desc} {w : List Bool} {x : self.G₀.Carrier d} : self.decode₀ d w = some x → w = self.G₀.encode d x
decode₀rejects non-canonical encodings. - computableInPolyTime_isElem₀ : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : self.G₀.Desc × List Bool) => (self.decode₀ p.1 p.2).isSome) (Turing.MultiTapeTM.encPair self.G₀.encDesc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool
Testing membership in
Set.range (G₀.encode d)is computable in polynomial time.
View the first source group of P as a DecodablePrimeOrderGroupFamily.
Boolean group-element membership test on G₀: true iff P.decode₀ d w succeeds.
Build a DecodablePairingGroupFamily from a DecodablePrimeOrderGroupFamily for G₀ and
the remaining pairing components.
Shared memoize preservation and unique-signature helpers #
Canonical Fintype instance on P.G₀.Carrier d, matching ZMod (P.G₀.order d) via
P.G₀.smul_generator_bijective d.
Typed BLS scheme in the random-oracle model #
The typed BLS signature scheme ([BS23], Section 15.5.1, pp. 627–628) over P and
fixed parameters d : P.G₀.Desc, with H : List Bool → P.G₀.Carrier d modeled as a random
oracle returning uniform elements of G₀.
Non-degeneracy / unique-pairing rule: pairing with g₁ is injective on G₀
(e(σ₁, g₁) = e(σ₂, g₁) ↔ σ₁ = σ₂).
Correctness of the typed BLS signature scheme: every honest signature verifies.
Unique signatures for typed BLS: for any public key u, hash point h, and candidate
signatures σ₁, σ₂, if both satisfy the verification equation for (u, h) then σ₁ = σ₂.
Strong = existential unforgeability for typed BLS: because signatures are unique per (u, m, H(m)), sufCmaGame and eufCmaGame define the exact same distribution for every forger.
Banked Coron reduction and typed Theorem 15.1 bound #
Presampled Coron co-CDH step: maintains (table, aborted, count) where each new hash point
draws the next (c, ρ) from samples ((false, 0) beyond samples). Hash queries return
coronSampleElem d v₀ (c, ρ); signing queries return ρ • u₀ when c = false and mark
aborted = true when c = true.
Distribution-level banked Coron co-CDH reduction for an arbitrary typed Forger.
Quantitative Coron bound for typed BLS (blsTypedROMScheme): for any typed call-bounded
forger A (Qs signing calls, Qro hash calls) and any Bernoulli coin coin with
(coin true).toReal = a⁻¹ and Qs + 1 ≤ a, the EUF-CMA success probability is at most
2.72 * a times the co-CDH success probability of P.blsBankedReduction d A (Qs + Qro + 1) coin.
Quantitative Coron co-CDH bound for typed BLS ([BS23], Theorem 15.1, eq. (15.9),
p. 629): for any typed call-bounded forger A making at most Qs signing queries and Qro hash
queries, succProbability (eufCmaGame (P.blsTypedROMScheme d) A) ≤ 2.72 * (Qs + 1) * ... for
P.blsBankedReduction.
Native word-level BLS algorithms and scheme #
Native BLS signing on encoded hash digests: query msg, reading at most limit reply
bits, then scalar-multiply the encoded digest in G₀ by ofBits sk.
Native BLS verification on bit-string signatures: query msg, reading at most limit reply
bits, test P.isElem₀ (d, sig), and check
P.pairEncoded (d, hBits, pk) = P.pairEncoded (d, sig, encode g₁).
blsWordSign is uniformly strict oracle-PPT in the description, unary reply limit, secret key
and message.
blsWordVerify is uniformly strict oracle-PPT in the description, unary reply limit, public
key, message and signature.
The native word-level BLS signature scheme in the random-oracle model
([BS23], Section 15.5.1, pp. 627–628) at security parameter n and group parameters
d. Key generation samples sk ← P.G₁.toFamily.sampleExp n d and sets pk := encode (sk • g₁)
via P.G₁.toFamily.schnorrSigKeyGen n d. Verification rejects non-canonical signature words via
P.isElem₀.
Exact joint realization of blsWordSign against any stateful G₀ oracle whenever every
canonical digest encoding has length at most limit.
Exact joint realization of blsWordVerify against any stateful G₀ oracle whenever every
canonical digest encoding has length at most limit.
Correctness of blsNativeROMScheme: every generated key pair and signature verifies.
Canonical unique signatures for native BLS verification under a canonical G₁ public key
P.G₁.encode d u: checking P.isElem₀ and the pairing equation determines sig : List Bool
uniquely.
Strong = existential unforgeability for native BLS: for every word forger, wordSufCmaGame
and wordEufCmaGame coincide.
Native BLS SUF-CMA ↔ EUF-CMA: strong unforgeability and existential unforgeability coincide in the random-oracle model.