Why We Replaced RSA with Ed25519 (EdDSA RFC 8037)
As web architectures migrated from centralized application servers to edge runtimes (Cloudflare Workers, Vercel Edge Runtime) and serverless containers, the cryptographic overhead of token verification became a major bottleneck.
The Problem with RSA
Standard RSA-2048 and RSA-4096 keys have noticeable latency during public key mathematical operations:
The Solution: Ed25519
Ed25519 (EdDSA) uses twisted Edwards curves over a 256-bit prime field:
By publishing active Ed25519 keys at `/.well-known/jwks.json`, AuthSetu applications verify user authentication locally without making any round-trips to the AuthSetu database.