Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OID4VCI] vc.id is not in URI form. #101

Open
t-kanuma opened this issue Feb 6, 2024 · 1 comment
Open

[OID4VCI] vc.id is not in URI form. #101

t-kanuma opened this issue Feb 6, 2024 · 1 comment

Comments

@t-kanuma
Copy link

t-kanuma commented Feb 6, 2024

When attempting to issue a JWT-VC to OWF Credo as a Holder, I received the following VC. You can see that the vc.id is not in URI form. Consequently, I encountered a validation error during issuance on Credo, which indicated that the VC is not compatible with the W3C VC Data Model.

https://www.w3.org/TR/vc-data-model/#identifiers

The value of the id property MUST be a single [URI]

{
  "vc":{
    "@context":[
      "https://www.w3.org/2018/credentials/v1"
    ],
    "type":[
      "VerifiableCredential",
      "PermanentResidentCredential"
    ],
    "id":"05d03459-65ca-45c4-812e-02a221d308a1",
    "issuer":"did:web:dijx0shbtuy59.cloudfront.net#key-1",
    "issuanceDate":"2024-01-29T07:23:30Z",
    "credentialSubject":{
      "givenName":"Taro",
      "familyName":"Yamada",
      "gender":"Male",
      "birthCountry":"Japan",
      "birthDate":"2020-01-01",
      "id":"did:key:z6Mkt4tyNA65DrACnSk45byGTZYpXag2soZMBqD1mVKEMQJW#z6Mkt4tyNA65DrACnSk45byGTZYpXag2soZMBqD1mVKEMQJW"
    }
  },
  "iss":"did:web:dijx0shbtuy59.cloudfront.net#key-1",
  "nbf":1706513010,
  "jti":"05d03459-65ca-45c4-812e-02a221d308a1",
  "sub":"did:key:z6Mkt4tyNA65DrACnSk45byGTZYpXag2soZMBqD1mVKEMQJW#z6Mkt4tyNA65DrACnSk45byGTZYpXag2soZMBqD1mVKEMQJW"
}
@PatStLouis
Copy link

the ID looks like a generated uuid, prepending this string with urn:uuid: should do the trick. There also seems to be missing context in this example. I think the citizenship context would work for this PermanentResidentCredential or include a @vocab object for issuer specific terms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants