Skip to content
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

Update examples to reference the W3C VCDM v2, Data Integrity, and VC JOSE COSE #297

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions examples/client_metadata/client_client_id_did.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
"response_type": "vp_token id_token",
"client_metadata": {
"vp_formats": {
"jwt_vp_json": {
"jose_vp": {
"alg": [
"EdDSA",
"ES256K"
]
},
"ldp_vp": {
"di_vp": {
"proof_type": [
"Ed25519Signature2018"
"DataIntegrityProof"
],
"cryptosuite": [
"ecdsa-sd-2023"
]
}
},
Expand Down
9 changes: 6 additions & 3 deletions examples/client_metadata/client_code_format.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
"response_type": "code",
"grant_type": "authorization_code",
"vp_formats": {
"jwt_vp_json": {
"jose_vp": {
"alg": [
"EdDSA",
"ES256K"
]
},
"ldp_vp": {
"di_vp": {
"proof_type": [
"Ed25519Signature2018"
"DataIntegrityProof"
],
"cryptosuite": [
"ecdsa-sd-2023"
]
},
"client_name": "My Example",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://example.com/credentials/1872",
"type": [
"VerifiableCredential",
"IDCredential"
],
"issuer": {
"id": "did:example:issuer"
"id": "https://issuer.example/issuers/14",
"name": "Example Issuer"
},
"issuanceDate": "2010-01-01T19:23:24Z",
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Max",
"family_name": "Mustermann",
Expand All @@ -24,10 +25,11 @@
}
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2021-03-19T15:30:15Z",
"jws": "eyJhb...JQdBw",
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "https://issuer.example/issuers/14#key-1",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:issuer#keys-1"
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
25 changes: 25 additions & 0 deletions examples/credentials/jose_vc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "http://example.gov/credentials/3732",
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"type": [
"VerifiableCredential",
"IDCredential"
],
"issuer": "https://example.gov/issuers/565049",
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"given_name": "Max",
"family_name": "Mustermann",
"birthdate": "1998-01-11",
"address": {
"street_address": "Sandanger 25",
"locality": "Musterstadt",
"postal_code": "123456",
"country": "DE"
}
}
}
27 changes: 0 additions & 27 deletions examples/credentials/jwt_vc.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"id": "example_jwt_vc",
"id": "example_di_vc",
"input_descriptors": [
{
"id": "id_credential",
"format": {
"jwt_vc_json": {
"di_vc": {
"proof_type": [
"JsonWebSignature2020"
"DataIntegrityProof"
],
"cryptosuite": [
"eddsa-rdfc-2022"
]
}
},
"constraints": {
"fields": [
{
"path": [
"$.vc.type"
"$.type"
],
"filter": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"id": "example_ldp_vc",
"id": "example_jose_vc",
"input_descriptors": [
{
"id": "id_credential",
"format": {
"ldp_vc": {
"proof_type": [
"Ed25519Signature2018"
"jose_vc_json": {
"alg": [
"EdDSA",
"ES256K",
"ES384"
]
}
},
Expand Down
9 changes: 6 additions & 3 deletions examples/request/request_object_client_id_did.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
"presentation_definition": "...",
"client_metadata": {
"vp_formats": {
"jwt_vp": {
"jose_vp": {
"alg": [
"EdDSA",
"ES256K"
]
},
"ldp_vp": {
"di_vp": {
"proof_type": [
"Ed25519Signature2018"
"DataIntegrityProof"
],
"cryptosuite": [
"eddsa-rdfc-2022"
]
}
}
Expand Down
11 changes: 7 additions & 4 deletions examples/request/vp_token_alternative_credentials.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
"A"
],
"format": {
"ldp_vc": {
"di_vc": {
"proof_type": [
"Ed25519Signature2018"
"DataIntegrityProof"
],
"cryptosuite": [
"eddsa-rdfc-2022"
]
}
},
Expand All @@ -38,7 +41,7 @@
{
"id": "passport credential",
"format": {
"jwt_vc_json": {
"jose_vc": {
"alg": [
"RS256"
]
Expand All @@ -51,7 +54,7 @@
"fields": [
{
"path": [
"$.vc.type"
"$.type"
],
"filter": {
"type": "string",
Expand Down
7 changes: 5 additions & 2 deletions examples/request/vp_token_type_and_claims.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
{
"id": "ID card with constraints",
"format": {
"ldp_vc": {
"di_vc": {
"proof_type": [
"Ed25519Signature2018"
"DataIntegrityProof"
],
"cryptosuite": [
"eddsa-rdfc-2022"
]
}
},
Expand Down
7 changes: 5 additions & 2 deletions examples/request/vp_token_type_only.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
{
"id": "id card credential",
"format": {
"ldp_vc": {
"di_vc": {
"proof_type": [
"Ed25519Signature2018"
"DataIntegrityProof"
],
"cryptosuite": [
"eddsa-rdfc-2022"
]
}
},
Expand Down
7 changes: 5 additions & 2 deletions examples/request/vp_token_type_only_ac_and_ldp.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
{
"id": "id card credential",
"format": {
"ldp_vc": {
"di_vc": {
"proof_type": [
"Ed25519Signature2018"
"DataIntegrityProof"
],
"cryptosuite": [
"eddsa-rdfc-2022"
]
}
},
Expand Down
53 changes: 53 additions & 0 deletions examples/response/dip_vp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
],
"type": [
"VerifiablePresentation"
],
"verifiableCredential": [
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2",
],
"id": "https://example.com/credentials/1872",
"type": [
"VerifiableCredential",
"IDCredential"
],
"issuer": {
"id": "did:example:issuer",
"name": "Example Issuer"
},
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Max",
"family_name": "Mustermann",
"birthdate": "1998-01-11",
"address": {
"street_address": "Sandanger 25",
"locality": "Musterstadt",
"postal_code": "123456",
"country": "DE"
}
},
"proof": {
"type": "DataIntegrityProof",
"verificationMethod": "did:web:issuer.utopia.example#zUC75LjjCLGKRxSissX1nAebRDmY4Bv4T6MAbzgaap9Q8rAGf6SEjc2Hf4nH6bUPDwky3GWoYcUjMCcEqRRQfXEiNwfeDwNYLoeqk1J1W2Ye8vCdwv4fSd8AZ1yS6UoNzcsQoPS",
"cryptosuite": "bbs-2023",
"proofPurpose": "assertionMethod",
"proofValue": "u2V0DhVkCkLdnshxHtgeHJBBUGPBqcEooPp9ahgqs08RsoqW5EJFmsi70jqf2X368VcmfdJdYcYJwObPIg5dlyaoBm34N9BqcZ4RlTZvgwX79ivGnqLALC0EqKn2wOj5hRO76xUakfLGIcT4mE-G7CxA1FTs8sRCWy5p6FozelBYiZU2YlhUpJ7pBwelZ9wnlcbj4q-KyxAj5GU2iWp7-FxU-E624DmdT-yvCkAGRRrYej6lMwg7jB9uCHypOXXH2dVZ-jpf74YBaE4rMTxPFh60GN4o3S65F1fMsJbEMLdrXa8Vs6ZSlmveUcY1X7oPr1UIxo17ehVTCjOxWunYqrtLi9cVkYOD2s9XMk1oFVWBB3UY29axXQQXlZVfvTIUsfVc667mnlYbF7a-ko_SUfeY2n3s1DOAap5keeNU0v2KVPCbxA2WGz7UJy4xJv2a8olMOWPKjAEUruCx_dsbyicd-9KGwhYoUEO3HoAzmtI6qXVhMbJKxPrhtcp8hOdD9izVS5ed4CxHNaDGPSopF_MBwjxwPcpUufNNNdQwesrbtFJo0-P-1CrX_jSxKFMle2b3t24UbHRbZw7QnX4OG-SSVucem5jpMXTDFZ8PLFCqXX0zncJ_MQ-_u-liE-MwJu3ZemsXBp1JoB2twS0TqDVzSWR7bpFZKI9_07fKUAmQNSV_no9iAgYRLuPrnnsW1gQgCV-nNqzbcCOpzkHdCqro6nPSATq5Od3Einfc683gm5VGWxIldM0aBPytOymNz7PIZ6wkgcMABMe5Vw46B54ftW-TN5YZPDmCJ_kt7Mturn0OeQr9KJCu7S0I-SN14mL9KtGE1XDnIeR-C_YZhSA3vX4923v1l3vNFsKasqy9iEPHKM0hcogABAQCGAAECBAUGhAMJCgtYUnsiY2hhbGxlbmdlIjoiNGd2OFJyaERPdi1OSHByYlZNQlM1IiwiZG9tYWluIjoiaHR0cHM6Ly9wbGF5Z3JvdW5kLmFscGhhLmNoYXBpLmlvIn0"
}
}
],
"id": "ebc6f1c2",
"holder": "did:example:holder",
"proof": {
"type": "DataIntegrityProof",
"verificationMethod": "did:web:playground.alpha.chapi.io#zUC75LjjCLGKRxSissX1nAebRDmY4Bv4T6MAbzgaap9Q8rAGf6SEjc2Hf4nH6bUPDwky3GWoYcUjMCcEqRRQfXEiNwfeDwNYLoeqk1J1W2Ye8vCdwv4fSd8AZ1yS6UoNzcsQoPS",
"cryptosuite": "bbs-2023",
"proofPurpose": "assertionMethod",
"proofValue": "u2V0ChVhQjYs9O7wUb3KRSMaIRX7jmafVHYDPYBLD4ta85_qmuXTBU_t2Ir7pNujwRE6fERsBUEZRSjJjtI-hqOqDs3VvBvH6gd3o2KeUS2V_zpuphPpYQEkapOeQgRTak9lHKSTqEQqa4j2lyHqekEeGvzPlqcHQGFccGifvLUXtP59jCuGJ86HDA9HL5kDzUT6n4Gi50HlYYIzNqhbjIxlqOuxO2IgIppSTWjQGeer34-PmKnOzKX8m_9DHPhif7TUf5uTV4OQWdhb0SxHnJ-CPu_z9FJ5ACekBQhz6YWS0_CY6j_ibucXzeVfZwLv1W47pjbt-l1Vl5VggSn2xVt69Q0GD9mPKpOhkKV_hyOL7i6haf7bq-gOKAwWDZy9pc3N1ZXJtL2lzc3VhbmNlRGF0ZW8vZXhwaXJhdGlvbkRhdGU"
}
}
Loading