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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(provingParamsMap, verificationParamsMap) | Creates an instance of ZKPPacker. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
provingParamsMap | Map<string, ProvingParams> | ||
verificationParamsMap | Map<string, VerificationParams> |
Methods
Method | Modifiers | Description |
---|---|---|
mediaType() | ||
pack(payload, params) | creates JSON Web Zeroknowledge token | |
unpack(envelope) | validate envelope which is jwz token |