PresentationResponseMessage
@contextstring[]required
Example:
["https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"]
typestringrequired
Example:
PresentationResponseMessage
presentation object[]required
Array [
- string
- VerifiablePresentation
string
@contextstring[]required
Example:
{"@context":"https://www.w3.org/ns/credentials/v2"}
typestring[]required
Example:
["VerifiablePresentation"]
idstring
Example:
3f2592da-ffc9-40cb-a336-a9daa9343ce8
verifiableCredential objectrequired
oneOf
- VerifiableCredential
- array
@contextstring[]required
Possible values: [https://www.w3.org/ns/credentials/v2
, string
]
Example:
["https://www.w3.org/ns/credentials/v2"]
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
- array
idstringrequired
Example:
did:example:credential-status
typestringrequired
Possible values: [BitstringStatusListEntry
]
Example:
BitstringStatusListEntry
statusPurposestringrequired
Possible values: [refresh
, revocation
, suspension
, message
]
Example:
suspension
statusListIndexstringrequired
Example:
0
statusListCredentialstringrequired
Example:
did:example:status-credential
statusSizestring
Example:
10
statusMessage object[]
Array [
statusstringrequired
Example:
deadbeef
messagestringrequired
Example:
Status message detail
]
statusReferencestring
Example:
https://example.com/status
Array [
idstringrequired
Example:
did:example:credential-status
typestringrequired
Possible values: [BitstringStatusListEntry
]
Example:
BitstringStatusListEntry
statusPurposestringrequired
Possible values: [refresh
, revocation
, suspension
, message
]
Example:
suspension
statusListIndexstringrequired
Example:
0
statusListCredentialstringrequired
Example:
did:example:status-credential
statusSizestring
Example:
10
statusMessage object[]
Array [
statusstringrequired
Example:
deadbeef
messagestringrequired
Example:
Status message detail
]
statusReferencestring
Example:
https://example.com/status
]
proof object[]required
Array [
idstring
Example:
did:example:xyz#proof-1
typestringrequired
Possible values: [DataIntegrityProof
]
Example:
DataIntegrityProof
proofPurposestringrequired
Example:
assertionMethod
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
]
Array [
@contextstring[]required
Possible values: [https://www.w3.org/ns/credentials/v2
, string
]
Example:
["https://www.w3.org/ns/credentials/v2"]
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
- array
idstringrequired
Example:
did:example:credential-status
typestringrequired
Possible values: [BitstringStatusListEntry
]
Example:
BitstringStatusListEntry
statusPurposestringrequired
Possible values: [refresh
, revocation
, suspension
, message
]
Example:
suspension
statusListIndexstringrequired
Example:
0
statusListCredentialstringrequired
Example:
did:example:status-credential
statusSizestring
Example:
10
statusMessage object[]
Array [
statusstringrequired
Example:
deadbeef
messagestringrequired
Example:
Status message detail
]
statusReferencestring
Example:
https://example.com/status
Array [
idstringrequired
Example:
did:example:credential-status
typestringrequired
Possible values: [BitstringStatusListEntry
]
Example:
BitstringStatusListEntry
statusPurposestringrequired
Possible values: [refresh
, revocation
, suspension
, message
]
Example:
suspension
statusListIndexstringrequired
Example:
0
statusListCredentialstringrequired
Example:
did:example:status-credential
statusSizestring
Example:
10
statusMessage object[]
Array [
statusstringrequired
Example:
deadbeef
messagestringrequired
Example:
Status message detail
]
statusReferencestring
Example:
https://example.com/status
]
proof object[]required
Array [
idstring
Example:
did:example:xyz#proof-1
typestringrequired
Possible values: [DataIntegrityProof
]
Example:
DataIntegrityProof
proofPurposestringrequired
Example:
assertionMethod
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
]
]
proof object[]required
Array [
idstring
Example:
did:example:xyz#proof-1
typestringrequired
Possible values: [DataIntegrityProof
]
Example:
DataIntegrityProof
proofPurposestringrequired
Example:
assertionMethod
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
]
]
presentationSubmission object
idstringrequired
Example:
submission-id
definition_idstringrequired
Example:
definition-id
descriptor_map object[]required
Array [
idstringrequired
Example:
desc1
formatstringrequired
Example:
jwt
pathstringrequired
Example:
$.credential
path_nested
Example:
{"id":"desc-nested","format":"jwt","path":"$.nested"}
]
PresentationResponseMessage
{
"@context": [
"https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"
],
"type": "PresentationResponseMessage",
"presentation": [
"string",
{
"@context": {
"@context": "https://www.w3.org/ns/credentials/v2"
},
"type": [
"VerifiablePresentation"
],
"id": "3f2592da-ffc9-40cb-a336-a9daa9343ce8",
"verifiableCredential": {
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"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": {
"id": "did:example:credential-status",
"type": "BitstringStatusListEntry",
"statusPurpose": "suspension",
"statusListIndex": "0",
"statusListCredential": "did:example:status-credential",
"statusSize": "10",
"statusMessage": [
{
"status": "deadbeef",
"message": "Status message detail"
}
],
"statusReference": "https://example.com/status"
},
"proof": [
{
"type": "DataIntegrityProof",
"created": "2020-01-01T00:00:00Z",
"proofPurpose": "assertionMethod",
"cryptosuite": "eddsa-jcs-2022",
"proofValue": "",
"verificationMethod": "did:example:123456#key-1"
}
]
},
"proof": [
{
"id": "did:example:xyz#proof-1",
"type": "DataIntegrityProof",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:author#verificationKey",
"cryptosuite": "ecdsa-2019",
"created": "2021-01-01T00:00:00Z",
"expires": "2022-01-01T00:00:00Z",
"domain": [
"example.com"
],
"challenge": "1234567890",
"proofValue": "ProofValueString",
"previousProof": [
"PreviousProof1",
"PreviousProof2"
],
"nonce": "nonce-string"
}
]
}
],
"presentationSubmission": {
"id": "submission-id",
"definition_id": "definition-id",
"descriptor_map": []
}
}