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.
• new DataVerificationRequest(dvrTitle
, dvrId
, queryEngineVer
, queryMethodVer
, query
, userDataRequests
, dvrVerifyingKey?
): DataVerificationRequest
Parameters
Returns
• dvrId: string
The unique id of the DVR
• dvrTitle: string
The title of the DVR
• Optional
dvrVerifyingKey: PublicKeyOption
The verifying key of the DVR
• query: ZkpassQuery
The zkPass Query script
• queryEngineVer: string
The version of the zkpass query engine used to create the DVR
• queryMethodVer: string
The version of the zkpass query method used to create the DVR
• userDataRequests: UserDataRequests
An object containing one or more user data verifying key and url for the respective user data provided
• zkVm: string
The option of zkVM. We're planning to support multiple zkVMs.
This field could be filled with r0
▸ getSha256Digest(): string
Returns the DVR's SHA256 digest
Returns
string
▸ serialize(): string
Serializes the DVR into JSON string format
Returns
string
▸ serializeJson(): Object
Serializes the DVR into JSON object
Returns
Object
▸ signToJwsToken(pem
, verifyingKeyJWKS?
): Promise
<string
>
Signs the DVR into JWS token
Parameters
Returns
Promise
<string
>
▸ deserialize(json
): DataVerificationRequest
Deserializes JSON string into DVR object
Parameters
Returns
▸ fromJSON(«destructured»
): DataVerificationRequest
Deserializes JSON object into DVR object
Parameters
Returns
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
string
string
string
string
string
ZkpassQuery
| string
pem
string
verifyingKeyJWKS?
json
string
«destructured»
any