Skip to content

Function: setPSK()

ts
function setPSK(secret: string | Secret<string>): void;

Set the pre-shared key used to ensure that any data shared between nodes in the swarm is encrypted and namespaced.

Parameters

ParameterTypeDescription
secretstring | Secret<string>The pre-shared key to use

Returns

void