Before using the Generating Proof Endpoint, There are three essential items you'll need to use the endpoint:
encryptedUserDataToken
: This token contains your encrypted user data
encryptedDvrToken
: This token holds your encrypted DVR data
apiToken
: This unique identifier authenticates your requests with the zkPass API
apiToken
is the base64 form of YOUR_API_KEY:YOUR_API_SECRET
.
For instructions on creating the encryptedUserDataToken
and encryptedDvrToken
, refer to our Utilities section. It provides a step-by-step guide that covers:
Generating a Key Pair: This creates the keys you'll use for signing your data.
Signing User Data and DVR: This step adds a digital signature to your data tokens, ensuring their authenticity.
Encrypting User Data and DVR: This encrypts your data tokens, making them unreadable by anyone without the decryption key.
HTTP Method
POST
API endpoint (Playground)
https://playground-zkpass.ssi.id/api/1.0/dvr/1.0/proof
Authorization
base64 form of YOUR_API_KEY:YOUR_API_SECRET
Content-Type
Indicates that the content being sent or received is JSON data
user_data_token
string
Mandatory
encrypted user data token in JWE format
dvr_token
string
Mandatory
encrypted dvr token in JWE format
Please see example of encrypted User Data and DVR here.
This section provides a detailed reference for all zkPass API endpoints