Skip to main content

JWSPacker.pack() method

creates JSON Web Signature token

Signature:

pack(payload: Uint8Array, params: JWSPackerParams): Promise<Uint8Array>;

Parameters

ParameterTypeDescription
payloadUint8Arrayserialized message
paramsJWSPackerParamssender id and proving alg are required

Returns:

Promise<Uint8Array>

Promise<Uint8Array>