What is ECDSA?
ECDSA is the elliptic-curve signature scheme behind most Bitcoin and Ethereum wallets. It proves that the holder of a private key approved a message without revealing the key, and its security rests on the secp256k1 curve.
Also called elliptic-curve signature, secp256k1, Schnorr signature or Elliptic Curve Digital Signature Algorithm.
Explain it like I’m five
Picture a huge circular track with a 78-digit number of spots and a start line called G. Your private key is a secret number d, the number of hops you take from the start line. Hopping d times is quick, because you can keep doubling the length of your hop and a few hundred steps are enough. The spot where you land is your public key.
Anyone can see where you landed, but nobody can tell how many hops it took. The best known way to find out needs a 39-digit number of steps, which no computer can run. A signature is a short proof, tied to one exact message, that you know the hop count. It is built with a fresh random number each time, and it reveals nothing about d.
What problem it solves
A blockchain has no bank to ask whether a payment is allowed. Every node has to check, from public data alone, that whoever moves the coins holds the right secret. A digital signature does exactly that: the owner signs the transaction with the private key, and the network checks the signature against the public key.
ECDSA does it with short numbers. Google Quantum AI notes that elliptic-curve keys are almost an order of magnitude smaller than RSA keys at a similar security level, which keeps transactions small.
How it works, step by step
- First, everyone agrees on a curve and a start point G. Bitcoin and Ethereum both use secp256k1, the points that satisfy y² = x³ + 7 with arithmetic modulo a 256-bit prime (the curve parameters).
- The wallet picks a random 256-bit number d as the private key and computes the public key Q = d × G by repeated doubling and adding (scalar multiplication).
- To sign, it hashes the message to a 256-bit number z (the message hash). Bitcoin hashes the transaction data with SHA-256 twice, and Ethereum uses Keccak-256.
- It draws a fresh secret random number k, computes the point k × G, and keeps that point’s x-coordinate, reduced modulo the group order n, as r (the nonce point).
- It then computes s = (z + r × d) ÷ k modulo n. The pair (r, s) is the signature, and only someone who knows d can make a pair that passes the check (the signature equation).
- To verify, anyone with Q computes u1 = z ÷ s and u2 = r ÷ s modulo n, then the point u1 × G + u2 × Q. The signature is valid if that point’s x-coordinate equals r. For an honest signer the point is exactly k × G, which is why the check works (the verification equation).
- A one-byte recovery identifier lets a verifier work backward from (r, s) and the message hash to the public key. Ethereum relies on this: every node recovers the key from each transaction signature and hashes it into the sender’s address (public-key recovery).
A worked example
Alice’s wallet holds a 32-byte private key d and a 33-byte compressed public key Q. To pay Bob, it builds a transaction, hashes it to 32 bytes and signs the hash. The signature is two 32-byte numbers, r and s, and Ethereum adds a one-byte recovery identifier for 65 bytes in all.
Every node checks the signature against Q. On Bitcoin, a spend from an ordinary address shows Q next to the signature. On Ethereum the transaction carries only the signature, and each node recovers Q and hashes it into Alice’s address. Either way, one signed payment puts Q in front of everyone, and with Q a quantum computer running Shor’s algorithm can compute d.
What it guarantees
- Without d, nobody can produce a valid signature for a new message. The best known classical attack on the secp256k1 discrete logarithm needs a 39-digit number of steps.
- A signature covers one exact message. Change one bit of the transaction and the check fails.
- The random number k must be fresh and secret. If the same k signs two messages, or k can be guessed, the private key can be computed from the signatures, which leaked Sony’s PlayStation 3 signing key in December 2010 and cost Android Bitcoin users funds in August 2013. RFC 6979 removes the risk by deriving k from the key and the message with HMAC.
- The private key is 32 bytes, the compressed public key 33 bytes and the signature 64 bytes.
- A large quantum computer running Shor’s algorithm computes d from Q. Google Quantum AI’s 2026 estimate for the 256-bit curve is no more than 1,200 logical qubits and 90 million Toffoli gates.
Common misunderstandings
- ECDSA is the algorithm and secp256k1 is the curve it runs on. The same algorithm also runs on the other curves that NIST’s SP 800-186 specifies.
- A signature does not hide anything. Bitcoin and Ethereum transactions are public, and the signature shows only that the owner approved them.
- Schnorr signatures in Bitcoin’s Taproot give no protection, because they use the same curve and fall to the same algorithm, as Google Quantum AI’s whitepaper notes.
- A longer key buys little. Shor’s algorithm needs only polynomial time, so a bigger curve asks for a somewhat bigger quantum computer and no more.
Where it is used
- Bitcoin signs spends with ECDSA on secp256k1, and since the Taproot upgrade of 2021 also with Schnorr signatures on the same curve.
- Ethereum accounts sign every transaction with a recoverable ECDSA signature on secp256k1, as the Yellow Paper specifies.
- Beyond coins, Google Quantum AI’s whitepaper lists software updates, secure boot, TLS, messaging, passports, SSH and DNS authentication as users of elliptic-curve cryptography.
- NIST’s Digital Signature Standard, FIPS 186-5 of 3 February 2023, specifies ECDSA together with RSA and EdDSA.
History
Neal Koblitz and Victor Miller proposed elliptic curves for cryptography independently in the mid-1980s. Bitcoin later made secp256k1, a curve that almost nobody had used before, the most widely known of all. On 30 March 2026 Google Quantum AI, with Ethereum Foundation and Stanford authors, published new resource estimates for breaking it, and NIST’s final IR 8547 of October 2026 deprecates ECDSA after 2030 and disallows it after 2035.
In Redacted
In Redacted, nodes and Spending accounts sign with SLH-DSA. In bunker mode your account is 25 words you keep, never derived from a wallet key, so a broken wallet key does not open your private balance.
Bunker mode →Related terms
Sources: Elliptic Curve Digital Signature Algorithm, Bitcoin Wiki · Ethereum: a secure decentralised generalised transaction ledger, Yellow Paper, Appendix F · Securing elliptic curve cryptocurrencies against quantum vulnerabilities, Babbush et al., March 2026 · Transition to Post-Quantum Cryptography Standards, NIST IR 8547, October 2026 · Deterministic usage of DSA and ECDSA, RFC 6979
Updated November 1, 2026. All terms