CredentialRequest
formatstringrequired
Possible values: [jwt_vc_json-ld
, jwt_vc_json
]
Example:
jwt_vc_json-ld
credential_definition object
@contextstring[]required
Example:
["https://www.w3.org/2018/credentials/v1"]
typestring[]required
Example:
["VerifiableCredential"]
credentialSubjectobject
Example:
{"id":{"mandatory":true,"value_type":"string","display":[{"name":"ID","locale":"en-US"}]}}
proof objectrequired
oneOf
- JwtProof
- CwtProof
- LdpVpProof
proof_typestringrequired
Example:
jwt
jwtstringrequired
Example:
jwt-token-sample
proof_typestringrequired
Example:
cbt
cbtstringrequired
Example:
cbt-token-sample
proof_typestringrequired
Example:
ldp_vp
ldp_vp object
@contextstring[]required
Example:
["https://www.w3.org/2018/credentials/v1"]
typestring[]required
Example:
["VerifiablePresentation"]
holderstringrequired
Example:
holder-sample
proof objectrequired
typestringrequired
Possible values: [DataIntegrityProof
]
Example:
DataIntegrityProof
proofPurposestringrequired
Example:
assertionMethod
idstring
Example:
did:example:xyz#proof-1
verificationMethodstring
Example:
did:example:author#verificationKey
cryptosuitestringrequired
Example:
ecdsa-2019
createdstring
Example:
2021-01-01T00:00:00Z
expiresstring
Example:
2022-01-01T00:00:00Z
domainstring[]
Example:
["example.com"]
challengestring
Example:
1234567890
proofValuestringrequired
Example:
ProofValueString
previousProofstring[]
Example:
["PreviousProof1","PreviousProof2"]
noncestring
Example:
nonce-string
CredentialRequest
{
"format": "jwt_vc_json-ld",
"credential_definition": {
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"id": {
"mandatory": true,
"value_type": "string",
"display": [
{
"name": "ID",
"locale": "en-US"
}
]
}
}
},
"proof": {
"proof_type": "jwt",
"jwt": "jwt-token-sample"
}
}