minca
ApiCoreFunctions

Function: sealTo()

function sealTo(
   publicKey, 
   label, 
   bound, 
   plaintext
): Promise<string>;

Defined in: packages/core/src/identity/hpke.ts:206

Seals bytes to a P-256 key (a contact, member or door key), for one label and one place.

Parameters

ParameterTypeDescription
publicKeystringThe compressed point, base64url, as profiles carry it
labelstring-
boundBound-
plaintextUint8Array-

Returns

Promise<string>

base64url of 0x01 ‖ enc ‖ ct

On this page