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
Ability to add images in verifiable claims #97
Comments
One option is to add a property such as http://schema.org/image with a data URL value. |
@r3-za what @davidlehn said. The recommended practice is to use schema.org image w/ a data URL value. That said, if you don't want multi-MB Verifiable Credentials, you should use links to images instead of embedding the images. There is also talk of using content-addressable links, like an IPFS link or named information ni:///, for example... but there is no recommended practices for that yet. |
Keeping in mind the privacy considerations (leakage to the image server). |
Thank you for the suggestions. |
Furthermore if the DOD which containts the verifiable claims contain an NI:// address then essentially the hash of a portrait photo is stored on blockchain. Isn't that a privacy concern? |
That assumes two things 1) that we are storing hashes of photos on chain, which some will choose not to do (most will store that sort of stuff off chain in a private digital wallet), and 2) that the hashes are computationally feasible to reverse. The first item is the best way to protect yourself, the second may be infeasible even with the advent of quantum computers. Whether or not something is a privacy concern is dependent on the expected level of privacy. |
what's the next step on this topic? |
@r3-za |
@David-Chadwick Sure I am working on some preliminary work. Where can we propose the schemes? |
You can add it to this issue in the first instance to get some feedback. Then when it is a relatively stable you can do a pull request on the existing data model document in order to get the text included in the next update |
This the data structure I have developed so far. Type 1: Image embedded using the 'data' property
Type 2a: Image referenced on IPFS by specifying the protocol, host and hash
Type 2b:I mage referenced on NI server by specifying the protocol, host and hash
I am not sure about the property names uri and digest.. |
I'm attempting to formulate this issue into some specification text or close the issue w/ no changes to the specification. I agree that being able to express an image is important and there have been a number of ways that have been explored in this issue. That said, the only spec text that could possibly change at this point is an example in the spec. I suggest we do a PR that pulls in an image data URL. Describing images as @r3-za has outlined above is beyond the scope of the VC spec and is better explained via documentation on sites like schema.org or rNews and other IPTC specifications. I suggest we submit a PR that shows a schema.org image property with a data-url as @davidlehn suggested above to resolve this issue. |
does solving this also solve issue #136 |
Are the any thoughts or discussions around how to embed images (ex. passport photos) in verifiable claims? Are there any recommendations of normalization methods, compression or encoding recommendations on binary/image data in VC?
The text was updated successfully, but these errors were encountered: