toip.tools

function · Browser and Node

addressTag

The 4-byte address tag of a packet from S to R, under k(S→R). Fresh for every enc.

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

Declaration

TypeScriptSignature
addressTag(k: Uint8Array, enc: Uint8Array): Uint8Array<ArrayBuffer>;

Parameters

krequired
Uint8Array<ArrayBufferLike>
encrequired
Uint8Array<ArrayBufferLike>

Returns

Uint8Array<ArrayBuffer>