How to verify Ed25519 signatures in the browser using WebCrypto
A developer running a Japanese company-records API attaches Ed25519 signatures to its JSON records so recipients can confirm the issuer and detect any alteration. The walkthrough explains that the signed payload is the record without its signature block, canonicalised by sorting keys, using compact JSON and UTF-8 encoding. The key_id is derived from the first 8 bytes of the SHA-256 hash of the public key, so key rotations are visible. The public key is published, and verification runs entirely client-side through the WebCrypto API, with no uploads or server calls. The article supplies a sample record and JavaScript helpers for base64 decoding and validation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in