decentralized-identity / jwt-vc-presentation-profile

https://identity.foundation/jwt-vc-presentation-profile/
Apache License 2.0
15 stars 15 forks source link

Format of a photo claim #61

Open Sakurann opened 2 years ago

Sakurann commented 2 years ago

moving a conversation from a PR. When a photo claim is used in the VC-JWT, should it be binary or a data URL.

  • photo OPTIONAL. The user's profile photo. The data is binary and not encoded in base64.
  • photo OPTIONAL. The user's profile photo. The value is a data URL as defined in RFC 2397.
jischr commented 2 years ago

for verifiedEmployee credential type @nklomp likes data url better.

nklomp commented 2 years ago

I like RFC 2397 style more, because the data URL actually contains the mediatype.

data:image/gif;base64,R0lGODd..........

So then you can implement based on the media type how your solution should display the photo, versus your software having to know about the Credential Type and the photo binary having to be displayed as an image