Schnorr signatures with related nonces #
In Schnorr's random-oracle signature scheme ([BS23], Section 19.2), signing two messages
m₀ ≠ m₁ under nonces r and a * r + b with known a, b : ZMod q exposes the signing key via
relatedNonceExtract whenever a * ι c₀ ≠ ι c₁ ([BS23], Exercise 19.1). Under a lazily
sampled uniform random oracle, a two-query attacker recovers the secret key with probability at
least 1 - 1 / |C| (one_sub_inv_card_le_succProbability_relatedNonceGame). This is a step
toward Exercise 19.1, not the cited result: an attack is only meaningful for an efficient
adversary, since an unbounded one can compute the key from the public key, and nothing here
certifies relatedNonceAttacker as efficient. The word-level game for general (a, b) is open
(#5293).
Differences from Boneh–Shoup. The book fixes a cyclic group with generator g, hashes to a
challenge set C, and states that the adversary recovers the secret key with high probability. Here
the ambient group is an additive ZMod q-module with an arbitrary base g and challenge embedding
ι : C ↪ ZMod q (schnorrROMScheme), for honest responses the formula returns the key for any base
g whenever a * ι c₀ ≠ ι c₁ (relatedNonceExtract_respond), and the explicit lower bound
1 - 1 / |C| assumes m₀ ≠ m₁ (needed because equal messages with a = 1, b = 0 repeat the
random-oracle query and force a * ι c₀ = ι c₁). Only the exact-security typed ROM experiment is
defined here; polynomial-time word extraction is separate in
CslibFrontier.Crypto.Computational.SchnorrRelatedNonce, and the a = 0 leaked-nonce word
game and PPT adversary are in CslibFrontier.Crypto.Computational.SchnorrLeakedNonce (general
(a, b) word-level games remain open).
Main definitions #
Cslib.Crypto.Protocols.SigmaProtocol.relatedNonceExtract: key-recovery formula, equal tolinearExtracton the first conversation transformed byschnorr_accepts_affine.Cslib.Crypto.Protocols.SigmaProtocol.relatedNonceAttacker: two-query ROM adversary outputtingrelatedNonceExtract.Cslib.Crypto.Protocols.SigmaProtocol.relatedNonceGame: two-signature related-nonce experiment.
Main results #
Cslib.Crypto.Protocols.SigmaProtocol.schnorr_accepts_affine: scaling and shifting an accepting Schnorr transcript scales its challenge bya.Cslib.Crypto.Protocols.SigmaProtocol.relatedNonceExtract_smul: special soundness ofrelatedNonceExtract, deduced fromschnorr_specialSoundness.Cslib.Crypto.Protocols.SigmaProtocol.relatedNonceExtract_respond: honest-response key recovery without a group-generator hypothesis.Cslib.Crypto.Protocols.SigmaProtocol.relatedNonceAttacker_isQueryBounded:relatedNonceAttackermakes at most two hash queries.
Step toward Exercise 19.1 #
Cslib.Crypto.Protocols.SigmaProtocol.one_sub_inv_card_le_succProbability_relatedNonceGame: success probability at least1 - 1 / |C|form₀ ≠ m₁.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 19.2 and Exercise 19.1.
An accepting Schnorr conversation with nonce r gives, for the full challenge space, an
accepting conversation with nonce a * r + b: scale by a and shift by b.