Documentation

CslibFrontier.Crypto.Computational.SchnorrLeakedNonce

Key recovery from leaked Schnorr signing randomness #

In Boneh–Shoup [BS23], Section 21.2 (p. 861), leaking the random bits used to generate a Schnorr signature lets an adversary recover the long-term signing key directly from the signing equation z = r + c * α ([BS23], Section 19.2, pp. 762–763).

This module specializes schnorrRelatedNonceExtractWord (a = 0, b = r) to give the word-level recovery theorem on honest signatures, an explicit one-query WordOracleComp adversary with a uniform strict oracle-PPT certificate IsOraclePPTOn, and the concrete random-oracle key-recovery game and bound.

Differences from the book #

Main definitions #

Main results #

References #

schnorrRelatedNonceExtractWord at a = 0, b = r returns the secret-key word from an honest signature whose challenge is nonzero modulo F.order d.

One-query word-level ROM adversary taking (d, m, msg, sig, rBits) and recovering the secret-key word from sig and the leaked reduced randomness word rBits.

Native WordOracleComp leaked-randomness key-recovery game: schnorrSigKeyGen draws (pk, sk), sampleExp draws signing randomness r, signing executes the exact steps of schnorrROMSign (CslibFrontier/Crypto/Computational/SchnorrSignature/NativeROM.lean) against an m-bit stateful random oracle using the reduced nonce word rBits := (r % F.order d).bits, and adversary (d, m, msg, sig, rBits) queries the same oracle to recover sk.

Concrete success probability of schnorrLeakedNonceWordAdversary against an m-bit stateful random oracle when 2 ^ m ≤ F.order d: the loss 2 ^ (-m) is the zero-challenge event, on which z = r is independent of the secret key.