96 changes: 96 additions & 0 deletions examples/response/id_token_is_jose_vp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"aud": "https://book.itsourweb.org:3000/ohip",
"auth_time": 1615910535,
"nonce": "960848874",
"@context": [
"https://www.w3.org/ns/credentials/v2",
],
"type": [
"VerifiablePresentation"
],
"issuer": "https://self-issued.me/v2",
"validFrom": "2010-01-01T19:23:24Z",
"validUntil": "2015-01-01T19:23:24Z",
"holder": "did:key:zUC728ZwioxiqLMp4LKmwkso1G3us1F9Az873MoEdDkni8GCAam5NeKqzVLjiynmtdGeBiJAbYe6BcqU2QmUBQQpiRf4HE9nmRFPqYwbVSNJcs4LEmrnzHLAVwN9iS76PD3W59W",
"verifiableCredential": [
{
"credentialSubject": {
"givenName": "Marion",
"id": "did:key:zUC728ZwioxiqLMp4LKmwkso1G3us1F9Az873MoEdDkni8GCAam5NeKqzVLjiynmtdGeBiJAbYe6BcqU2QmUBQQpiRf4HE9nmRFPqYwbVSNJcs4LEmrnzHLAVwN9iS76PD3W59W",
"type": [
"Person",
"PermanentResident"
]
},
"validFrom": "2021-09-09T10:21:48.674916400",
"id": "urn:bnid:_:c14n0",
"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"
},
"type": [
"PermanentResidentCard",
"VerifiableCredential"
],
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/citizenship/v3",
],
"issuer": "did:key:zUC75L3fD1DJhbPaDxPJxnVWJ84JT8cQB45cgeJ1UMcFamZDtkPujCG7fuoQDy6JbsT3kCyx24i1k9NE7PoVwQbzifyH7eu4fsAmxXgArdwJ1wbZ3eKbtpPbLYK8QuuUfafxyoH"
},
{
"credentialSubject": {
"nextVaccinationDate": "2021-08-16T13:40:12Z",
"dateOfVaccination": "2021-06-23T13:40:12Z",
"id": "did:key:zUC728ZwioxiqLMp4LKmwkso1G3us1F9Az873MoEdDkni8GCAam5NeKqzVLjiynmtdGeBiJAbYe6BcqU2QmUBQQpiRf4HE9nmRFPqYwbVSNJcs4LEmrnzHLAVwN9iS76PD3W59W",
"type": "VaccinationEvent",
"healthProfessional": "883110000015376"
},
"validFrom": "2021-09-09T10:20:47.334854600",
"id": "urn:bnid:_:c14n0",
"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"
},
"type": [
"VaccinationCertificate",
"VerifiableCredential"
],
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/vaccination/v1",
"https://w3id.org/security/bbs/v1"
],
"issuer": "did:key:zUC7DQWuAVPvLFioEsN7KbLwuuSwiKHZhG7DyJBRPT9FN4LnaCbT7EkQFGyA32C9tfovnijMo9MtKQB7Fr5fDood26NiCNVJDpycMPT24gvRHvcyMGQQESzN54vGdJGxdCKQTW9"
}
]
},
"presentation_submission": {
"descriptor_map": [
{
"format": "jose_vp",
"id": "citizenship",
"path": "$",
"path_nested": {
"path": "$.verifiableCredential[0]",
"format": "di_vp"
}
},
{
"format": "jose_vp",
"id": "vaccination certificate",
"path_nested": {
"path": "$.verifiableCredential[1]",
"format": "di_vp"
}
}
],
"definition_id": "f837a384-31b3-4947-b344-8180c62bea41",
"id": "d60ac9e4-7fcf-4303-af7b-722d2a62ebb3"
}
101 changes: 0 additions & 101 deletions examples/response/id_token_is_jwt_vp.json

This file was deleted.

