Skip to main content

JWSPacker class

Packer that can pack message to JWZ token, and unpack and validate JWZ envelope

ZKPPacker implements IPacker interface

Signature:

export declare class JWSPacker implements IPacker 

Implements: IPacker

Constructors

ConstructorModifiersDescription
(constructor)(_kms, _documentResolver)Creates an instance of JWSPacker.

Methods

MethodModifiersDescription
mediaType()
pack(payload, params)creates JSON Web Signature token
unpack(envelope)validate envelope which is jwz token