RFC 6979 ECDSA nonce assumption separated from PRF security
Original title: Deterministic ECDSA on secp256k1: the RFC 6979 assumption, a counterexample, and the state of deployed implementations
Of 31 secp256k1 implementations audited, 28 sign deterministically, and a bits2octets deviation remains in three libraries.
The paper isolates assumption A* behind RFC 6979 deterministic ECDSA nonces and gives counterexamples showing it is neither HMAC PRF security nor auxiliary-input PRF security. It also reports statistical bias of the secret HMAC message block on secp256k1, P-256, and brainpoolP256r1, and audits deployed secp256k1 signers. Low-R grinding is analyzed under A*, and test vectors are given for the untested h greater than or equal to n branch.
- The secret HMAC block is 2^-127.65 from uniform on secp256k1 and 2^-32 on P-256.
- On brainpoolP256r1 that distance is 0.336.
- A libsecp256k1-before-0.2.0 bits2octets deviation survives in NBitcoin, dcrd, and btcec v2.
- Every nonzero Fourier coefficient of the low-R nonce set is below 2^-116.9.
From the original article
1 min read at arxiv.orgRFC 6979 derives the ECDSA nonce as $k = F_x(h)$, with $F_x$ HMAC_DRBG keyed by the signing key x. We isolate the assumption its security rests on, A*: at known public key $Q = xG$, the signing transcript under nonces $F_x()$ is indistinguishable from the transcript under uniform nonces. A* suffices, and it is neither PRF security of HMAC nor auxiliary-input PRF security (AI-PRF) of $F_x$.
By Ilia Prosianoi · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.