Verifiable presentation with `jwt_vc`
JensJelitto opened this issue · 3 comments
I want to respond to a verifier requesting credentials in jwt_vc
format.
An example of a response can be found here:
https://identity.foundation/jwt-vc-presentation-profile/#id-token-example
and should contain some descriptor_map
with the following example content:
"descriptor_map": [
{
"id": "InteropExampleVC",
"format": "jwt_vp",
"path": "$",
"path_nested": {
"id": "InteropExampleVC",
"format": "jwt_vc",
"path": "$.verifiableCredential[0]"
}
}
]
where the format
is jwt_vc
.
However, I haven't found a way to actually create such an id_token
. When checking the repo I have found the following code with a hard-coded format: 'ldp_vc'
, see
How can I achieve the creation of a properly formed id_token
for jwt_vc
credentials?
Hi @JensJelitto This for sure needs to use the 0.3.0-unstable.25 version, which will be released as 0.3.0 this week.
It has better support for JWTs, as the focus has been on LDP. I made some changes, based on on this ticket and now it takes the actual format from the internal uniform representation of a credential. Meaning that it detects the types and puts these in the descriptors.
So could you try 0.3.0-unstable.25 and see if that fixes it for you?
Dear @nklomp : Thanks a lot for the prompt reply. I have tested the fixes and they indeed work for me, I now get
a descriptor map like:
"descriptor_map": [
{
"id": "TestDigitalID",
"format": "jwt_vc",
"path": "$.verifiableCredential[0]"
}
]
Appreciate your efforts!
Cool, thanks for the feedback and nice words