Elliptic-Curve Keys and Signatures

Look inside an elliptic-curve key, watch two sides derive the same secret, see why ECDSA signatures differ every time while Ed25519 signatures repeat, and see on a toy curve what a repeated nonce gives away. Test keys only.

Keys and Agreement

A key names a curve and holds a point of a known size, the point is two numbers, and two sides combine their keys into one shared secret.

  1. Named Curves and Sizes

    a key names a curve and holds a point of a known size

  2. A Public Key Is a Point

    splitting a public key into its two coordinates

  3. ECDH Both Sides Agree

    two private keys, one shared secret

Signatures

ECDSA signatures that differ every time, Ed25519 signatures that repeat, the yes or no of verification, and what a repeated nonce gives away.

  1. ECDSA Signatures Are Random

    the same key and message, a different signature each time

  2. Ed25519 Signs the Same Way Twice

    a deterministic signature, the opposite of ECDSA

  3. Verify Says Yes or No

    what a signature check answers and what it does not

  4. A Reused Nonce Reveals the Key

    what two signatures with the same nonce give away

  5. Honesty Boundary

    one key, two files, and what the pages leave out