cURL
Python
JavaScript
PHP
Go
Java
curl --request POST \
--url https://staging.terminal3.io/v1/vc/issuer/credentials/proof \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-token: <x-api-token>' \
--data '{
"vcIdFields": {}
}'
{
"data" : {
"holder" : "<string>" ,
"credentials" : [
{
"id" : "3c90c3cc-0d44-4b50-8888-8dd25736052a" ,
"type" : [
"<string>"
] ,
"context" : [
"<string>"
] ,
"issuer" : "<string>" ,
"validFrom" : "2023-11-07T05:31:56Z" ,
"validUntil" : "<string>" ,
"credentialSubject" : { } ,
"proof" : {
"type" : "<string>" ,
"proofPurpose" : "<string>" ,
"verificationMethod" : "<string>" ,
"created" : "2023-11-07T05:31:56Z" ,
"proofValue" : "<string>" ,
"cryptosuite" : "<string>"
}
}
]
}
}
Issuers must collect fields from issued VCs to create a presentation. For instance, they can choose Date of Birth (date_of_birth
) from VC A and Passport Verified (passport_verified
) from VC B, as shown below:
Selective disclosure works only with VC signed by BBS+ Signature.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
data.credentials. validFrom
data.credentials. validUntil
data.credentials. credentialSubject
data.credentials.credentialSubject. {key}
data.credentials.proof. type
data.credentials.proof. proofPurpose
data.credentials.proof. verificationMethod
data.credentials.proof. created
data.credentials.proof. proofValue
data.credentials.proof. cryptosuite