Skip to main content
Version: Next

CredentialContainer

credential object
@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
property name*any
Example: {"id":"did:example:subject-1","customProp":"value"}
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
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
    jwtstringrequired
    Example: eyJraWQiOiJFeEhrQk1XOWZtYmt2VjI2Nm1ScHVQMnNVWV9OX0VXSU4xbGFwVXpPOHJvIiwiYWxnIjoiRVMyNTYifQ.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaWQiOiJodHRwOi8vdW5pdmVyc2l0eS5leGFtcGxlL2NyZWRlbnRpYWxzLzM3MzIiLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiRXhhbXBsZURlZ3JlZUNyZWRlbnRpYWwiXSwiaXNzdWVyIjoiaHR0cHM6Ly91bml2ZXJzaXR5LmV4YW1wbGUvaXNzdWVycy81NjUwNDkiLCJ2YWxpZEZyb20iOiIyMDEwLTAxLTAxVDAwOjAwOjAwWiIsImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImlkIjoiZGlkOmV4YW1wbGU6ZWJmZWIxZjcxMmViYzZmMWMyNzZlMTJlYzIxIiwiZGVncmVlIjp7InR5cGUiOiJFeGFtcGxlQmFjaGVsb3JEZWdyZWUiLCJuYW1lIjoiQmFjaGVsb3Igb2YgU2NpZW5jZSBhbmQgQXJ0cyJ9fX0.YEsG9at9Hnt_j-UykCrnl494fcYMTjzpgvlK0KzzjvfmZmSg-sNVJqMZWizYhWv_eRUvAoZohvSJWeagwj_Ajw
    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
  • ]
  • CredentialContainer
    {
    "credential": {
    "@context": [
    "https://www.w3.org/ns/credentials/v2"
    ],
    "type": [
    "VerifiableCredential"
    ],
    "credentialSubject": {
    "id": "did:example:subject-1"
    },
    "issuer": "did:example:issuer",
    "validFrom": "2020-01-01T00:00:00Z",
    "proof": {
    "type": "DataIntegrityProof",
    "created": "2020-01-01T00:00:00Z",
    "proofPurpose": "assertionMethod",
    "cryptosuite": "eddsa-jcs-2022",
    "proofValue": "",
    "verificationMethod": "did:example:123456#key-1"
    }
    },
    "jwt": "eyJraWQiOiJFeEhrQk1XOWZtYmt2VjI2Nm1ScHVQMnNVWV9OX0VXSU4xbGFwVXpPOHJvIiwiYWxnIjoiRVMyNTYifQ.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaWQiOiJodHRwOi8vdW5pdmVyc2l0eS5leGFtcGxlL2NyZWRlbnRpYWxzLzM3MzIiLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiRXhhbXBsZURlZ3JlZUNyZWRlbnRpYWwiXSwiaXNzdWVyIjoiaHR0cHM6Ly91bml2ZXJzaXR5LmV4YW1wbGUvaXNzdWVycy81NjUwNDkiLCJ2YWxpZEZyb20iOiIyMDEwLTAxLTAxVDAwOjAwOjAwWiIsImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImlkIjoiZGlkOmV4YW1wbGU6ZWJmZWIxZjcxMmViYzZmMWMyNzZlMTJlYzIxIiwiZGVncmVlIjp7InR5cGUiOiJFeGFtcGxlQmFjaGVsb3JEZWdyZWUiLCJuYW1lIjoiQmFjaGVsb3Igb2YgU2NpZW5jZSBhbmQgQXJ0cyJ9fX0.YEsG9at9Hnt_j-UykCrnl494fcYMTjzpgvlK0KzzjvfmZmSg-sNVJqMZWizYhWv_eRUvAoZohvSJWeagwj_Ajw",
    "proof": [
    {
    "type": "DataIntegrityProof",
    "created": "2020-01-01T00:00:00Z",
    "proofPurpose": "assertionMethod",
    "cryptosuite": "eddsa-jcs-2022",
    "proofValue": "",
    "verificationMethod": "did:example:123456#key-1"
    }
    ]
    }