-
Notifications
You must be signed in to change notification settings - Fork 2
Add support for JWT presentations and credentials #15
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
Comments
My current understanding is that Verifiable Presentations can't be represented in the JWT format. The VC Data Model spec gives no JWT example for presentations (https://w3c.github.io/vc-data-model/#presentations-0). One VC that references just one subject can be represented as JWT as seen here, multiple subjects aren't supported either: https://w3c.github.io/vc-data-model/#credential-subject The reason for this lack of support seems to be the 1:1 relationship between JWT's Conclusion:
At the moment, I lean towards not supporting JWTs in this spec explicitly and sticking to JSON-LD-VPs. If the above mentioned example is added to the VC spec, VPs with JWT-VCs will become possible and hopefully supported by multiple libraries. @brianorwhatever and @peacekeeper I'd very much appreciate your input on this topic. |
Here is the relevant section of VCDM 2.0 that was just merged https://www.w3.org/TR/vc-data-model-2.0/#enveloped-verifiable-credentials |
Okay, I think I'm gradually forming in my mind how it could work. The Verifiable Presentation as a JSON/JSON-LD document is embedded into the JWT via the reserved So full JWT support is possible alongside LD-proofs. |
Don't use the vp property, and I would recommend not using data integrity proofs. |
@OR13 do I understand you correctly that instead of hiding the VP inside the
|
You don't need to add any additional properties, unless you want to use selective disclosure. |
This specification should not define anything at all it should allow any conformant Verifiable Presentation and refer to the VCDM spec(s) for that. |
I'm fully with you. I want to make sure that the spec supports the various formats. |
I updated the examples to include only JWT presentations and credentials. However, I don't yet understand whether it's a good idea to use the Not sure how to continue. |
The examples you are looking at are from v1. Nobody has bothered to update them. |
@OR13 thanks, that's helpful. I'll update the examples to v2. |
In addition to JSON-LD, this spec should incorporate support for JWT as the other big ecosystem of DIDs and credentials.
The text was updated successfully, but these errors were encountered: