Skip to main content
Version: Next

CredentialConfigDto

context object[]

A list of JSON-LD contexts applied to the credential

  • Array [
  • oneOf
    string
  • ]
  • typestring[]

    Types that classify the credential

    Example: ["DataSpaceMembershipCredential"]
    idCredential IDrequired

    Unique identifier for the credential configuration

    Example: credential-id-789
    proofTypeType of proof used for the credentialrequired

    Type of proof used for the credential

    Possible values: [ldp, jwt]

    Example: ldp
    keyIdstring

    Optional key identifier associated with the credential

    Example: key-identifier-001
    credentialSubject objectrequired

    The credential subject details

    idstringrequired
    Example: did:example:subject-1
    evidence object

    Evidence attached to the verifiable credential

    property name*any

    Evidence attached to the verifiable credential

    revocablebooleanrequired

    Indicates whether the credential is revocable

    Example: true
    validityDurationMsnumber

    Optional validity duration in milliseconds. Defaults to 3 months

    Example: 3600000
    CredentialConfigDto
    {
    "context": [
    "https://dataspace.example/context",
    {
    "gx": "https://w3id.org/gaia-x/core#"
    }
    ],
    "type": [
    "DataSpaceMembershipCredential"
    ],
    "id": "credential-id-789",
    "proofType": "ldp",
    "keyId": "key-identifier-001",
    "credentialSubject": {
    "id": "did:example:subject",
    "name": "Subject Name"
    },
    "evidence": {},
    "revocable": true,
    "validityDurationMs": 3600000
    }