Class: DataVerificationRequest

This class is typically created by the Proof Verifier client, and the DVR represents a request to verify certain attributes or properties of a user data.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

β€’ new DataVerificationRequest(dvrTitle, dvrId, queryEngineVer, queryMethodVer, query, userDataRequests, dvrVerifyingKey?): DataVerificationRequest

Parameters

Returns

DataVerificationRequest

Properties

dvrId

β€’ dvrId: string

The unique id of the DVR


dvrTitle

β€’ dvrTitle: string

The title of the DVR


dvrVerifyingKey

β€’ Optional dvrVerifyingKey: PublicKeyOption

The verifying key of the DVR


query

β€’ query: ZkpassQuery

The zkPass Query script


queryEngineVer

β€’ queryEngineVer: string

The version of the zkpass query engine used to create the DVR


queryMethodVer

β€’ queryMethodVer: string

The version of the zkpass query method used to create the DVR


userDataRequests

β€’ userDataRequests: UserDataRequests

An object containing one or more user data verifying key and url for the respective user data provided


zkVm

β€’ zkVm: string

The option of zkVM. We're planning to support multiple zkVMs.

This field could be filled with r0

Methods

getSha256Digest

β–Έ getSha256Digest(): string

Returns the DVR's SHA256 digest

Returns

string


serialize

β–Έ serialize(): string

Serializes the DVR into JSON string format

Returns

string


serializeJson

β–Έ serializeJson(): Object

Serializes the DVR into JSON object

Returns

Object


signToJwsToken

β–Έ signToJwsToken(pem, verifyingKeyJWKS?): Promise<string>

Signs the DVR into JWS token

Parameters

NameType

pem

string

verifyingKeyJWKS?

Returns

Promise<string>


deserialize

β–Έ deserialize(json): DataVerificationRequest

Deserializes JSON string into DVR object

Parameters

NameType

json

string

Returns

DataVerificationRequest


fromJSON

β–Έ fromJSON(Β«destructuredΒ»): DataVerificationRequest

Deserializes JSON object into DVR object

Parameters

NameType

Β«destructuredΒ»

any

Returns

DataVerificationRequest

Last updated