Skip to main content

ZKPPacker class

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

ZKPPacker implements IPacker interface

Signature:

export declare class ZKPPacker implements IPacker 

Implements: IPacker

Constructors

ConstructorModifiersDescription
(constructor)(provingParamsMap, verificationParamsMap)Creates an instance of ZKPPacker.

Properties

PropertyModifiersTypeDescription
provingParamsMapMap<string, ProvingParams>
verificationParamsMapMap<string, VerificationParams>

Methods

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