Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dzuluaga/57f4a5994f098f4fac42ed9683e65600 to your computer and use it in GitHub Desktop.

Select an option

Save dzuluaga/57f4a5994f098f4fac42ed9683e65600 to your computer and use it in GitHub Desktop.
This DCQL works with Multipaz Test App and includes two credentials the driver license and a photo id.
{
"credentials": [
{
"id": "photoid",
"format": "mso_mdoc",
"meta": {
"doctype_value": "org.iso.23220.photoID.1"
},
"claims": [
{ "path": ["org.iso.23220.1", "family_name_unicode" ] },
{ "path": ["org.iso.23220.1", "given_name_unicode" ] },
{ "path": ["org.iso.23220.1", "portrait" ] }
]
},
{
"id": "mdl",
"format": "mso_mdoc",
"meta": {
"doctype_value": "org.iso.18013.5.1.mDL"
},
"claims": [
{ "path": ["org.iso.18013.5.1", "family_name" ] },
{ "path": ["org.iso.18013.5.1", "given_name" ] },
{ "path": ["org.iso.18013.5.1", "portrait" ] }
]
},
{
"id": "movieticket",
"format": "dc+sd-jwt",
"meta": {
"vct_values": ["https://utopia.example.com/vct/movieticket"]
},
"claims": [
{"path": ["ticket_number"]},
{"path": ["cinema_id"]}
]
},
{
"id": "pid",
"format": "dc+sd-jwt",
"meta": {
"vct_values": ["https://credentials.example.com/identity_credential"]
},
"claims": [
{"path": ["given_name"]},
{"path": ["family_name"]},
{"path": ["address", "street_address"]}
]
},
{
"id": "other_pid",
"format": "dc+sd-jwt",
"meta": {
"vct_values": ["https://othercredentials.example/pid"]
},
"claims": [
{"path": ["given_name"]},
{"path": ["family_name"]},
{"path": ["address", "street_address"]}
]
},
{
"id": "pid_reduced_cred_1",
"format": "dc+sd-jwt",
"meta": {
"vct_values": ["https://credentials.example.com/reduced_identity_credential"]
},
"claims": [
{"path": ["family_name"]},
{"path": ["given_name"]}
]
},
{
"id": "pid_reduced_cred_2",
"format": "dc+sd-jwt",
"meta": {
"vct_values": ["https://cred.example/residence_credential"]
},
"claims": [
{"path": ["postal_code"]},
{"path": ["locality"]},
{"path": ["region"]}
]
},
{
"id": "nice_to_have",
"format": "dc+sd-jwt",
"meta": {
"vct_values": ["https://company.example/company_rewards"]
},
"claims": [
{"path": ["rewards_number"]}
]
}
],
"credential_sets": [
{
"options": [
["mdl", "photoid", "movieticket"],
[ "pid" ],
[ "other_pid" ],
[ "pid_reduced_cred_1", "pid_reduced_cred_2" ]
]
},
{
"required": false,
"options": [
[ "nice_to_have" ]
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment