Digital signatures

Ed25519

Deterministic Edwards-curve signatures: Ed25519 and Ed448

standard Safe API Specified in a FIPS standard

About Ed25519

Ed25519 is one of 3 EdDSA variants in the NextSSL registry, a digital signature scheme. It uses a 32-byte public key, a 32-byte secret key, a 64-byte signature and a 32-byte seed. Its registry entry cites RFC 8032, FIPS 186-5 and RFC 9864. It is also known as ed25519-pure and eddsa-ed25519. NextSSL lists it in the standard tier and exposes it through the safe API.

Overview

EdDSA is a Schnorr-style signature scheme on twisted Edwards curves designed for speed, simplicity and resistance to implementation pitfalls. Ed25519 is the most common modern choice for classical signatures.

EdDSA derives the per-signature nonce deterministically by hashing a secret key prefix with the message, eliminating the random-nonce failures that have plagued ECDSA. Edwards curves have complete addition formulas, which simplifies constant-time implementation, and the encoding of points and scalars is fully specified, so implementations interoperate byte for byte. It also avoids the malleability of ECDSA when verifiers enforce canonical encodings.

Ed25519 uses the Edwards form of Curve25519 with SHA-512 and gives about 128-bit classical security, with 32-byte public keys and 64-byte signatures. Ed448 uses the Edwards448 (Goldilocks) curve with SHAKE256 for about 224-bit security, with 57-byte keys and 114-byte signatures. Ed448ph is the pre-hashed variant, which signs a SHAKE256 digest of the message and suits streaming large inputs. EdDSA is specified in RFC 8032 and approved for US federal use in FIPS 186-5.

History

2011–2023
  1. Ed25519 published by Bernstein, Duif, Lange, Schwabe and Yang

  2. EdDSA specified in RFC 8032

  3. EdDSA approved in FIPS 186-5

How it works

  1. KeyGen hashes a 32- or 57-byte seed; half becomes the secret scalar a, the other half a nonce prefix; A = aB is the public key.
  2. Sign computes r = H(prefix || M), R = rB, and k = H(R || A || M).
  3. The signature is (R, S) with S = r + k*a mod L.
  4. Verify checks that S*B equals R + k*A.

Security notes

Not post-quantum. Deterministic nonces make it vulnerable to fault attacks in some hardware settings, and implementations differ on validation rules (cofactor handling, non-canonical encodings), which matters for consensus systems. Ed448ph in NextSSL is not yet verified.

Typical uses

SSH keys and certificatesSoftware and package signingAuthentication in TLS 1.3, DNSSEC and messaging protocolsBlockchain and consensus systems

Sizes

FieldBytesMeaning
pk32Public key
sk32Secret key
sig64Signature
seed32Seed
ctx0Context string

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
pk, sk = ns.call("sign_keygen", "ed25519", None, outs=2)
sig = ns.call("sign_detached", "ed25519", None, sk, b"message", b"")[0]
ok  = ns.check("verify_detached", "ed25519", None, pk, b"message", b"", sig)

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other EdDSA variants

2

Frequently asked questions

What is Ed25519?

Ed25519 is a signature in the EdDSA family. EdDSA is a Schnorr-style signature scheme on twisted Edwards curves designed for speed, simplicity and resistance to implementation pitfalls. It is also known as ed25519-pure, eddsa-ed25519.

What are the Ed25519 sizes?

In NextSSL, Ed25519 uses: public key 32 bytes, signature 64 bytes.

Is Ed25519 post-quantum?

No. Ed25519 is a classical signature based on elliptic curves or discrete logarithms, which a large quantum computer running Shor's algorithm could break. For post-quantum use, look at ML-DSA or SLH-DSA.

Who designed Ed25519 and when?

Ed25519 belongs to the EdDSA family, first published in 2011 by Daniel J. Bernstein, Niels Duif, Tanja Lange, Peter Schwabe, Bo-Yin Yang. Its origin: RFC 8032, FIPS 186-5.

Which standards define Ed25519?

Ed25519 is referenced by RFC 8032, FIPS 186-5, RFC 9864. It is specified in a FIPS standard.

Is Ed25519 safe to use?

Ed25519 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.

What other EdDSA variants are there?

NextSSL also registers ed448, ed448ph in the EdDSA family.