-
Notifications
You must be signed in to change notification settings - Fork 2
/
credential.json
328 lines (328 loc) · 13.3 KB
/
credential.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.identity.com/credentials/v3"
],
"id": "e4f0a74f-9cd5-451d-92cb-da3e24e46ebf",
"identifier": "credential-cvc:IdDocument-v3",
"issuer": "did:sol:devnet:tid652xmv91UHLW3HKnQSYMoNYko6FWd8sUEuYF5LPn",
"issuanceDate": "2022-05-04T18:29:26.669Z",
"type": [
"VerifiableCredential",
"IdentityCredential"
],
"credentialSubject": {
"id": "did:sol:8VgGDHTUKSoikxhwCQjd7UtkX3ECpLBSP7Hk63oSBtd4",
"document": {
"type": "passport",
"name": {
"familyNames": "User",
"givenNames": "Civic"
},
"dateOfBirth": {
"day": 1,
"month": 1,
"year": 1990
},
"issueCountry": "GBR",
"evidences": {
"idDocumentFront": {
"algorithm": "sha256",
"data": "195f9bf62b1a807abe26828c13f29e443169cdc5f60b22b470bfa50eef55a5a4"
},
"selfie": {
"algorithm": "sha256",
"data": "0e06d43673ae1bb490070a54d47b731c5f9f7720426d976756e4bad1b679dd3f"
}
}
}
},
"proof": {
"type": "CvcMerkleProof2018",
"merkleRoot": "f92a02892ba971916a6531fec9341174f882084f83f23b4bb5690951b42d39ee",
"anchor": "TBD (Civic Blockchain Attestation)",
"leaves": [
{
"identifier": "claim-cvc:Document.type-v1",
"value": "urn:type:a0837023e3b8f62165b3378bdcf944f4a784a8d174ad4dcbba038896ad3e8939:passport|",
"claimPath": "document.type",
"targetHash": "d83eba072929cd3d6c61db21a004733deb2580b1d5717c8cc3a8e831038884cc",
"node": [
{
"right": "46d753a3f23893a3ca5b23d2e3b2246401a232986375a03701afd7687715198b"
},
{
"right": "9d6af8b0c924d180dec7f94e695c0c53607393b1df80da8726e2a2433f0898fa"
},
{
"right": "864616e1087b67ad4a0242088c6dd6ba986f49ae4f3a682e12643e55b0dc93ea"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Document.name-v1",
"value": "urn:name.familyNames:8d7f851da6e40b84ae180ad28f476df61aa28f168aaa24192ffac4b99a20aa41:User|urn:name.givenNames:e34b35be4ed074b7730341ba29e213ea650f6eb790b10438d7b08bc293e9135c:Civic|",
"claimPath": "document.name",
"targetHash": "46d753a3f23893a3ca5b23d2e3b2246401a232986375a03701afd7687715198b",
"node": [
{
"left": "d83eba072929cd3d6c61db21a004733deb2580b1d5717c8cc3a8e831038884cc"
},
{
"right": "9d6af8b0c924d180dec7f94e695c0c53607393b1df80da8726e2a2433f0898fa"
},
{
"right": "864616e1087b67ad4a0242088c6dd6ba986f49ae4f3a682e12643e55b0dc93ea"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Name.givenNames-v1",
"value": "urn:givenNames:e34b35be4ed074b7730341ba29e213ea650f6eb790b10438d7b08bc293e9135c:Civic|",
"claimPath": "document.name.givenNames",
"targetHash": "658c38086e2558d4cc7606b1f5d52e4f062c0dec89f0182e7b4958637fa82813",
"node": [
{
"right": "241fc6a8c481babfd8539da5336c45cf47f1c27119d7478fd8199d99a928b36b"
},
{
"left": "34048eddb2b510b13366f9f5027c54b123789551da297f048114dcf165f8abed"
},
{
"right": "864616e1087b67ad4a0242088c6dd6ba986f49ae4f3a682e12643e55b0dc93ea"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Name.familyNames-v1",
"value": "urn:familyNames:8d7f851da6e40b84ae180ad28f476df61aa28f168aaa24192ffac4b99a20aa41:User|",
"claimPath": "document.name.familyNames",
"targetHash": "241fc6a8c481babfd8539da5336c45cf47f1c27119d7478fd8199d99a928b36b",
"node": [
{
"left": "658c38086e2558d4cc7606b1f5d52e4f062c0dec89f0182e7b4958637fa82813"
},
{
"left": "34048eddb2b510b13366f9f5027c54b123789551da297f048114dcf165f8abed"
},
{
"right": "864616e1087b67ad4a0242088c6dd6ba986f49ae4f3a682e12643e55b0dc93ea"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Document.dateOfBirth-v1",
"value": "urn:dateOfBirth.day:9188458a85fa24aea720e1fa333be0e52da3cd21ca1402faeaf3c853022c15ce:1|urn:dateOfBirth.month:b58e7fca8dba23945122c120f8a7d5fd00d98b576297dd67c3560aea7fded6d5:1|urn:dateOfBirth.year:a95f404d5994e298b96373b430b095b8acabf941ec1a5b9d3b30306649506ecc:1990|",
"claimPath": "document.dateOfBirth",
"targetHash": "d08dd1850914525fa4a7033912af01dbaf540f04eb955ae03860e09d929cbeb0",
"node": [
{
"right": "f6be40c53ce37ea10fefffa919dd11e25403bc9ffdb66d52d8fd8b0833f65fc2"
},
{
"right": "35046a230f44c7d119e185847c8c4c3f96ffa05413441c6bb33cab9da5c8ec64"
},
{
"left": "27ec4e8b41175753c4d37abd688594ff154f31d98f84f6800c333648eef6d2b9"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Document.issueCountry-v1",
"value": "urn:issueCountry:a1a07ec7b25da084d37665993beba9f11062eaea86625290f574dfdecde4ad88:GBR|",
"claimPath": "document.issueCountry",
"targetHash": "f6be40c53ce37ea10fefffa919dd11e25403bc9ffdb66d52d8fd8b0833f65fc2",
"node": [
{
"left": "d08dd1850914525fa4a7033912af01dbaf540f04eb955ae03860e09d929cbeb0"
},
{
"right": "35046a230f44c7d119e185847c8c4c3f96ffa05413441c6bb33cab9da5c8ec64"
},
{
"left": "27ec4e8b41175753c4d37abd688594ff154f31d98f84f6800c333648eef6d2b9"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Document.evidences-v1",
"value": "urn:evidences.idDocumentFront.algorithm:2caa563de6f813dcaa883d88271ebd15c5ce5c9ae7d89a75dbe55950fb71860d:sha256|urn:evidences.idDocumentFront.data:626571a33b21f22d72d7f35de56f637a4458ec677d63a8f60fa61e0799c02b20:195f9bf62b1a807abe26828c13f29e443169cdc5f60b22b470bfa50eef55a5a4|urn:evidences.selfie.algorithm:dc7f7d835dce3522af22a9c1476eb2e1d55721a583543969f0e660f2ec7876c5:sha256|urn:evidences.selfie.data:af1a80565402998264ec1a76920d0e821088ee9ddb0c902aec4f6cc96292d5c5:0e06d43673ae1bb490070a54d47b731c5f9f7720426d976756e4bad1b679dd3f|",
"claimPath": "document.evidences",
"targetHash": "5c1a44c643924652fd29285ee39df308d1f9637c4492d52bbbd0597a1059e530",
"node": [
{
"right": "53e286491ed7345a2e44479b83e5caa1740c811acdeb2fff7c2807c3dd92313a"
},
{
"left": "864ef0e873a53737511fde78d23bc6b1aebc72ce72d601f5c44081a87df9ba1b"
},
{
"left": "27ec4e8b41175753c4d37abd688594ff154f31d98f84f6800c333648eef6d2b9"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Validation:evidences.selfie-v1",
"value": "urn:selfie.algorithm:dc7f7d835dce3522af22a9c1476eb2e1d55721a583543969f0e660f2ec7876c5:sha256|urn:selfie.data:af1a80565402998264ec1a76920d0e821088ee9ddb0c902aec4f6cc96292d5c5:0e06d43673ae1bb490070a54d47b731c5f9f7720426d976756e4bad1b679dd3f|",
"claimPath": "document.evidences.validationEvidences.selfie",
"targetHash": "53e286491ed7345a2e44479b83e5caa1740c811acdeb2fff7c2807c3dd92313a",
"node": [
{
"left": "5c1a44c643924652fd29285ee39df308d1f9637c4492d52bbbd0597a1059e530"
},
{
"left": "864ef0e873a53737511fde78d23bc6b1aebc72ce72d601f5c44081a87df9ba1b"
},
{
"left": "27ec4e8b41175753c4d37abd688594ff154f31d98f84f6800c333648eef6d2b9"
},
{
"right": "b8ff090aaf91498f5bf9000f59f8d026b4e2c47c50d9b528d7181e0ba00be349"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "claim-cvc:Validation:evidences.idDocumentFront-v1",
"value": "urn:idDocumentFront.algorithm:2caa563de6f813dcaa883d88271ebd15c5ce5c9ae7d89a75dbe55950fb71860d:sha256|urn:idDocumentFront.data:626571a33b21f22d72d7f35de56f637a4458ec677d63a8f60fa61e0799c02b20:195f9bf62b1a807abe26828c13f29e443169cdc5f60b22b470bfa50eef55a5a4|",
"claimPath": "document.evidences.validationEvidences.idDocumentFront",
"targetHash": "8439899445b9bf53e661ca3aff5ba4ae8dcf7cf26722a4ca84dd762826d1a3cf",
"node": [
{
"right": "1f96d705c856811860438860a324bcc7d4b693303fb44e68905e24442ce2e487"
},
{
"right": "4b0773f44744636ecdee256846ffa7832aa7a6f9ed6cd5ef6c015f657c3b7b9a"
},
{
"right": "bd4acd49d9986762e01de36329a25d91ace3a47cdc93e007843e29d89aea70cc"
},
{
"left": "90ca0e5712a49a84adee1bb5644fc0f141ffedcef70646672a1c71aa0f904c8e"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "cvc:Meta:issuer",
"value": "urn:issuer:edf04b9ddbecb78f298813e7377919e7cf4d51564a16f9f01f9277f7c4a5b881:did:sol:devnet:tid652xmv91UHLW3HKnQSYMoNYko6FWd8sUEuYF5LPn|",
"claimPath": "meta.issuer",
"targetHash": "1f96d705c856811860438860a324bcc7d4b693303fb44e68905e24442ce2e487",
"node": [
{
"left": "8439899445b9bf53e661ca3aff5ba4ae8dcf7cf26722a4ca84dd762826d1a3cf"
},
{
"right": "4b0773f44744636ecdee256846ffa7832aa7a6f9ed6cd5ef6c015f657c3b7b9a"
},
{
"right": "bd4acd49d9986762e01de36329a25d91ace3a47cdc93e007843e29d89aea70cc"
},
{
"left": "90ca0e5712a49a84adee1bb5644fc0f141ffedcef70646672a1c71aa0f904c8e"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "cvc:Meta:issuanceDate",
"value": "urn:issuanceDate:f13a543f97ab9f6d9b879d2f899804cfc565ff6c6efaf911e653682062aac939:2022-05-04T18:29:26.669Z|",
"claimPath": "meta.issuanceDate",
"targetHash": "b96c0a88f3a33f68d189ea8f5a2e223d9b80771ce206b2b0894c895274d359b8",
"node": [
{
"right": "6f5f16b615ae8acbbe98b28f881f9d23be11397350c04e50cd961381003b5173"
},
{
"left": "cf0e99efe18e645a3b07853a3606b49dc86b974a8de098961224f4188ae35736"
},
{
"right": "bd4acd49d9986762e01de36329a25d91ace3a47cdc93e007843e29d89aea70cc"
},
{
"left": "90ca0e5712a49a84adee1bb5644fc0f141ffedcef70646672a1c71aa0f904c8e"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
},
{
"identifier": "cvc:Meta:expirationDate",
"value": "urn:expirationDate:7d99192255fc38cd9fb757df6a3441c4316c98162262600b50346c1106436ca8:null|",
"claimPath": "meta.expirationDate",
"targetHash": "6f5f16b615ae8acbbe98b28f881f9d23be11397350c04e50cd961381003b5173",
"node": [
{
"left": "b96c0a88f3a33f68d189ea8f5a2e223d9b80771ce206b2b0894c895274d359b8"
},
{
"left": "cf0e99efe18e645a3b07853a3606b49dc86b974a8de098961224f4188ae35736"
},
{
"right": "bd4acd49d9986762e01de36329a25d91ace3a47cdc93e007843e29d89aea70cc"
},
{
"left": "90ca0e5712a49a84adee1bb5644fc0f141ffedcef70646672a1c71aa0f904c8e"
},
{
"right": "02ad6b96c134fdc1559443e92a1c6e7b7cf1b8640b5e5f2a74e9d432f6feda2a"
}
]
}
],
"merkleRootSignature": {
"signature": "a95f384813a019f60b58133391fda3767accabb05527ed4006a3646e46ec7855edde972ce189bfef185c82ecaf8c0f16a3444a47b2e61e5ea89a3e9ff9bc6b07",
"verificationMethod": "did:sol:devnet:tid652xmv91UHLW3HKnQSYMoNYko6FWd8sUEuYF5LPn#default"
},
"granted": null
}
}