4 changes: 2 additions & 2 deletions examples/response/id_token_ref_vp_token.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"descriptor_map": [
{
"id": "ID Card with constraints",
"format": "ldp_vp",
"format": "di_vp",
"path": "$",
"path_nested": {
"format": "ldp_vc",
"format": "di_vc",
"path": "$.verifiableCredential[0]"
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/response/id_token_ref_vp_token_code.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"descriptor_map": [
{
"id": "ID Card with constraints",
"format": "ldp_vp",
"format": "di_vp",
"path": "$",
"path_nested": {
"format": "ldp_vc",
"format": "di_vc",
"path": "$.verifiableCredential[0]"
}
}
Expand Down
10 changes: 5 additions & 5 deletions examples/response/id_token_ref_vp_token_multple_vps.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"descriptor_map": [
{
"id": "ID Card with constraints",
"format": "ldp_vp",
"format": "di_vp",
"path": "$[0]",
"path_nested": {
"format": "ldp_vc",
"format": "di_vc",
"path": "$[0].verifiableCredential[0]"
}
},
{
"id": "Ontario Health Insurance Plan",
"format": "jwt_vp_json",
"format": "jose_vp",
"path": "$[1].presentation",
"path_nested": {
"format": "jwt_vc",
"path": "$[1].presentation.vp.verifiableCredential[0]"
"format": "jose_vc",
"path": "$[1].presentation.verifiableCredential[0]"
}
}
]
Expand Down
18 changes: 18 additions & 0 deletions examples/response/jarm_jose_enc_only_vc_json_body.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"vp_token": "eyJhb...YMetA",
"presentation_submission": {
"definition_id": "example_jose_vc",
"id": "example_jose_vc_presentation_submission",
"descriptor_map": [
{
"id": "id_credential",
"path": "$",
"format": "jose_vp",
"path_nested": {
"path": "$.verifiableCredential[0]",
"format": "jose_vc"
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"exp": 1573029723,
"vp_token": "eyJhb...YMetA",
"presentation_submission": {
"definition_id": "example_jwt_vc",
"id": "example_jwt_vc_presentation_submission",
"definition_id": "example_jose_vc",
"id": "example_jose_vc_presentation_submission",
"descriptor_map": [
{
"id": "id_credential",
"path": "$",
"format": "jwt_vp_json",
"format": "jose_vp",
"path_nested": {
"path": "$.vp.verifiableCredential[0]",
"format": "jwt_vc"
"path": "$.verifiableCredential[0]",
"format": "jose_vc"
}
}
]
Expand Down
File renamed without changes.
18 changes: 0 additions & 18 deletions examples/response/jarm_jwt_enc_only_vc_json_body.json

This file was deleted.

20 changes: 20 additions & 0 deletions examples/response/jose_vp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"aud": "x509_san_uri:https://client.example.org/cb",
"id": "urn:uuid:3978344f-8596-4c3a-a978-8fcaba3903c5",
"issuer": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"validFrom": "2021-11-01T00:00:00Z",
"validUntil": "2024-06-22T14:11:44Z",
"nonce": "n-0S6_WzA2Mj",
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"type": "VerifiablePresentation",
"verifiableCredential": [
{
"@context": "https://www.w3.org/ns/credentials/v2",
"id": "data:application/vc+jwt,eyJraWQiOiJFeEhrQk1XOWZtYmt2VjI2Nm1ScHVQMnNVWV9OX0VXSU4xbGFwVXpPOHJvIiwiYWxnIjoiRVMzODQifQ.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaWQiOiJodHRwOi8vdW5pdmVyc2l0eS5leGFtcGxlL2NyZWRlbnRpYWxzLzE4NzIiLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiRXhhbXBsZUFsdW1uaUNyZWRlbnRpYWwiXSwiaXNzdWVyIjoiaHR0cHM6Ly91bml2ZXJzaXR5LmV4YW1wbGUvaXNzdWVycy81NjUwNDkiLCJ2YWxpZEZyb20iOiIyMDEwLTAxLTAxVDE5OjIzOjI0WiIsImNyZWRlbnRpYWxTY2hlbWEiOnsiaWQiOiJodHRwczovL2V4YW1wbGUub3JnL2V4YW1wbGVzL2RlZ3JlZS5qc29uIiwidHlwZSI6Ikpzb25TY2hlbWEifSwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJkaWQ6ZXhhbXBsZToxMjMiLCJkZWdyZWUiOnsidHlwZSI6IkJhY2hlbG9yRGVncmVlIiwibmFtZSI6IkJhY2hlbG9yIG9mIFNjaWVuY2UgYW5kIEFydHMifX19.d2k4O3FytQJf83kLh-HsXuPvh6yeOlhJELVo5TF71gu7elslQyOf2ZItAXrtbXF4Kz9WivNdztOayz4VUQ0Mwa8yCDZkP9B2pH-9S_tcAFxeoeJ6Z4XnFuL_DOfkR1fP;data:application/vc+jwt,eyJraWQiOiJFeEhrQk1XOWZtYmt2VjI2Nm1ScHVQMnNVWV9OX0VXSU4xbGFwVXpPOHJvIiwiYWxnIjoiRVMzODQifQ.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaWQiOiJodHRwOi8vdW5pdmVyc2l0eS5leGFtcGxlL2NyZWRlbnRpYWxzLzE4NzIiLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiRXhhbXBsZUFsdW1uaUNyZWRlbnRpYWwiXSwiaXNzdWVyIjoiaHR0cHM6Ly91bml2ZXJzaXR5LmV4YW1wbGUvaXNzdWVycy81NjUwNDkiLCJ2YWxpZEZyb20iOiIyMDEwLTAxLTAxVDE5OjIzOjI0WiIsImNyZWRlbnRpYWxTY2hlbWEiOnsiaWQiOiJodHRwczovL2V4YW1wbGUub3JnL2V4YW1wbGVzL2RlZ3JlZS5qc29uIiwidHlwZSI6Ikpzb25TY2hlbWEifSwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJkaWQ6ZXhhbXBsZToxMjMiLCJkZWdyZWUiOnsidHlwZSI6IkJhY2hlbG9yRGVncmVlIiwibmFtZSI6IkJhY2hlbG9yIG9mIFNjaWVuY2UgYW5kIEFydHMifX19.d2k4O3FytQJf83kLh-HsXuPvh6yeOlhJELVo5TF71gu7elslQyOf2ZItAXrtbXF4Kz9WivNdztOayz4VUQ0Mwa8yCDZkP9B2pH-9S_tcAFxeoeJ6Z4XnFuL_DOfkR1fP",
"type": "EnvelopedVerifiableCredential"
}
]
}
20 changes: 0 additions & 20 deletions examples/response/jwt_vp.json

This file was deleted.

54 changes: 0 additions & 54 deletions examples/response/ldp_vp.json

This file was deleted.

4 changes: 2 additions & 2 deletions examples/response/presentation_submission.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"descriptor_map": [
{
"id": "ID card with constraints",
"format": "ldp_vp",
"format": "di_vp",
"path": "$",
"path_nested": {
"format": "ldp_vc",
"format": "di_vc",
"path": "$.verifiableCredential[0]"
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/response/presentation_submission_multiple_vps.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"descriptor_map": [
{
"id": "ID Card with constraints",
"format": "ldp_vp",
"format": "di_vp",
"path": "$[0]",
"path_nested": {
"format": "ldp_vc",
"format": "di_vc",
"path": "$.verifiableCredential[0]"
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"definition_id": "example_ldp_vc",
"id": "example_ldp_vc_presentation_submission",
"definition_id": "example_di_vc",
"id": "example_di_vc_presentation_submission",
"descriptor_map": [
{
"id": "id_credential",
"path": "$",
"format": "ldp_vp",
"format": "di_vp",
"path_nested": {
"format": "ldp_vc",
"format": "di_vc",
"path": "$.verifiableCredential[0]"
}
}
Expand Down
15 changes: 15 additions & 0 deletions examples/response/ps_jose_vc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"definition_id": "example_jose_vc",
"id": "example_jose_vc_presentation_submission",
"descriptor_map": [
{
"id": "id_credential",
"path": "$",
"format": "jose_vp",
"path_nested": {
"path": "$.verifiableCredential[0]",
"format": "jose_vc"
}
}
]
}
15 changes: 0 additions & 15 deletions examples/response/ps_jwt_vc.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,53 @@
"id_token": "eyJ0 ... NiJ9.eyJ1c ... I6IjIifX0.DeWt4Qu ... ZXso",
"vp_token": {
"@context": [
"https://www.w3.org/2018/credentials/v1"
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiablePresentation"
],
"verifiableCredential": [
{
"@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",
"IDCardCredential"
],
"issuer": {
"id": "did:example:issuer"
"id": "did:example:issuer",
"name": "Example Issuer"
},
"issuanceDate": "2010-01-01T19:23:24Z",
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Fredrik",
"family_name": "Strömberg",
"birthdate": "1949-01-22"
},
"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": "did:example:issuer#key-1",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:issuer#keys-1"
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
],
"id": "ebc6f1c2",
"holder": "did:example:holder",
"proof": {
"type": "Ed25519Signature2018",
"created": "2021-03-19T15:30:15Z",
"type": "DataIntegrityProof",
"challenge": "n-0S6_WzA2Mj",
"domain": "s6BhdRkqt3",
"jws": "eyJhb...IAoDA",
"proofPurpose": "authentication",
"verificationMethod": "did:example:holder#key-1"
"domain": "https://client.example.org/cb",
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:holder#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
}
51 changes: 51 additions & 0 deletions examples/response/vp_token_dip_vp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"@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",
"IDCardCredential"
],
"issuer": {
"id": "did:example:issuer",
"name": "Example Issuer"
},
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Fredrik",
"family_name": "Strömberg",
"birthdate": "1949-01-22"
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:issuer#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
],
"id": "ebc6f1c2",
"holder": "did:example:holder",
"proof": {
"type": "DataIntegrityProof",
"challenge": "n-0S6_WzA2Mj",
"domain": "https://client.example.org/cb",
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:holder#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/ns/credentials/v2",
"https://identity.foundation/presentation-exchange/submission/v1"
],
"type": [
Expand All @@ -10,29 +10,31 @@
"verifiableCredential": [
{
"@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",
"IDCardCredential"
],
"issuer": {
"id": "did:example:issuer"
"id": "did:example:issuer",
"name": "Example Issuer"
},
"issuanceDate": "2010-01-01T19:23:24Z",
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Fredrik",
"family_name": "Strömberg",
"birthdate": "1949-01-22"
},
"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": "did:example:issuer#key-1",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:issuer#keys-1"
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
],
Expand All @@ -44,18 +46,19 @@
"descriptor_map": [
{
"id": "ID Card with constraints",
"format": "ldp_vc",
"format": "di_vc",
"path": "$.verifiableCredential[0]"
}
]
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2021-03-19T15:30:15Z",
"type": "DataIntegrityProof",
"challenge": "n-0S6_WzA2Mj",
"domain": "https://client.example.org/cb",
"jws": "eyJhb...IAoDA",
"proofPurpose": "authentication",
"verificationMethod": "did:example:holder#key-1"
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:holder#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
48 changes: 0 additions & 48 deletions examples/response/vp_token_ldp_vp.json

This file was deleted.

31 changes: 17 additions & 14 deletions examples/response/vp_token_multiple_vps.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,53 @@
[
{
"@context": [
"https://www.w3.org/2018/credentials/v1"
"https://www.w3.org/ns/credentials/v2",
],
"type": [
"VerifiablePresentation"
],
"verifiableCredential": [
{
"@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",
"IDCardCredential"
],
"issuer": {
"id": "did:example:issuer"
"id": "did:example:issuer",
"name": "Example Issuer"
},
"issuanceDate": "2010-01-01T19:23:24Z",
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Fredrik",
"family_name": "Strömberg",
"birthdate": "1949-01-22"
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2021-03-19T15:30:15Z",
"jws": "eyJhb...IAoDA",
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:issuer#key-1",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:issuer#keys-1"
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
],
"id": "ebc6f1c2",
"holder": "did:example:holder",
"proof": {
"type": "Ed25519Signature2018",
"created": "2021-03-19T15:30:15Z",
"type": "DataIntegrityProof",
"challenge": "n-0S6_WzA2Mj",
"domain": "https://client.example.org/cb",
"jws": "eyJhb...JQdBw",
"proofPurpose": "authentication",
"verificationMethod": "did:example:holder#key-1"
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:holder#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
},
"eyJhbGciOiAiRVMyNTYiLCAidHlwIjogInZjK3NkLWp3dCIsICJraWQiOiAiZG9jLXNp
Expand Down
51 changes: 51 additions & 0 deletions examples/response/vp_token_raw_dip_vp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"@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",
"IDCardCredential"
],
"issuer": {
"id": "did:example:issuer",
"name": "Example Issuer"
},
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Fredrik",
"family_name": "Strömberg",
"birthdate": "1949-01-22"
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:issuer#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
],
"id": "ebc6f1c2",
"holder": "did:example:holder",
"proof": {
"type": "DataIntegrityProof",
"challenge": "n-0S6_WzA2Mj",
"domain": "https://client.example.org/cb",
"cryptosuite": "eddsa-rdfc-2022",
"created": "2021-11-13T18:19:39Z",
"verificationMethod": "did:example:holder#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz"
}
}
48 changes: 0 additions & 48 deletions examples/response/vp_token_raw_ldp_vp.json

This file was deleted.

139 changes: 76 additions & 63 deletions openid-4-verifiable-presentations-1_0.md

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions schema/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"format": {
"type": "object",
"patternProperties": {
"^jwt$|^jwt_vc$|^jwt_vp$": {
"^jwt$|^jose_vc$|^jose_vp$|^cose_vc$|^cose_vp$|^sdjwt_vc$|^sdjwt_vp$": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar question as above about including sdjwt_vc and sdjwt_vp here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating to the VCDM v2 requires selecting a securing mechanism. one of those mechanisms is VC JOSE COSE which defines securing mechanisms for JOSE, COSE, and SD-JWT.

this change adds corresponding format properties for the new data model.

if you have a suggestion on how to break this into 2 PRs I'm open to it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jogu does @decentralgabe's answer above satisfy you or do you want to request changes? If you're satisfied, can you please approve? Thanks.

"type": "object",
"properties": {
"alg": {
Expand All @@ -42,13 +42,18 @@
"required": ["alg"],
"additionalProperties": false
},
"^ldp_vc$|^ldp_vp$|^ldp$": {
"^di_vc$|^di_vp$|^di$": {
"type": "object",
"properties": {
"proof_type": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
},
"cryptosuite": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
}
},
"required": ["proof_type"],
Expand Down
2 changes: 1 addition & 1 deletion vp_token_vp_jwt.json → vp_token_vp_jose.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"format": "vp_jwt",
"format": "vp_jose",
"presentation": "ewogICAgImlzcyI6Imh0dHBzOi8vYm9vay5pdHNvdXJ3ZWIub...IH0="
}
]