Skip to content
docs

Protector

Protector = { kind: "password"; password: string; } | { id: string; key: Uint8Array; kind: "key"; label?: string; }

Defined in: envelope.ts:57

Who can open a backup. Several can be attached; each one alone opens it.

{ kind: "password"; password: string; }


{ id: string; key: Uint8Array; kind: "key"; label?: string; }

A ≥32-byte secret held elsewhere: a passkey PRF output, a random key in iCloud Keychain / Google Block Store, a hardware key’s hmac-secret. id names it so the app knows which key to fetch (e.g. “passkey:”, “icloud-keychain”).