Documentation

CslibFrontier.Crypto.Computational.SchnorrSignature.WordROM

Canonical word Schnorr in the random-oracle model #

The statement remains an actual group element, while commitments and responses are arbitrary words. Verification calls schnorrSigVerifyBits with the canonical public-key encoding. An accepted commitment therefore has a group meaning without a group decoder. Response words are interpreted modulo the group order, including noncanonical scalar representations.

The Fiat–Shamir instance retains the entire word hash domain. Only signer/verifier hash points use encPair encBits encBits; other words remain ordinary keys in the same random oracle. The finite bound uses ideal uniform scalar sampling. Native forger composition, efficient forking and the actual key-generation/signing approximation hops are separate obligations.

Main definitions #

Main results #

References #

Schnorr with word commitments and responses, using the sole native verifier encodeSchnorrVerify at a canonical public key.

Acceptance recovers a canonical commitment for every response word.

On encoded commitments, the word verifier agrees with typed Schnorr after interpreting the response scalar. No assumption on the response word is required.

theorem Cslib.Crypto.PrimeOrderGroupFamily.schnorrWordSigma_transcript (F : PrimeOrderGroupFamily) (d : F.Desc) {m : ℕ} (hm : 2 ^ m ≤ F.order d) (x : ZMod (F.order d)) (u : F.Carrier d) (c : BitString m) :
(F.schnorrWordSigma d hm).transcript x u c = PMF.map (Prod.map (F.encode d) ⇑(F.encScalar d)) ((F.schnorrBitSigma d hm).transcript x u c)

Honest word transcripts are exactly the encodings of the existing typed transcripts.

theorem Cslib.Crypto.PrimeOrderGroupFamily.schnorrWordSigma_complete (F : PrimeOrderGroupFamily) (d : F.Desc) {m : ℕ} (hm : 2 ^ m ≤ F.order d) :
(F.schnorrWordSigma d hm).Complete fun (x : ZMod (F.order d)) (u : F.Carrier d) => x • F.generator d = u

The word instance retains honest completeness.

def Cslib.Crypto.PrimeOrderGroupFamily.schnorrWordExtract (F : PrimeOrderGroupFamily) (d : F.Desc) {m : ℕ} (hm : 2 ^ m ≤ F.order d) (u : F.Carrier d) (_t : List Bool) (c : BitString m) (z : List Bool) (c' : BitString m) (z' : List Bool) :
ZMod (F.order d)

The existing linear extractor applied to scalar interpretations of the two response words. It neither decodes the commitment nor assumes canonical responses.

Special soundness for all word commitments and responses, at group-valued statements.

noncomputable def Cslib.Crypto.PrimeOrderGroupFamily.schnorrWordSimulate (F : PrimeOrderGroupFamily) (d : F.Desc) {m : ℕ} (hm : 2 ^ m ≤ F.order d) (u : F.Carrier d) (c : BitString m) :

Encode the existing perfect Schnorr simulator.

Perfect special honest-verifier zero knowledge of the actual word instance.

Encoding preserves the Schnorr commitment bound for every word, with zero mass outside the canonical encoding range.

Canonical word Schnorr signatures in the existing shared random-oracle game. Public keys remain actual group elements; messages, signature components and every hash query are words. Key generation and signing randomness use the ideal uniform scalar law.

Final verification queries the encoded message/commitment pair and invokes the native verifier. Every other hash word remains available to the adversary.

With canonical commitment coins, signing invokes the existing native signing arithmetic on exactly the challenge returned by the shared random oracle.

Honest word signatures verify in the shared cache.

The existing generic forking reduction instantiated with arbitrary word transcripts and hash queries, returning zero on a failed fork. This is a distribution-level reduction, without a native efficiency certificate.

The finite-query Schnorr bound for the actual word verifier. All hash words count, including those outside the pair-encoding image. The challenge term uses 2 ^ m injectively embedded challenges, and the commitment term uses the prime group order. The one-way success term belongs to the displayed distribution-level reduction; native efficiency and sampling approximation are separate obligations.