Context
Issuing credentials with photo attribute(s)
Problem
How a holder/wallet app knows that an attribute is an image element and render the attribute as an image.
Solutions
- Adopt attribute value convention convention based on data scheme. Wallet apps can easily identify if a value starts with
data:
Note: This is a generic approach that could work for any type of rich content (Image, Document/File)
- Introduce an attribute name suffix (
_img) convention (like _dateint).
Note: Just the "_img" doesn't tell the type of image (e.g.: JPEG, PNG, etc)
- OCA bundle is required for that sort of formatting, and when OCA is not provided by the attribute value will be presented in a not so nice manner.
Notes
- What is the user/holder experience expectation when/if an OCA bundle is NOT provided?
Reference
Context
Issuing credentials with photo attribute(s)
Problem
How a holder/wallet app knows that an attribute is an image element and render the attribute as an image.
Solutions
data:Note: This is a generic approach that could work for any type of rich content (Image, Document/File)
_img) convention (like_dateint).Note: Just the "_img" doesn't tell the type of image (e.g.: JPEG, PNG, etc)
Notes
Reference