minca
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

ParameterTypeDescription
recipient{ privateKey: CryptoKey; publicKey: string; }The key pair it was sealed to (contactKeyPair)
recipient.privateKeyCryptoKey-
recipient.publicKeystring-
labelstring-
boundBound-
sealedunknown-

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

On this page