EdDSA (Edwards-curve Digital Signature Algorithm) is a modern signature scheme using twisted Edwards curves. It offers high performance, strong security, and resistance to implementation pitfalls that affect ECDSA.
// Deterministic signatures
// No random nonce needed - derived from message + private key
// Eliminates nonce reuse vulnerability that broke PS3
// Constant-time operations
// Designed to resist timing attacks
// Simpler implementation
// Fewer ways to make security mistakes
// JWT algorithm
EdDSA: Can use Ed25519 or Ed448
// Example JWT header
{
"alg": "EdDSA",
"typ": "JWT",
"crv": "Ed25519"
}
// Ed25519 is very fast:
// - Signing: ~15,000 signatures/second
// - Verification: ~7,000 verifications/second
// (On modern hardware)