Closed vijayshiyani closed 1 year ago
I think there's a bug in the VC data model example.
The issuer property of a VC gets translated to the iss
field, which, according to the JWT spec should be a string or URI.
The did-jwt-vc
library deals with VC data format and translations between the JWT encoding and the W3C data model. did-jwt-vc
uses this library as the base JWT layer.
When an issuer with more properties is encountered in did-jwt-vc, only the id
property is placed in the iss
of the JWT payload. The rest of the object is kept intact.
Going through the VC data model spec now, I see there's no mention of only using the id
property. I'm not sure if this was changed recently or if the spec only had stringOrURI
issuer properties in an earlier version.
I agree with the above comment, There appears to be a bug in the VC Data model example. This is supported by information found in the VC JWT documentation, which can be found at the following link: https://w3c.github.io/vc-jwt/#issuer-iss
As per the latest W3C VC Data Model specification, the issuer property can be represented as an object that includes an ID and a name. This would allow for more detailed information about the issuer to be included in the JWT.
example -------------- JWT payload ---------------
It would be great if the library could be updated to support both string and object formats for the issuer property.
Thank you!
more detail here https://www.w3.org/TR/vc-data-model/#example-usage-of-issuer-expanded-property