Documentation

Ed25519 Signatures

How every certificate is signed, and how to check a signature yourself — with a live worked example.

What Ed25519 is

Ed25519 is a fast, modern way to sign digital data so anyone can check the signature with a public key and know the data has not been changed.

How we sign

Each issuing organization has its own Ed25519 keypair, generated on first issue and stored server-side. The private key never leaves the server. Every certificate carries a proof:

Proof field on every certificate
"proof": {
  "type": "Ed25519Signature2020",
  "created": "2026-11-26T10:00:00.000Z",
  "verificationMethod": "https://api.badgebeacon.com/api/public/key/<tenant id>#ed25519-key-1",
  "proofValue": "…base64 signature…"
}

The signature covers the credential code, the holder name and email, the template id, the credential title, and the issue and expiry dates (as ISO strings). The public key is published at GET /api/public/key (or /api/public/key/:tenantId for one organization).

How to verify a signature independently

1. Fetch the credential: GET /api/verify?code=BB-2026-AF3UE5 — the response includes the proof and a real signatureValid flag on the certificate. 2. Fetch the public key: GET /api/public/key/:tenantId (the tenant id is in the proof's verification method URL). 3. Rebuild the signed JSON payload from the certificate fields above and verify the base64 signature against the public key with any Ed25519 library. Or run the live check below — it does the same thing through the API.

Worked example — demo record BB-2026-AF3UE5

This runs against the live registry, not a screenshot. If the demo record is not loaded, seed it from the Verification Desk first.

Key rotation and revocation

There is no key-rotation endpoint. Revocation works by certificate status, not by rotating keys: revoke a certificate and its public page flips to Revoked immediately, whatever the key. Keys are per-tenant and never leave the server. One operator note: if the server runs without the ED25519_PRIVATE_KEY setting, its fallback key is generated at boot and lost on restart — signatures made with it will not verify after a restart, so set the key for production use.

  • OpenAPI 3.1 Spec
contact@badgebeacon.com