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
| Parameter | Type | Description |
|---|---|---|
publicKey | string | The compressed point, base64url, as profiles carry it |
label | string | - |
bound | Bound | - |
plaintext | Uint8Array | - |
Returns
Promise<string>
base64url of 0x01 ‖ enc ‖ ct