| 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" | ||
| } |
| 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 |
|---|---|---|
| @@ -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.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMv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NyZWRlbnRpYWwiXSwiaXNzdWVyIjoiaHR0cHM6Ly91bml2ZXJzaXR5LmV4YW1wbGUvaXNzdWVycy81NjUwNDkiLCJ2YWxpZEZyb20iOiIyMDEwLTAxLTAxVDE5OjIzOjI0WiIsImNyZWRlbnRpYWxTY2hlbWEiOnsiaWQiOiJodHRwczovL2V4YW1wbGUub3JnL2V4YW1wbGVzL2RlZ3JlZS5qc29uIiwidHlwZSI6Ikpzb25TY2hlbWEifSwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJkaWQ6ZXhhbXBsZToxMjMiLCJkZWdyZWUiOnsidHlwZSI6IkJhY2hlbG9yRGVncmVlIiwibmFtZSI6IkJhY2hlbG9yIG9mIFNjaWVuY2UgYW5kIEFydHMifX19.d2k4O3FytQJf83kLh-HsXuPvh6yeOlhJELVo5TF71gu7elslQyOf2ZItAXrtbXF4Kz9WivNdztOayz4VUQ0Mwa8yCDZkP9B2pH-9S_tcAFxeoeJ6Z4XnFuL_DOfkR1fP", | ||
| "type": "EnvelopedVerifiableCredential" | ||
| } | ||
| ] | ||
| } |
| 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" | ||
| } | ||
| } | ||
| ] | ||
| } |
| 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 |
|---|---|---|
| @@ -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 @@ | ||
| [ | ||
| { | ||
| "format": "vp_jose", | ||
| "presentation": "ewogICAgImlzcyI6Imh0dHBzOi8vYm9vay5pdHNvdXJ3ZWIub...IH0=" | ||
| } | ||
| ] |
There was a problem hiding this comment.
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_vcandsdjwt_vphere.There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.