Skip to content

platform/updates/ed25519-verifier

Defined in: app/src/platform/updates/ed25519-verifier.ts:8

Verifies detached Ed25519 signatures with Node’s built-in crypto. The browser carries the current key and its successor, so keys can rotate without breaking installations.

new Ed25519Verifier(publicKeys): Ed25519Verifier

Defined in: app/src/platform/updates/ed25519-verifier.ts:12

readonly string[]

Public keys in PEM format.

Ed25519Verifier

get hasKeys(): boolean

Defined in: app/src/platform/updates/ed25519-verifier.ts:17

Whether any key is configured.

boolean

verify(data, signature): boolean

Defined in: app/src/platform/updates/ed25519-verifier.ts:21

string

The signed text; its UTF-8 bytes are what was signed.

string

The detached signature, Base64-encoded.

boolean

Whether any trusted key made the signature.

SignatureVerifier.verify