Skip to content

Add optional credentialSubject property to CredentialRequestMessage #202

@arnoweiss

Description

@arnoweiss

What's missing?

Clients (potential Holders) may want to have very specific claims signed. The schema is implicitly known via the credentialType. The updated message could look like this:

{
  "@context": [
    "https://w3id.org/dspace-dcp/v1.0/dcp.jsonld"
  ],
  "type": "CredentialRequestMessage",
  "holderPid": "holderPid",
  "credentials": [
    {
      "credentialType": "MembershipCredential",
      "format": "vcdm11_jwt",
      "credentialSubject": 
        {
          "id": "did:web:holder.com",
          "joinedDataspace": "2025-04-01",
          "specificId": "dataspace-identifier-1234"
        }
    },
    {
      "credentialType": "Iso9001Credential",
      "format": "vcdm20_jose"
    }
  ]
}

Why should it be in the spec?

If a client is interested in only being issued a specific value for a claim, he has currently no means of conveying that information.

Where should this be added?

schemas, spec text

More context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttriageall new issues awaiting classification

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions