Skip to content

Function: validateEnvelope()

validateEnvelope(value, options?): { ok: true; } | { ok: false; reason: string; }

Defined in: core/src/schema/crypto.ts:155

Server-side envelope sanity check. Called by the sync handler on push to reject malformed / oversized ciphertexts before they hit SQL. We can’t validate the auth tag (that’s what makes it end-to-end), but shape / size / allow-list can be enforced cheaply.

unknown

number

readonly string[]

{ ok: true; } | { ok: false; reason: string; }