toip.tools

function · Browser and Node

sealSender

An INTRO's sealed sender: HPKE base mode to R, bound to the packet's enc. 81 bytes for a did:key.

@toip-tools/mesh-transportView source
TypeScriptImport
import { sealSender } from "@toip-tools/mesh-transport";

Declaration

TypeScriptSignature
sealSender(sender: string, recipientX: Uint8Array, enc: Uint8Array): Promise<Uint8Array<ArrayBufferLike>>;

Parameters

senderrequired
string
recipientXrequired
Uint8Array<ArrayBufferLike>
encrequired
Uint8Array<ArrayBufferLike>

Returns

Promise<Uint8Array<ArrayBufferLike>>