SysTutorials

Ed25519: Fast, Deterministic EdDSA Signatures

Ed25519 is the EdDSA signature scheme over the Curve25519 elliptic curve, specified in RFC 8032. It signs deterministically, verifies quickly, and has fixed 32-byte public keys and 64-byte signatures. Solana, OpenSSH, TLS 1.3, and a long list of modern protocols rely on it as a signature scheme.

How it works

Ed25519 signs from a 32-byte seed. The seed is hashed once to derive both the signing scalar and a “prefix” used for nonce generation. The signature is computed as:

  1. r = SHA-512(prefix, message), interpreted as a scalar
  2. R = rB, a point on the curve
  3. S = r + SHA-512(R, A, M) ยท a (mod L), the scalar challenge-response step

The signature is (R, S), 64 bytes. Verification checks the curve equation [S]B = R + [SHA-512(R, A, M)]A.

Deterministic by design

The nonce r comes from hashing the prefix and the message, not from a random number generator. That removes the entire class of catastrophic nonce-reuse failures that plague ECDSA: no RNG, no bias, no repeated nonces. Two signatures of the same message are identical, which is also convenient for reproducible builds and tests.

Sizes and speed

Where it is used

Solana signs every transaction with Ed25519. OpenSSH has generated Ed25519 keys by default since version 9.5 (2023). TLS 1.3, newer certificate transparency logs, and package managers adopted it for the same reasons: small, fast, and hard to misuse. WireGuard uses the same curve for key exchange, not for signatures.

The post-quantum clock

Ed25519’s security rests on the elliptic-curve discrete logarithm problem, so Shor’s algorithm breaks it just as it breaks ECDSA. Chains built on Ed25519 need the same post-quantum migration as Bitcoin and Ethereum: new address types and signature agility, swapping in ML-DSA, FN-DSA (Falcon), or hash-based schemes as the chains adopt them.

← All posts