← Lab /Security & privacy

Deterministic ECDSA on secp256k1 often violates RFC 6979 randomness assumption

The security assumption underlying RFC 6979 deterministic ECDSA (A*) is false for many secp256k1 implementations

Security & privacy arXiv 13 Nov 2026 Measurement Prototype evidence

Published as “Deterministic ECDSA on secp256k1: the RFC 6979 assumption, a counterexample, and the state of deployed implementations”

Why it matters

Deployments that rely on RFC 6979 cannot guarantee security without the additional A* assumption, and the majority of current secp256k1 libraries use deterministic nonces without extra entropy, exposing them to the key-recovery attacks described.

Summary

Deterministic ECDSA with the standard RFC 6979 nonce derivation is not provably secure: the paper defines a new assumption A* and shows a concrete counterexample (F′) that breaks security with a single signature even though the nonce function is a PRF. An audit of 31 secp256k1 implementations finds that 28 of them use deterministic signing without added entropy, so the assumption matters in practice. The evidence consists of formal reductions, impossibility results, and a real-world code survey, but the core security claim (A*) remains unproven for the actual SHA-256 compression function.

What they found 2

  1. A PRF-based nonce function can recover the secret key from a single deterministic ECDSA signature.

    “Det-ECDSA with F ′ is totally broken (Lemma 4.4). Consequently no reduction that treats the nonce function only as a PRF-in particular none that uses only the PRF security of HMACcan prove RFC 6979 secure.”

  2. Most deployed secp256k1 libraries sign deterministically by default and do not add extra entropy.

    “28 of 31 implementations (90%) sign ECDSA deterministically without additional entropy”

Caveats 5

  • Theorem 8.1 shows that low-R grinding security reduces to A* on an extended input domain, so the claimed security of grinding depends on the unproven A* assumption.
  • A* does not follow from the PRF security of HMAC and the hardness of DLP, nor, given a collision-resistance premise, from the PRF and dual-PRF properties of the SHA-256 compression function.
  • The collision-resistance premise is non-standard and is stated explicitly.
  • Separating the nonce key from the signing key, as RFC 6979 §3.6 and EdDSA do, makes it unnecessary, but is incompatible with existing keys and is used by none of the 31 implementations audited.
  • With an ideal compression function, A* follows tightly from DLP in the presence of a randomized-ECDSA signing oracle, and a nonce key independent of x removes the assumption.

What’s new here 4

  • Formal definition of the A* assumption that exactly captures deterministic ECDSA security.
  • Construction of a PRF-based nonce function (F′) that leaks the signing key, disproving that PRF security alone suffices.
  • Proof that A* and the auxiliary-input PRF (AI-PRF) assumption are not equivalent in either direction.
  • Comprehensive audit of 31 secp256k1 libraries revealing widespread deterministic signing without extra entropy.