VerifiableCredential
@contextstring[]required
Possible values: [https://www.w3.org/2018/credentials/v1
, https://www.w3.org/ns/credentials/v2
, https://w3id.org/security/suites/jws-2020/v1
, https://w3id.org/security/data-integrity/v2
, string
]
Example:
["https://www.w3.org/2018/credentials/v1"]
typestring[]required
Example:
["VerifiableCredential","TestCredential"]
idstring
Example:
http://example.edu/credentials/1872
credentialSubject objectrequired
idstringrequired
Example:
did:example:subject-1
issuerstringrequired
Example:
did:example:issuer
issuanceDatestring
Example:
2020-01-01T00:00:00Z
expirationDatestring
Example:
2030-01-01T00:00:00Z
validFromstring
Example:
2020-01-01T00:00:00Z
validUntilstring
Example:
2030-01-01T00:00:00Z
evidence object
property name*any
Example:
{"type":"DocumentVerification","verifier":"did:example:verifier"}
credentialStatus object
oneOf
- CredentialStatus
- MOD2
@contextstring[]required
Example:
["https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"]
typestringrequired
Example:
CredentialStatus
issuerPidstringrequired
holderPidstringrequired
statusstringrequired
Possible values: [RECEIVED
, REJECTED
, ISSUED
]
Array [
@contextstring[]required
Example:
["https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"]
typestringrequired
Example:
CredentialStatus
issuerPidstringrequired
holderPidstringrequired
statusstringrequired
Possible values: [RECEIVED
, REJECTED
, ISSUED
]
]
proof object[]required
Array [
typestringrequired
Possible values: [JsonWebSignature2020
, DataIntegrityProof
]
Example:
JsonWebSignature2020
proofPurposestringrequired
Example:
assertionMethod
]
VerifiableCredential
{
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential",
"TestCredential"
],
"id": "http://example.edu/credentials/1872",
"credentialSubject": {
"id": "did:example:subject-1",
"customProp": "value"
},
"issuer": "did:example:issuer",
"issuanceDate": "2020-01-01T00:00:00Z",
"expirationDate": "2030-01-01T00:00:00Z",
"validFrom": "2020-01-01T00:00:00Z",
"validUntil": "2030-01-01T00:00:00Z",
"evidence": {
"type": "DocumentVerification",
"verifier": "did:example:verifier"
},
"credentialStatus": {
"@context": [
"https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"
],
"type": "CredentialStatus",
"issuerPid": "string",
"holderPid": "string",
"status": "RECEIVED"
},
"proof": [
{
"type": "JsonWebSignature2020",
"created": "2020-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFUzI1NiIsInR5cCI...",
"verificationMethod": "did:example:123456#key-1"
}
]
}