@@ -34,28 +34,20 @@ The verification checks that the credential:
34
34
35
35
The verification will also tell us if any of the registries listed in the trusted registry list couldn't be loaded (say because of a network error), which is important because those missing registries might be the very registries that affirm the trustworthiness of the issuer of a given credential.
36
36
37
- As of March 2025 issuers are trusted if they are listed in one of the Digital Credentials Issuer Registries :
37
+ As of May 2025 we've published a list of known DCC registries :
38
38
39
39
```
40
- {
41
- name: 'DCC Pilot Registry',
42
- url: 'https://digitalcredentials.github.io/issuer-registry/registry.json'
43
- },
44
- {
45
- name: 'DCC Sandbox Registry',
46
- url: 'https://digitalcredentials.github.io/sandbox-registry/registry.json'
47
- },
48
- {
49
- name: 'DCC Community Registry',
50
- url: 'https://digitalcredentials.github.io/community-registry/registry.json'
51
- },
52
- {
53
- name: 'DCC Registry',
54
- url: 'https://digitalcredentials.github.io/dcc-registry/registry.json'
55
- }
40
+ https://digitalcredentials.github.io/dcc-known-registries/known-did-registries.json
56
41
```
57
42
58
- The DCC is working on a new trust registry model that will extend the registry scope.
43
+ that you would retrieve something like so:
44
+
45
+ ```
46
+ const response = await fetch("https://digitalcredentials.github.io/dcc-known-registries/known-did-registries.json");
47
+ const knownRegistries = await response.json();
48
+ ```
49
+
50
+ and then pass that knownRegistries variable into the call to verifyCredential, as explained below.
59
51
60
52
## API
61
53
@@ -72,7 +64,7 @@ This package exports two methods:
72
64
73
65
* credential - The W3C Verifiable Credential to be verified.
74
66
* knownDidRegistries - a list of trusted registries.
75
- * reloadIssuerRegistry - A boolean (true/false) indication whether or not to refresh the cached copy of the registries.
67
+
76
68
77
69
#### result
78
70
@@ -102,11 +94,33 @@ Four steps are checked, returning a result per step in a log like so:
102
94
{
103
95
"id": "registered_issuer",
104
96
"valid": true/false,
105
- "foundInRegistries": [
106
- "DCC Sandbox Registry"
97
+ "matchingIssuers": [
98
+ {
99
+ "issuer": {
100
+ "federation_entity": {
101
+ "organization_name": "DCC did:web test",
102
+ "homepage_uri": "https://digitalcredentials.mit.edu",
103
+ "location": "Cambridge, MA, USA"
104
+ }
105
+ },
106
+ "registry": {
107
+ "name": "DCC Sandbox Registry",
108
+ "type": "dcc-legacy",
109
+ "url": "https://digitalcredentials.github.io/sandbox-registry/registry.json"
110
+ }
111
+ }
107
112
],
108
- "registriesNotLoaded":[
109
- "DCC Issuer Registry"
113
+ "uncheckedRegistries": [
114
+ {
115
+ "name": "DCC Community Registry",
116
+ "type": "dcc-legacy",
117
+ "url": "https://onldynoyrrrt.com/registry.json"
118
+ },
119
+ {
120
+ "name": "DCC Pilot Registry",
121
+ "type": "dcc-legacy",
122
+ "url": "https://onldynoyrt.com/registry.json"
123
+ }
110
124
]
111
125
}
112
126
]
@@ -142,10 +156,23 @@ A conclusive verification might look like this example where all steps returned
142
156
{
143
157
"id": "registered_issuer",
144
158
"valid": true,
145
- "foundInRegistries": [
146
- "DCC Sandbox Registry"
159
+ "matchingIssuers": [
160
+ {
161
+ "issuer": {
162
+ "federation_entity": {
163
+ "organization_name": "DCC did:web test",
164
+ "homepage_uri": "https://digitalcredentials.mit.edu",
165
+ "location": "Cambridge, MA, USA"
166
+ }
167
+ },
168
+ "registry": {
169
+ "name": "DCC Sandbox Registry",
170
+ "type": "dcc-legacy",
171
+ "url": "https://digitalcredentials.github.io/sandbox-registry/registry.json"
172
+ }
173
+ }
147
174
],
148
- "registriesNotLoaded": []
175
+ "uncheckedRegistries": []
149
176
}
150
177
]
151
178
}
@@ -173,10 +200,23 @@ And here is a slightly different verification result where we have still made co
173
200
{
174
201
"id": "registered_issuer",
175
202
"valid": true,
176
- "foundInRegistries": [
177
- "DCC Sandbox Registry"
203
+ "matchingIssuers": [
204
+ {
205
+ "issuer": {
206
+ "federation_entity": {
207
+ "organization_name": "DCC did:web test",
208
+ "homepage_uri": "https://digitalcredentials.mit.edu",
209
+ "location": "Cambridge, MA, USA"
210
+ }
211
+ },
212
+ "registry": {
213
+ "name": "DCC Sandbox Registry",
214
+ "type": "dcc-legacy",
215
+ "url": "https://digitalcredentials.github.io/sandbox-registry/registry.json"
216
+ }
217
+ }
178
218
],
179
- "registriesNotLoaded": []
219
+ "uncheckedRegistries": []
180
220
}
181
221
]
182
222
}
@@ -225,12 +265,33 @@ A partially successful verification might look like this example, where we could
225
265
{
226
266
"id": "registered_issuer",
227
267
"valid": false,
228
- "foundInRegistries": [],
229
- "registriesNotLoaded": [
268
+ "matchingIssuers": [
230
269
{
231
- "name": "DCC Sandbox Registry",
232
- "url": "https://onlynoyrt.com/registry.json"
270
+ "issuer": {
271
+ "federation_entity": {
272
+ "organization_name": "DCC did:web test",
273
+ "homepage_uri": "https://digitalcredentials.mit.edu",
274
+ "location": "Cambridge, MA, USA"
275
+ }
276
+ },
277
+ "registry": {
278
+ "name": "DCC Sandbox Registry",
279
+ "type": "dcc-legacy",
280
+ "url": "https://digitalcredentials.github.io/sandbox-registry/registry.json"
281
+ }
233
282
}
283
+ ],
284
+ "uncheckedRegistries": [
285
+ {
286
+ "name": "DCC Community Registry",
287
+ "type": "dcc-legacy",
288
+ "url": "https://onldynoyrrrt.com/registry.json"
289
+ },
290
+ {
291
+ "name": "DCC Pilot Registry",
292
+ "type": "dcc-legacy",
293
+ "url": "https://onldynoyrt.com/registry.json"
294
+ }
234
295
]
235
296
}
236
297
]
@@ -633,10 +694,23 @@ A successful signed VP result with two packaged VCs might look like so:
633
694
{
634
695
"id": "registered_issuer",
635
696
"valid": true,
636
- "foundInRegistries": [
637
- "DCC Sandbox Registry"
638
- ],
639
- "registriesNotLoaded": []
697
+ "matchingIssuers": [
698
+ {
699
+ "issuer": {
700
+ "federation_entity": {
701
+ "organization_name": "DCC did:web test",
702
+ "homepage_uri": "https://digitalcredentials.mit.edu",
703
+ "location": "Cambridge, MA, USA"
704
+ }
705
+ },
706
+ "registry": {
707
+ "name": "DCC Sandbox Registry",
708
+ "type": "dcc-legacy",
709
+ "url": "https://digitalcredentials.github.io/sandbox-registry/registry.json"
710
+ }
711
+ }
712
+ ],
713
+ "uncheckedRegistries": []
640
714
}
641
715
],
642
716
"credential": {vc omitted for brevity/clarity}
0 commit comments