Skip to content

Verify Ed25519 (v1a) webhook signatures - #1

Merged
cade25wilson merged 1 commit into
masterfrom
feat/ed25519-verify
Oct 23, 2026
Merged

cade25wilson merged 1 commit into
masterfrom
feat/ed25519-verify

Conversation

@cade25wilson

Copy link
Copy Markdown
Contributor

Adds verification of Ed25519 (v1a) webhook signatures. The scheme is picked from the key prefix: whpk_ public keys verify v1a entries, whsec_ secrets verify v1 as before. Same timestamp tolerance and multi-entry (rotation grace) handling as v1. Endpoint models now expose signatureScheme and publicKey, create/update accept signatureScheme, and the rotate-secret result covers the Ed25519 response shape. Tested against signatures produced by the API's own signing code.

…Scheme/publicKey

Webhook now accepts a whpk_ public key (verify-only) or a whsk_ secret key (sign + verify, for
tests); the prefix picks the scheme. Same timestamp tolerance and any-entry-matches multi-signature
handling as v1; each verifier only considers its own version's entries in a mixed header. Adds
Webhook.signatureScheme(), SCHEME_* constants, generateEd25519KeyPair() and Ed25519KeyPair.

Endpoint gains signatureScheme and publicKey; CreateEndpointParams and UpdateEndpointParams gain
signatureScheme(). Version 1.1.0.
@cade25wilson
cade25wilson merged commit 6901363 into master Oct 23, 2026
2 checks passed
@cade25wilson
cade25wilson deleted the feat/ed25519-verify branch October 23, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant