ApiCoreFunctions
Function: openFrom()
function openFrom(
recipient,
label,
bound,
sealed
): Promise<Uint8Array<ArrayBufferLike> | null>;Defined in: packages/core/src/identity/hpke.ts:227
Opens what sealTo sealed.
Parameters
| Parameter | Type | Description |
|---|---|---|
recipient | { privateKey: CryptoKey; publicKey: string; } | The key pair it was sealed to (contactKeyPair) |
recipient.privateKey | CryptoKey | - |
recipient.publicKey | string | - |
label | string | - |
bound | Bound | - |
sealed | unknown | - |
Returns
Promise<Uint8Array<ArrayBufferLike> | null>
The plaintext, or null for an unknown version, too few bytes, the wrong key, label or bound, or anything changed