Last active
January 2, 2024 23:44
-
-
Save jyasskin/c75c2bd1dc083451f9f9a7596c68ab04 to your computer and use it in GitHub Desktop.
How to remove restrictions from VCs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<did:key:123> <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#clippedCoupon> _:c14n3 . | |
<did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb> <https://schema.org/image> "https://vcplayground.org/examples/gs1-8110-coupon/logo.png" . | |
<did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb> <https://schema.org/name> "Local Coffee Shop" . | |
<did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb> <https://schema.org/url> "https://coffee.example.com" . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#GS18110CouponCredential> . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.w3.org/2018/credentials#VerifiableCredential> . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://schema.org/description> "Digital coupon: Buy one, get one free 16 oz coffees." . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://schema.org/image> "https://vcplayground.org/examples/gs1-8110-coupon/image.png" . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://schema.org/name> "Retail Coupon" . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://w3id.org/security#proof> _:c14n1 . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://w3id.org/security#proof> _:c14n2 . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://www.w3.org/2018/credentials#credentialSubject> <did:key:123> . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://www.w3.org/2018/credentials#issuanceDate> "2024-01-02T22:32:45.920Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | |
<https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf> <https://www.w3.org/2018/credentials#issuer> <did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb> . | |
<urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd> <http://purl.org/dc/terms/created> "2024-01-02T22:32:47Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> _:c14n2 . | |
<urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/security#DataIntegrityProof> _:c14n2 . | |
<urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd> <https://w3id.org/security#cryptosuite> "ecdsa-sd-2023"^^<https://w3id.org/security#cryptosuiteString> _:c14n2 . | |
<urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd> <https://w3id.org/security#proofPurpose> <https://w3id.org/security#assertionMethod> _:c14n2 . | |
<urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd> <https://w3id.org/security#proofValue> "u2V0AhVhAGAp587ny7vVpneX_CDuy3X7D9j3eLoHT8kikr69V-rIrNvrN9iX5yEW-V4Z1BJObn7WKnkPa_fYR_gAJc9RBMFgjgCQDSs5W0F8V3At-1i7ItrezCjcBZjgeEc2hgWAf_3CwVKZYIGalkON0kSE3UlTxbOvkasSVBLCaMgDPS5eEm0o8GjXtkFhA1cFl24JN5gjtrxYLs65vUVIMRY3m6Gcg4mLZ4WPTq5llKT_EKv_TUX5a_MPAwqslezwvP7TCsdeUTtuujGOj5FhA-Mc_C0-vZxmBIakC0RWTDECLFcbp45byrnTMCQwOwPVmTrAmatiAbNYrH4IFe-4CM1s0jjWnI6JljW8Gm7CRpFhA4_mBN1mXXYtetko9hniQTbuXrfQrzcD--pp2wt99ODzFRzULYgMutdSMmjkhAyK0iH2hTqw4IYXaTOEyRcFJbVhAqKRfoK5HEm1QSDVGSHlzZiZcZnYhnpsrxQ_nRw0Bx-Ury4qX3tHhlzm-k-Wf6jaNPsI4Cs2L9J5ymqz4-lJefVhAesjfm-TA01iGoQ6nJCckEPXfP90DRejf7Jow4yrQadw7FREe2h_0dsdJH0DB1QvEwo3vv8uExzZoKaaGnlGoTFhAY-kDCwZDruawx5VeqeD54i_r1EqXuYjvhqyqR_y2umDbdpz9ZKEwXMPVg_4_xkSxGW-zXv7x8GO0gSVFcvAreVhACr__cKSwGwd_uPbhHmbXBVB3tPq0rjFLuNdGYulhKeEZlgcqQtqS-RM14oGAwOBnFYlWFuJnHnpSBbSvx7hmyVhA2P3DmOD2aPTAkwmpzYn03vNR_CoVpo9GvSP1xx6_I46gR4zX3YclkjApFxOe0qs7r4F5QrV03bySKPkSHsBst1hAEvx5Kiz8R-zh1CnDbryrClZAWYWGowRENC70IkhisMtZ7Po72Tal_lPMC1dcTkWR8Thn5RzoJdUwx5juBBjGo1hAi98lDBwm4rwouYrOIE7G8b3x1aTu1oeTVlVrwr3eGGJuC3Fqh8JiZR5SC3pjOtO4bJC-A3-qvKFw6s_AxLWv6VhAwDPyJbaZR5zqJhhH46TDVFmpRx-mlJwJsacQS07tKQtwlNGRn2ABq5kHbmPKcMN9eRArjqu-IYFN7dktvHJDSlhAOtV7DhUkk9M3FRT31Y6B7TIQsdz0byKNM_9n4tNv-9z79DXShT-RBMIh59R0JVS4VLh69RYFTNOi9oPi1blso1hAP7XQD8h05yPvJNDSOO6epPHiBCIrW36DJSUEe5pfuRy_PqIYMpVB26utf8XE64iGo1w_ZLQSbRU7tiRtaTO4TFhAr-atnocQ9op6auE4spyZPBvNPhdFTXP808_57pDtGPb6SJK3bdSilrf3xuFe7BVs-iWVLhYpAHbQAgZ6ECD0alhAYm_6Uhc48RlrwyL4vT9T5AkoR_xX3lkjE7FuszbVQAOhSWJcJPzukbfIZXn9WR4uIkI9tC8whj82qTG7xI7S51hAHxy_jKU_3vunFdKlqO9m1pjUNRwz8FSI7tw8fixuZ04hge_6H-C-vrxJAC3mQ2K2O2ecCcWFp77W3gVKN9iQSoJnL2lzc3Vlcm0vaXNzdWFuY2VEYXRl"^^<https://w3id.org/security#multibase> _:c14n2 . | |
<urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd> <https://w3id.org/security#verificationMethod> <did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb> _:c14n2 . | |
_:c14n0 <http://purl.org/dc/terms/created> "2024-01-02T22:32:45Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> _:c14n1 . | |
_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/security#DataIntegrityProof> _:c14n1 . | |
_:c14n0 <https://w3id.org/security#cryptosuite> "ecdsa-rdfc-2019"^^<https://w3id.org/security#cryptosuiteString> _:c14n1 . | |
_:c14n0 <https://w3id.org/security#proofPurpose> <https://w3id.org/security#assertionMethod> _:c14n1 . | |
_:c14n0 <https://w3id.org/security#proofValue> "z2UMncLZGqy4ghq1gGd1F7P6ZdMhXoG8PcihDtN7FRUMaJNiBJUCG6cRKh4CAWQaHCM8o7e5u54hspsiHfiR9Enct"^^<https://w3id.org/security#multibase> _:c14n1 . | |
_:c14n0 <https://w3id.org/security#verificationMethod> <did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb> _:c14n1 . | |
_:c14n3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#CouponOffer> . | |
_:c14n3 <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#applicationId> "8110"^^<http://www.w3.org/2001/XMLSchema#integer> . | |
_:c14n3 <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#gs1CompanyPrefix> "123456789" . | |
_:c14n3 <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#offerCode> "123456" . | |
_:c14n3 <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#primaryPurchaseFamilyCode> "123"^^<http://www.w3.org/2001/XMLSchema#integer> . | |
_:c14n3 <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#primaryPurchaseRequirement> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . | |
_:c14n3 <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#primaryPurchaseRequirementCode> "Number of Units" . | |
_:c14n3 <https://contexts.vcplayground.org/examples/gs1-8110-coupon/vocab#saveValue> "199" . | |
_:c14n3 <https://gs1.org/voc/exclusionDescription> "Not valid with other offers. Void where prohibited. Coupon may be used only once in an authorized partner retailer. Total purchase must include coffee. Not valid in the Bermuda Triangle. Not valid for cash or cash equvalent, on purchase of gift cards or previously purchased coffee. Other exclusions may apply, ask store associate for details. Offer may not be combined with any other coupons (other than Rewards Certificates). Items purchased with certificates, coupons, or special offers will result in adjusted refund amount." . | |
_:c14n3 <https://gs1.org/voc/gtin> "00512345000107" . | |
_:c14n3 <https://gs1.org/voc/offerDescription> "Buy one, get one free 16 oz coffees." . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [ | |
"https://www.w3.org/2018/credentials/v1", | |
"https://contexts.vcplayground.org/examples/gs1-8110-coupon/v2.json", | |
"https://w3id.org/security/data-integrity/v2" | |
], | |
"type": [ | |
"VerifiableCredential", | |
"GS18110CouponCredential" | |
], | |
"issuer": { | |
"id": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"name": "Local Coffee Shop", | |
"url": "https://coffee.example.com", | |
"image": "https://vcplayground.org/examples/gs1-8110-coupon/logo.png" | |
}, | |
"name": "Retail Coupon", | |
"description": "Digital coupon: Buy one, get one free 16 oz coffees.", | |
"issuanceDate": "2024-01-02T22:32:45.920Z", | |
"image": "https://vcplayground.org/examples/gs1-8110-coupon/image.png", | |
"credentialSubject": { | |
"id": "did:key:123", | |
"clippedCoupon": { | |
"id": "_:blank1", | |
"type": "CouponOffer", | |
"gtin": "00512345000107", | |
"offerDescription": "Buy one, get one free 16 oz coffees.", | |
"exclusionDescription": "Not valid with other offers. Void where prohibited. Coupon may be used only once in an authorized partner retailer. Total purchase must include coffee. Not valid in the Bermuda Triangle. Not valid for cash or cash equvalent, on purchase of gift cards or previously purchased coffee. Other exclusions may apply, ask store associate for details. Offer may not be combined with any other coupons (other than Rewards Certificates). Items purchased with certificates, coupons, or special offers will result in adjusted refund amount.", | |
"applicationId": 8110, | |
"gs1CompanyPrefix": "123456789", | |
"offerCode": "123456", | |
"saveValue": "199" | |
}, | |
"@included": { | |
"id": "_:blank1", | |
"type": "CouponOffer", | |
"primaryPurchaseRequirement": 2, | |
"primaryPurchaseRequirementCode": "Number of Units", | |
"primaryPurchaseFamilyCode": 123 | |
} | |
}, | |
"id": "https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf", | |
"proof": [ | |
{ | |
"type": "DataIntegrityProof", | |
"created": "2024-01-02T22:32:45Z", | |
"verificationMethod": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"cryptosuite": "ecdsa-rdfc-2019", | |
"proofPurpose": "assertionMethod", | |
"proofValue": "z2UMncLZGqy4ghq1gGd1F7P6ZdMhXoG8PcihDtN7FRUMaJNiBJUCG6cRKh4CAWQaHCM8o7e5u54hspsiHfiR9Enct" | |
}, | |
{ | |
"id": "urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd", | |
"type": "DataIntegrityProof", | |
"created": "2024-01-02T22:32:47Z", | |
"verificationMethod": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"cryptosuite": "ecdsa-sd-2023", | |
"proofPurpose": "assertionMethod", | |
"proofValue": "u2V0AhVhAGAp587ny7vVpneX_CDuy3X7D9j3eLoHT8kikr69V-rIrNvrN9iX5yEW-V4Z1BJObn7WKnkPa_fYR_gAJc9RBMFgjgCQDSs5W0F8V3At-1i7ItrezCjcBZjgeEc2hgWAf_3CwVKZYIGalkON0kSE3UlTxbOvkasSVBLCaMgDPS5eEm0o8GjXtkFhA1cFl24JN5gjtrxYLs65vUVIMRY3m6Gcg4mLZ4WPTq5llKT_EKv_TUX5a_MPAwqslezwvP7TCsdeUTtuujGOj5FhA-Mc_C0-vZxmBIakC0RWTDECLFcbp45byrnTMCQwOwPVmTrAmatiAbNYrH4IFe-4CM1s0jjWnI6JljW8Gm7CRpFhA4_mBN1mXXYtetko9hniQTbuXrfQrzcD--pp2wt99ODzFRzULYgMutdSMmjkhAyK0iH2hTqw4IYXaTOEyRcFJbVhAqKRfoK5HEm1QSDVGSHlzZiZcZnYhnpsrxQ_nRw0Bx-Ury4qX3tHhlzm-k-Wf6jaNPsI4Cs2L9J5ymqz4-lJefVhAesjfm-TA01iGoQ6nJCckEPXfP90DRejf7Jow4yrQadw7FREe2h_0dsdJH0DB1QvEwo3vv8uExzZoKaaGnlGoTFhAY-kDCwZDruawx5VeqeD54i_r1EqXuYjvhqyqR_y2umDbdpz9ZKEwXMPVg_4_xkSxGW-zXv7x8GO0gSVFcvAreVhACr__cKSwGwd_uPbhHmbXBVB3tPq0rjFLuNdGYulhKeEZlgcqQtqS-RM14oGAwOBnFYlWFuJnHnpSBbSvx7hmyVhA2P3DmOD2aPTAkwmpzYn03vNR_CoVpo9GvSP1xx6_I46gR4zX3YclkjApFxOe0qs7r4F5QrV03bySKPkSHsBst1hAEvx5Kiz8R-zh1CnDbryrClZAWYWGowRENC70IkhisMtZ7Po72Tal_lPMC1dcTkWR8Thn5RzoJdUwx5juBBjGo1hAi98lDBwm4rwouYrOIE7G8b3x1aTu1oeTVlVrwr3eGGJuC3Fqh8JiZR5SC3pjOtO4bJC-A3-qvKFw6s_AxLWv6VhAwDPyJbaZR5zqJhhH46TDVFmpRx-mlJwJsacQS07tKQtwlNGRn2ABq5kHbmPKcMN9eRArjqu-IYFN7dktvHJDSlhAOtV7DhUkk9M3FRT31Y6B7TIQsdz0byKNM_9n4tNv-9z79DXShT-RBMIh59R0JVS4VLh69RYFTNOi9oPi1blso1hAP7XQD8h05yPvJNDSOO6epPHiBCIrW36DJSUEe5pfuRy_PqIYMpVB26utf8XE64iGo1w_ZLQSbRU7tiRtaTO4TFhAr-atnocQ9op6auE4spyZPBvNPhdFTXP808_57pDtGPb6SJK3bdSilrf3xuFe7BVs-iWVLhYpAHbQAgZ6ECD0alhAYm_6Uhc48RlrwyL4vT9T5AkoR_xX3lkjE7FuszbVQAOhSWJcJPzukbfIZXn9WR4uIkI9tC8whj82qTG7xI7S51hAHxy_jKU_3vunFdKlqO9m1pjUNRwz8FSI7tw8fixuZ04hge_6H-C-vrxJAC3mQ2K2O2ecCcWFp77W3gVKN9iQSoJnL2lzc3Vlcm0vaXNzdWFuY2VEYXRl" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [ | |
"https://www.w3.org/2018/credentials/v1", | |
"https://contexts.vcplayground.org/examples/gs1-8110-coupon/v2.json", | |
"https://w3id.org/security/data-integrity/v2", | |
{ | |
"hidden": "@nest" | |
} | |
], | |
"type": [ | |
"VerifiableCredential", | |
"GS18110CouponCredential" | |
], | |
"issuer": { | |
"id": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"name": "Local Coffee Shop", | |
"url": "https://coffee.example.com", | |
"image": "https://vcplayground.org/examples/gs1-8110-coupon/logo.png" | |
}, | |
"name": "Retail Coupon", | |
"description": "Digital coupon: Buy one, get one free 16 oz coffees.", | |
"issuanceDate": "2024-01-02T22:32:45.920Z", | |
"image": "https://vcplayground.org/examples/gs1-8110-coupon/image.png", | |
"credentialSubject": { | |
"id": "did:key:123", | |
"clippedCoupon": { | |
"id": "_:blank1", | |
"type": "CouponOffer", | |
"gtin": "00512345000107", | |
"offerDescription": "Buy one, get one free 16 oz coffees.", | |
"exclusionDescription": "Not valid with other offers. Void where prohibited. Coupon may be used only once in an authorized partner retailer. Total purchase must include coffee. Not valid in the Bermuda Triangle. Not valid for cash or cash equvalent, on purchase of gift cards or previously purchased coffee. Other exclusions may apply, ask store associate for details. Offer may not be combined with any other coupons (other than Rewards Certificates). Items purchased with certificates, coupons, or special offers will result in adjusted refund amount.", | |
"applicationId": 8110, | |
"gs1CompanyPrefix": "123456789", | |
"offerCode": "123456", | |
"saveValue": "199" | |
}, | |
"hidden": { | |
"clippedCoupon": { | |
"id": "_:blank1", | |
"type": "CouponOffer", | |
"primaryPurchaseRequirement": 2, | |
"primaryPurchaseRequirementCode": "Number of Units", | |
"primaryPurchaseFamilyCode": 123 | |
} | |
} | |
}, | |
"id": "https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf", | |
"proof": [ | |
{ | |
"type": "DataIntegrityProof", | |
"created": "2024-01-02T22:32:45Z", | |
"verificationMethod": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"cryptosuite": "ecdsa-rdfc-2019", | |
"proofPurpose": "assertionMethod", | |
"proofValue": "z2UMncLZGqy4ghq1gGd1F7P6ZdMhXoG8PcihDtN7FRUMaJNiBJUCG6cRKh4CAWQaHCM8o7e5u54hspsiHfiR9Enct" | |
}, | |
{ | |
"id": "urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd", | |
"type": "DataIntegrityProof", | |
"created": "2024-01-02T22:32:47Z", | |
"verificationMethod": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"cryptosuite": "ecdsa-sd-2023", | |
"proofPurpose": "assertionMethod", | |
"proofValue": "u2V0AhVhAGAp587ny7vVpneX_CDuy3X7D9j3eLoHT8kikr69V-rIrNvrN9iX5yEW-V4Z1BJObn7WKnkPa_fYR_gAJc9RBMFgjgCQDSs5W0F8V3At-1i7ItrezCjcBZjgeEc2hgWAf_3CwVKZYIGalkON0kSE3UlTxbOvkasSVBLCaMgDPS5eEm0o8GjXtkFhA1cFl24JN5gjtrxYLs65vUVIMRY3m6Gcg4mLZ4WPTq5llKT_EKv_TUX5a_MPAwqslezwvP7TCsdeUTtuujGOj5FhA-Mc_C0-vZxmBIakC0RWTDECLFcbp45byrnTMCQwOwPVmTrAmatiAbNYrH4IFe-4CM1s0jjWnI6JljW8Gm7CRpFhA4_mBN1mXXYtetko9hniQTbuXrfQrzcD--pp2wt99ODzFRzULYgMutdSMmjkhAyK0iH2hTqw4IYXaTOEyRcFJbVhAqKRfoK5HEm1QSDVGSHlzZiZcZnYhnpsrxQ_nRw0Bx-Ury4qX3tHhlzm-k-Wf6jaNPsI4Cs2L9J5ymqz4-lJefVhAesjfm-TA01iGoQ6nJCckEPXfP90DRejf7Jow4yrQadw7FREe2h_0dsdJH0DB1QvEwo3vv8uExzZoKaaGnlGoTFhAY-kDCwZDruawx5VeqeD54i_r1EqXuYjvhqyqR_y2umDbdpz9ZKEwXMPVg_4_xkSxGW-zXv7x8GO0gSVFcvAreVhACr__cKSwGwd_uPbhHmbXBVB3tPq0rjFLuNdGYulhKeEZlgcqQtqS-RM14oGAwOBnFYlWFuJnHnpSBbSvx7hmyVhA2P3DmOD2aPTAkwmpzYn03vNR_CoVpo9GvSP1xx6_I46gR4zX3YclkjApFxOe0qs7r4F5QrV03bySKPkSHsBst1hAEvx5Kiz8R-zh1CnDbryrClZAWYWGowRENC70IkhisMtZ7Po72Tal_lPMC1dcTkWR8Thn5RzoJdUwx5juBBjGo1hAi98lDBwm4rwouYrOIE7G8b3x1aTu1oeTVlVrwr3eGGJuC3Fqh8JiZR5SC3pjOtO4bJC-A3-qvKFw6s_AxLWv6VhAwDPyJbaZR5zqJhhH46TDVFmpRx-mlJwJsacQS07tKQtwlNGRn2ABq5kHbmPKcMN9eRArjqu-IYFN7dktvHJDSlhAOtV7DhUkk9M3FRT31Y6B7TIQsdz0byKNM_9n4tNv-9z79DXShT-RBMIh59R0JVS4VLh69RYFTNOi9oPi1blso1hAP7XQD8h05yPvJNDSOO6epPHiBCIrW36DJSUEe5pfuRy_PqIYMpVB26utf8XE64iGo1w_ZLQSbRU7tiRtaTO4TFhAr-atnocQ9op6auE4spyZPBvNPhdFTXP808_57pDtGPb6SJK3bdSilrf3xuFe7BVs-iWVLhYpAHbQAgZ6ECD0alhAYm_6Uhc48RlrwyL4vT9T5AkoR_xX3lkjE7FuszbVQAOhSWJcJPzukbfIZXn9WR4uIkI9tC8whj82qTG7xI7S51hAHxy_jKU_3vunFdKlqO9m1pjUNRwz8FSI7tw8fixuZ04hge_6H-C-vrxJAC3mQ2K2O2ecCcWFp77W3gVKN9iQSoJnL2lzc3Vlcm0vaXNzdWFuY2VEYXRl" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [ | |
"https://www.w3.org/2018/credentials/v1", | |
"https://contexts.vcplayground.org/examples/gs1-8110-coupon/v2.json", | |
"https://w3id.org/security/data-integrity/v2" | |
], | |
"type": [ | |
"VerifiableCredential", | |
"GS18110CouponCredential" | |
], | |
"issuer": { | |
"id": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"name": "Local Coffee Shop", | |
"url": "https://coffee.example.com", | |
"image": "https://vcplayground.org/examples/gs1-8110-coupon/logo.png" | |
}, | |
"name": "Retail Coupon", | |
"description": "Digital coupon: Buy one, get one free 16 oz coffees.", | |
"issuanceDate": "2024-01-02T22:32:45.920Z", | |
"image": "https://vcplayground.org/examples/gs1-8110-coupon/image.png", | |
"credentialSubject": { | |
"id": "did:key:123", | |
"clippedCoupon": { | |
"type": "CouponOffer", | |
"gtin": "00512345000107", | |
"offerDescription": "Buy one, get one free 16 oz coffees.", | |
"exclusionDescription": "Not valid with other offers. Void where prohibited. Coupon may be used only once in an authorized partner retailer. Total purchase must include coffee. Not valid in the Bermuda Triangle. Not valid for cash or cash equvalent, on purchase of gift cards or previously purchased coffee. Other exclusions may apply, ask store associate for details. Offer may not be combined with any other coupons (other than Rewards Certificates). Items purchased with certificates, coupons, or special offers will result in adjusted refund amount.", | |
"applicationId": 8110, | |
"gs1CompanyPrefix": "123456789", | |
"offerCode": "123456", | |
"saveValue": "199", | |
"primaryPurchaseRequirement": 2, | |
"primaryPurchaseRequirementCode": "Number of Units", | |
"primaryPurchaseFamilyCode": 123 | |
} | |
}, | |
"id": "https://vcplayground.org/credential/S2SUvnaXJEzZKoG-L-bxf", | |
"proof": [ | |
{ | |
"type": "DataIntegrityProof", | |
"created": "2024-01-02T22:32:45Z", | |
"verificationMethod": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"cryptosuite": "ecdsa-rdfc-2019", | |
"proofPurpose": "assertionMethod", | |
"proofValue": "z2UMncLZGqy4ghq1gGd1F7P6ZdMhXoG8PcihDtN7FRUMaJNiBJUCG6cRKh4CAWQaHCM8o7e5u54hspsiHfiR9Enct" | |
}, | |
{ | |
"id": "urn:uuid:95cf1562-d0d1-44ac-9ee2-e05e68f9e4bd", | |
"type": "DataIntegrityProof", | |
"created": "2024-01-02T22:32:47Z", | |
"verificationMethod": "did:key:zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb#zDnaejUmiZqk8LrjB4iLd9SVF9zANU5A9YMdBiAKfgWbFGKdb", | |
"cryptosuite": "ecdsa-sd-2023", | |
"proofPurpose": "assertionMethod", | |
"proofValue": "u2V0AhVhAGAp587ny7vVpneX_CDuy3X7D9j3eLoHT8kikr69V-rIrNvrN9iX5yEW-V4Z1BJObn7WKnkPa_fYR_gAJc9RBMFgjgCQDSs5W0F8V3At-1i7ItrezCjcBZjgeEc2hgWAf_3CwVKZYIGalkON0kSE3UlTxbOvkasSVBLCaMgDPS5eEm0o8GjXtkFhA1cFl24JN5gjtrxYLs65vUVIMRY3m6Gcg4mLZ4WPTq5llKT_EKv_TUX5a_MPAwqslezwvP7TCsdeUTtuujGOj5FhA-Mc_C0-vZxmBIakC0RWTDECLFcbp45byrnTMCQwOwPVmTrAmatiAbNYrH4IFe-4CM1s0jjWnI6JljW8Gm7CRpFhA4_mBN1mXXYtetko9hniQTbuXrfQrzcD--pp2wt99ODzFRzULYgMutdSMmjkhAyK0iH2hTqw4IYXaTOEyRcFJbVhAqKRfoK5HEm1QSDVGSHlzZiZcZnYhnpsrxQ_nRw0Bx-Ury4qX3tHhlzm-k-Wf6jaNPsI4Cs2L9J5ymqz4-lJefVhAesjfm-TA01iGoQ6nJCckEPXfP90DRejf7Jow4yrQadw7FREe2h_0dsdJH0DB1QvEwo3vv8uExzZoKaaGnlGoTFhAY-kDCwZDruawx5VeqeD54i_r1EqXuYjvhqyqR_y2umDbdpz9ZKEwXMPVg_4_xkSxGW-zXv7x8GO0gSVFcvAreVhACr__cKSwGwd_uPbhHmbXBVB3tPq0rjFLuNdGYulhKeEZlgcqQtqS-RM14oGAwOBnFYlWFuJnHnpSBbSvx7hmyVhA2P3DmOD2aPTAkwmpzYn03vNR_CoVpo9GvSP1xx6_I46gR4zX3YclkjApFxOe0qs7r4F5QrV03bySKPkSHsBst1hAEvx5Kiz8R-zh1CnDbryrClZAWYWGowRENC70IkhisMtZ7Po72Tal_lPMC1dcTkWR8Thn5RzoJdUwx5juBBjGo1hAi98lDBwm4rwouYrOIE7G8b3x1aTu1oeTVlVrwr3eGGJuC3Fqh8JiZR5SC3pjOtO4bJC-A3-qvKFw6s_AxLWv6VhAwDPyJbaZR5zqJhhH46TDVFmpRx-mlJwJsacQS07tKQtwlNGRn2ABq5kHbmPKcMN9eRArjqu-IYFN7dktvHJDSlhAOtV7DhUkk9M3FRT31Y6B7TIQsdz0byKNM_9n4tNv-9z79DXShT-RBMIh59R0JVS4VLh69RYFTNOi9oPi1blso1hAP7XQD8h05yPvJNDSOO6epPHiBCIrW36DJSUEe5pfuRy_PqIYMpVB26utf8XE64iGo1w_ZLQSbRU7tiRtaTO4TFhAr-atnocQ9op6auE4spyZPBvNPhdFTXP808_57pDtGPb6SJK3bdSilrf3xuFe7BVs-iWVLhYpAHbQAgZ6ECD0alhAYm_6Uhc48RlrwyL4vT9T5AkoR_xX3lkjE7FuszbVQAOhSWJcJPzukbfIZXn9WR4uIkI9tC8whj82qTG7xI7S51hAHxy_jKU_3vunFdKlqO9m1pjUNRwz8FSI7tw8fixuZ04hge_6H-C-vrxJAC3mQ2K2O2ecCcWFp77W3gVKN9iQSoJnL2lzc3Vlcm0vaXNzdWFuY2VEYXRl" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment