toip.tools

function · Browser and Node

tspSignatureValid

Checks the TSP signature, so a mesh node can drop forgeries and tag collisions before delivery.

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

Declaration

TypeScriptSignature
tspSignatureValid(p: TspParts, signingKey: Uint8Array): boolean;

Parameters

prequired
TspParts
signingKeyrequired
Uint8Array<ArrayBufferLike>

Returns

boolean