Function: validateEnvelope()
Function: validateEnvelope()
Section titled “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.
Parameters
Section titled “Parameters”unknown
options?
Section titled “options?”maxCiphertextBytes?
Section titled “maxCiphertextBytes?”number
allowedKeyIds?
Section titled “allowedKeyIds?”readonly string[]
Returns
Section titled “Returns”{ ok: true; } | { ok: false; reason: string; }