{
  "slug": "ecdsa",
  "name": "ECDSA",
  "aka": "P-256, P-384, secp256k1; also DSA",
  "group": "signatures",
  "kind": "Digital signature",
  "summary": "ECDSA is broken by Shor's algorithm. The general-purpose replacement is ML-DSA, with SLH-DSA where only hash functions should be trusted. Signatures and keys grow from tens of bytes to thousands.",
  "used_in": "TLS certificates, code signing, JWT (ES256), SSH, passkeys (WebAuthn), and transactions on Bitcoin and Ethereum.",
  "problem": "Elliptic-curve discrete logarithm",
  "assumption": "ecdlp",
  "quantum": "broken",
  "attack": "Shor's algorithm",
  "exposure": "Shor's algorithm recovers the private key from the public key. A forgery requires a quantum computer at the time of the attack. On a blockchain the public key of every account that has signed is on the ledger, and so is the reward for forging.",
  "recorded": "Not exposed. A forgery requires a quantum computer at the time of the attack.",
  "out_label": "Signature",
  "sizes": [
    {
      "label": "P-256 or secp256k1",
      "pk": 33,
      "out": 64
    },
    {
      "label": "P-384",
      "pk": 49,
      "out": 96
    }
  ],
  "replace": [
    {
      "slug": "ml-dsa",
      "name": "ML-DSA",
      "standard": "FIPS 204",
      "status": "Final",
      "standardized": true,
      "note": "The general-purpose replacement. CNSA 2.0 requires ML-DSA-87.",
      "page": "https://quantum.zksecurity.xyz/algorithms/ml-dsa/"
    },
    {
      "slug": "slh-dsa",
      "name": "SLH-DSA",
      "standard": "FIPS 205",
      "status": "Final",
      "standardized": true,
      "note": "Relies on hash functions alone. Large signatures and slow signing: for roots of trust and other keys that sign rarely.",
      "page": "https://quantum.zksecurity.xyz/algorithms/slh-dsa/"
    },
    {
      "slug": "lms-hss",
      "name": "LMS / HSS",
      "standard": "RFC 8554, SP 800-208",
      "status": "Final",
      "standardized": true,
      "note": "Stateful: each one-time key signs once. For firmware and software signing on controlled hardware, the use CNSA 2.0 lists it for.",
      "page": "https://quantum.zksecurity.xyz/algorithms/lms-hss/"
    }
  ],
  "alternatives": [
    {
      "slug": "fn-dsa",
      "name": "FN-DSA",
      "standard": "FIPS 206",
      "status": "In development",
      "standardized": false,
      "note": "The smallest signatures and keys of the lattice schemes, in use on Algorand and Starknet. FIPS 206 has no public draft.",
      "page": "https://quantum.zksecurity.xyz/algorithms/fn-dsa/"
    }
  ],
  "round3": true,
  "protocols": [
    "RFC 9881",
    "RFC 10073",
    "RFC 9909",
    "RFC 9964",
    "draft-ietf-tls-mldsa"
  ],
  "changes": [
    "ML-DSA-44 signatures and public keys are 2,420 and 1,312 bytes, against 64 and 33 for P-256.",
    "No public-key recovery. A verifier cannot derive the signer's key from an ML-DSA or SLH-DSA signature, as Ethereum's ecrecover does with ECDSA, so the key or its hash travels with the signature.",
    "No public derivation of child keys. Wallets that derive public keys without the private key (non-hardened BIP-32) have no counterpart in the standardized schemes.",
    "DSA is no longer approved for generating signatures (FIPS 186-5). The same replacements apply."
  ],
  "web3": "Bitcoin and Ethereum have not replaced ECDSA.",
  "specified": [
    {
      "title": "FIPS 186-5, Digital Signature Standard",
      "url": "https://csrc.nist.gov/pubs/fips/186-5/final"
    }
  ],
  "references": [],
  "tags": [
    "rsa-ecc"
  ],
  "timelines": [
    "nist-ir-8547",
    "cnsa-2-0",
    "australia-asd-ism"
  ],
  "proposed": [
    {
      "name": "Merkle Tree Certificates",
      "url": "https://datatracker.ietf.org/doc/draft-ietf-plants-merkle-tree-certs/",
      "note": "Certificates carried as Merkle inclusion proofs, so that a TLS handshake needs fewer post-quantum signatures. An IETF working group draft."
    }
  ],
  "page": "https://quantum.zksecurity.xyz/replacements/ecdsa/",
  "reviewed": "2026-11-25",
  "standing": "standardized replacement",
  "candidates": [
    "SQIsign",
    "FAEST",
    "MQOM",
    "SDitH",
    "UOV",
    "MAYO",
    "QR-UOV",
    "SNOVA"
  ]
}
