@veramo/credential-ld 5.6.1-unstable.36 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/action-handler.d.ts +49 -1
- package/build/action-handler.d.ts.map +1 -1
- package/build/action-handler.js +8 -8
- package/build/action-handler.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/ld-context-loader.js.map +1 -1
- package/build/ld-credential-module.d.ts +11 -6
- package/build/ld-credential-module.d.ts.map +1 -1
- package/build/ld-credential-module.js +19 -11
- package/build/ld-credential-module.js.map +1 -1
- package/build/ld-default-contexts.js +2 -2
- package/build/ld-default-contexts.js.map +1 -1
- package/build/ld-suite-loader.d.ts +1 -1
- package/build/ld-suite-loader.d.ts.map +1 -1
- package/build/ld-suite-loader.js +9 -9
- package/build/ld-suite-loader.js.map +1 -1
- package/build/ld-suites.d.ts +1 -1
- package/build/ld-suites.d.ts.map +1 -1
- package/build/ld-suites.js.map +1 -1
- package/build/plugin.schema.d.ts +430 -0
- package/build/plugin.schema.d.ts.map +1 -0
- package/build/{plugin.schema.json → plugin.schema.js} +65 -16
- package/build/plugin.schema.js.map +1 -0
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts.map +1 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.js +3 -1
- package/build/suites/EcdsaSecp256k1RecoverySignature2020.js.map +1 -1
- package/build/suites/Ed25519Signature2018.d.ts +1 -1
- package/build/suites/Ed25519Signature2018.d.ts.map +1 -1
- package/build/suites/Ed25519Signature2018.js +3 -2
- package/build/suites/Ed25519Signature2018.js.map +1 -1
- package/build/suites/Ed25519Signature2020.d.ts +1 -1
- package/build/suites/Ed25519Signature2020.d.ts.map +1 -1
- package/build/suites/Ed25519Signature2020.js +3 -2
- package/build/suites/Ed25519Signature2020.js.map +1 -1
- package/build/suites/JsonWebSignature2020.d.ts +1 -1
- package/build/suites/JsonWebSignature2020.d.ts.map +1 -1
- package/build/suites/JsonWebSignature2020.js +2 -1
- package/build/suites/JsonWebSignature2020.js.map +1 -1
- package/build/tsdoc-metadata.json +1 -1
- package/build/types.d.ts +5 -5
- package/build/types.d.ts.map +1 -1
- package/package.json +9 -11
- package/src/action-handler.ts +13 -10
- package/src/index.ts +2 -1
- package/src/ld-credential-module.ts +28 -19
- package/src/ld-suite-loader.ts +10 -10
- package/src/ld-suites.ts +1 -1
- package/src/{plugin.schema.json → plugin.schema.ts} +63 -15
- package/src/suites/EcdsaSecp256k1RecoverySignature2020.ts +3 -1
- package/src/suites/Ed25519Signature2018.ts +4 -3
- package/src/suites/Ed25519Signature2020.ts +4 -3
- package/src/suites/JsonWebSignature2020.ts +3 -2
- package/src/types.ts +5 -4
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
ICredentialIssuerLD: {
|
|
3
|
+
components: {
|
|
4
|
+
schemas: {
|
|
5
|
+
ICreateVerifiableCredentialLDArgs: {
|
|
6
|
+
type: string;
|
|
7
|
+
properties: {
|
|
8
|
+
resolutionOptions: {
|
|
9
|
+
type: string;
|
|
10
|
+
properties: {
|
|
11
|
+
publicKeyFormat: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
accept: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
credential: {
|
|
21
|
+
$ref: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
keyRef: {
|
|
25
|
+
type: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
fetchRemoteContexts: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
required: string[];
|
|
34
|
+
additionalProperties: {
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
CredentialPayload: {
|
|
40
|
+
type: string;
|
|
41
|
+
properties: {
|
|
42
|
+
issuer: {
|
|
43
|
+
$ref: string;
|
|
44
|
+
};
|
|
45
|
+
credentialSubject: {
|
|
46
|
+
$ref: string;
|
|
47
|
+
};
|
|
48
|
+
type: {
|
|
49
|
+
type: string;
|
|
50
|
+
items: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
"@context": {
|
|
55
|
+
$ref: string;
|
|
56
|
+
};
|
|
57
|
+
issuanceDate: {
|
|
58
|
+
$ref: string;
|
|
59
|
+
};
|
|
60
|
+
expirationDate: {
|
|
61
|
+
$ref: string;
|
|
62
|
+
};
|
|
63
|
+
credentialStatus: {
|
|
64
|
+
$ref: string;
|
|
65
|
+
};
|
|
66
|
+
id: {
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
required: string[];
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
IssuerType: {
|
|
74
|
+
anyOf: ({
|
|
75
|
+
type: string;
|
|
76
|
+
properties: {
|
|
77
|
+
id: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
required: string[];
|
|
82
|
+
} | {
|
|
83
|
+
type: string;
|
|
84
|
+
properties?: undefined;
|
|
85
|
+
required?: undefined;
|
|
86
|
+
})[];
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
CredentialSubject: {
|
|
90
|
+
type: string;
|
|
91
|
+
properties: {
|
|
92
|
+
id: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
description: string;
|
|
97
|
+
};
|
|
98
|
+
ContextType: {
|
|
99
|
+
anyOf: ({
|
|
100
|
+
type: string;
|
|
101
|
+
items?: undefined;
|
|
102
|
+
} | {
|
|
103
|
+
type: string;
|
|
104
|
+
items: {
|
|
105
|
+
anyOf: {
|
|
106
|
+
type: string;
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
})[];
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
DateType: {
|
|
113
|
+
type: string;
|
|
114
|
+
description: string;
|
|
115
|
+
};
|
|
116
|
+
CredentialStatusReference: {
|
|
117
|
+
type: string;
|
|
118
|
+
properties: {
|
|
119
|
+
id: {
|
|
120
|
+
type: string;
|
|
121
|
+
};
|
|
122
|
+
type: {
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
required: string[];
|
|
127
|
+
description: string;
|
|
128
|
+
};
|
|
129
|
+
VerifiableCredential: {
|
|
130
|
+
type: string;
|
|
131
|
+
properties: {
|
|
132
|
+
proof: {
|
|
133
|
+
$ref: string;
|
|
134
|
+
};
|
|
135
|
+
issuer: {
|
|
136
|
+
$ref: string;
|
|
137
|
+
};
|
|
138
|
+
credentialSubject: {
|
|
139
|
+
$ref: string;
|
|
140
|
+
};
|
|
141
|
+
type: {
|
|
142
|
+
anyOf: ({
|
|
143
|
+
type: string;
|
|
144
|
+
items: {
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
} | {
|
|
148
|
+
type: string;
|
|
149
|
+
items?: undefined;
|
|
150
|
+
})[];
|
|
151
|
+
};
|
|
152
|
+
"@context": {
|
|
153
|
+
$ref: string;
|
|
154
|
+
};
|
|
155
|
+
issuanceDate: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
expirationDate: {
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
credentialStatus: {
|
|
162
|
+
$ref: string;
|
|
163
|
+
};
|
|
164
|
+
id: {
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
required: string[];
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
ProofType: {
|
|
172
|
+
type: string;
|
|
173
|
+
properties: {
|
|
174
|
+
type: {
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
description: string;
|
|
179
|
+
};
|
|
180
|
+
ICreateVerifiablePresentationLDArgs: {
|
|
181
|
+
type: string;
|
|
182
|
+
properties: {
|
|
183
|
+
resolutionOptions: {
|
|
184
|
+
type: string;
|
|
185
|
+
properties: {
|
|
186
|
+
publicKeyFormat: {
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
accept: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
description: string;
|
|
194
|
+
};
|
|
195
|
+
presentation: {
|
|
196
|
+
$ref: string;
|
|
197
|
+
description: string;
|
|
198
|
+
};
|
|
199
|
+
challenge: {
|
|
200
|
+
type: string;
|
|
201
|
+
description: string;
|
|
202
|
+
};
|
|
203
|
+
domain: {
|
|
204
|
+
type: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
keyRef: {
|
|
208
|
+
type: string;
|
|
209
|
+
description: string;
|
|
210
|
+
};
|
|
211
|
+
fetchRemoteContexts: {
|
|
212
|
+
type: string;
|
|
213
|
+
description: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
required: string[];
|
|
217
|
+
additionalProperties: {
|
|
218
|
+
description: string;
|
|
219
|
+
};
|
|
220
|
+
description: string;
|
|
221
|
+
};
|
|
222
|
+
PresentationPayload: {
|
|
223
|
+
type: string;
|
|
224
|
+
properties: {
|
|
225
|
+
holder: {
|
|
226
|
+
type: string;
|
|
227
|
+
};
|
|
228
|
+
verifiableCredential: {
|
|
229
|
+
type: string;
|
|
230
|
+
items: {
|
|
231
|
+
$ref: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
type: {
|
|
235
|
+
type: string;
|
|
236
|
+
items: {
|
|
237
|
+
type: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
"@context": {
|
|
241
|
+
$ref: string;
|
|
242
|
+
};
|
|
243
|
+
verifier: {
|
|
244
|
+
type: string;
|
|
245
|
+
items: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
issuanceDate: {
|
|
250
|
+
$ref: string;
|
|
251
|
+
};
|
|
252
|
+
expirationDate: {
|
|
253
|
+
$ref: string;
|
|
254
|
+
};
|
|
255
|
+
id: {
|
|
256
|
+
type: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
required: string[];
|
|
260
|
+
description: string;
|
|
261
|
+
};
|
|
262
|
+
W3CVerifiableCredential: {
|
|
263
|
+
anyOf: {
|
|
264
|
+
$ref: string;
|
|
265
|
+
}[];
|
|
266
|
+
description: string;
|
|
267
|
+
};
|
|
268
|
+
CompactJWT: {
|
|
269
|
+
type: string;
|
|
270
|
+
description: string;
|
|
271
|
+
};
|
|
272
|
+
VerifiablePresentation: {
|
|
273
|
+
type: string;
|
|
274
|
+
properties: {
|
|
275
|
+
proof: {
|
|
276
|
+
$ref: string;
|
|
277
|
+
};
|
|
278
|
+
holder: {
|
|
279
|
+
type: string;
|
|
280
|
+
};
|
|
281
|
+
verifiableCredential: {
|
|
282
|
+
type: string;
|
|
283
|
+
items: {
|
|
284
|
+
$ref: string;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
type: {
|
|
288
|
+
anyOf: ({
|
|
289
|
+
type: string;
|
|
290
|
+
items: {
|
|
291
|
+
type: string;
|
|
292
|
+
};
|
|
293
|
+
} | {
|
|
294
|
+
type: string;
|
|
295
|
+
items?: undefined;
|
|
296
|
+
})[];
|
|
297
|
+
};
|
|
298
|
+
"@context": {
|
|
299
|
+
$ref: string;
|
|
300
|
+
};
|
|
301
|
+
verifier: {
|
|
302
|
+
type: string;
|
|
303
|
+
items: {
|
|
304
|
+
type: string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
issuanceDate: {
|
|
308
|
+
type: string;
|
|
309
|
+
};
|
|
310
|
+
expirationDate: {
|
|
311
|
+
type: string;
|
|
312
|
+
};
|
|
313
|
+
id: {
|
|
314
|
+
type: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
required: string[];
|
|
318
|
+
description: string;
|
|
319
|
+
};
|
|
320
|
+
IVerifyCredentialLDArgs: {
|
|
321
|
+
type: string;
|
|
322
|
+
properties: {
|
|
323
|
+
resolutionOptions: {
|
|
324
|
+
type: string;
|
|
325
|
+
properties: {
|
|
326
|
+
publicKeyFormat: {
|
|
327
|
+
type: string;
|
|
328
|
+
};
|
|
329
|
+
accept: {
|
|
330
|
+
type: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
description: string;
|
|
334
|
+
};
|
|
335
|
+
credential: {
|
|
336
|
+
$ref: string;
|
|
337
|
+
description: string;
|
|
338
|
+
};
|
|
339
|
+
fetchRemoteContexts: {
|
|
340
|
+
type: string;
|
|
341
|
+
description: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
required: string[];
|
|
345
|
+
additionalProperties: {
|
|
346
|
+
description: string;
|
|
347
|
+
};
|
|
348
|
+
description: string;
|
|
349
|
+
};
|
|
350
|
+
IVerifyPresentationLDArgs: {
|
|
351
|
+
type: string;
|
|
352
|
+
properties: {
|
|
353
|
+
resolutionOptions: {
|
|
354
|
+
type: string;
|
|
355
|
+
properties: {
|
|
356
|
+
publicKeyFormat: {
|
|
357
|
+
type: string;
|
|
358
|
+
};
|
|
359
|
+
accept: {
|
|
360
|
+
type: string;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
description: string;
|
|
364
|
+
};
|
|
365
|
+
presentation: {
|
|
366
|
+
$ref: string;
|
|
367
|
+
description: string;
|
|
368
|
+
};
|
|
369
|
+
challenge: {
|
|
370
|
+
type: string;
|
|
371
|
+
description: string;
|
|
372
|
+
};
|
|
373
|
+
domain: {
|
|
374
|
+
type: string;
|
|
375
|
+
description: string;
|
|
376
|
+
};
|
|
377
|
+
fetchRemoteContexts: {
|
|
378
|
+
type: string;
|
|
379
|
+
description: string;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
required: string[];
|
|
383
|
+
additionalProperties: {
|
|
384
|
+
description: string;
|
|
385
|
+
};
|
|
386
|
+
description: string;
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
methods: {
|
|
390
|
+
createVerifiableCredentialLD: {
|
|
391
|
+
description: string;
|
|
392
|
+
arguments: {
|
|
393
|
+
$ref: string;
|
|
394
|
+
};
|
|
395
|
+
returnType: {
|
|
396
|
+
$ref: string;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
createVerifiablePresentationLD: {
|
|
400
|
+
description: string;
|
|
401
|
+
arguments: {
|
|
402
|
+
$ref: string;
|
|
403
|
+
};
|
|
404
|
+
returnType: {
|
|
405
|
+
$ref: string;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
verifyCredentialLD: {
|
|
409
|
+
description: string;
|
|
410
|
+
arguments: {
|
|
411
|
+
$ref: string;
|
|
412
|
+
};
|
|
413
|
+
returnType: {
|
|
414
|
+
type: string;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
verifyPresentationLD: {
|
|
418
|
+
description: string;
|
|
419
|
+
arguments: {
|
|
420
|
+
$ref: string;
|
|
421
|
+
};
|
|
422
|
+
returnType: {
|
|
423
|
+
type: string;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
//# sourceMappingURL=plugin.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.schema.d.ts","sourceRoot":"","sources":["../src/plugin.schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2dlB,CAAA"}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
{
|
|
1
|
+
export const schema = {
|
|
2
2
|
"ICredentialIssuerLD": {
|
|
3
3
|
"components": {
|
|
4
4
|
"schemas": {
|
|
5
5
|
"ICreateVerifiableCredentialLDArgs": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
+
"resolutionOptions": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"publicKeyFormat": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"accept": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"description": "Options to be passed to the DID resolver."
|
|
19
|
+
},
|
|
8
20
|
"credential": {
|
|
9
21
|
"$ref": "#/components/schemas/CredentialPayload",
|
|
10
|
-
"description": "The json payload of the Credential according to the
|
|
22
|
+
"description": "The json payload of the Credential according to the {@link https://www.w3.org/TR/vc-data-model/#credentials | canonical model } \n\nThe signer of the Credential is chosen based on the `issuer.id` property of the `credential`\n\n`@context`, `type` and `issuanceDate` will be added automatically if omitted"
|
|
11
23
|
},
|
|
12
24
|
"keyRef": {
|
|
13
25
|
"type": "string",
|
|
@@ -24,7 +36,7 @@
|
|
|
24
36
|
"additionalProperties": {
|
|
25
37
|
"description": "Any other options that can be forwarded to the lower level libraries"
|
|
26
38
|
},
|
|
27
|
-
"description": "Encapsulates the parameters required to create a
|
|
39
|
+
"description": "Encapsulates the parameters required to create a {@link https://www.w3.org/TR/vc-data-model/#credentials | W3C Verifiable Credential }"
|
|
28
40
|
},
|
|
29
41
|
"CredentialPayload": {
|
|
30
42
|
"type": "object",
|
|
@@ -79,7 +91,7 @@
|
|
|
79
91
|
"type": "string"
|
|
80
92
|
}
|
|
81
93
|
],
|
|
82
|
-
"description": "The issuer of a {@link VerifiableCredential } or the holder of a {@link VerifiablePresentation } .\n\nThe value of the issuer property MUST be either a URI or an object containing an id property. It is RECOMMENDED that the URI in the issuer or its id be one which, if de-referenced, results in a document containing machine-readable information about the issuer that can be used to verify the information expressed in the credential.\n\nSee {@link
|
|
94
|
+
"description": "The issuer of a {@link VerifiableCredential } or the holder of a {@link VerifiablePresentation } .\n\nThe value of the issuer property MUST be either a URI or an object containing an id property. It is RECOMMENDED that the URI in the issuer or its id be one which, if de-referenced, results in a document containing machine-readable information about the issuer that can be used to verify the information expressed in the credential.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#issuer | Issuer data model }"
|
|
83
95
|
},
|
|
84
96
|
"CredentialSubject": {
|
|
85
97
|
"type": "object",
|
|
@@ -88,7 +100,7 @@
|
|
|
88
100
|
"type": "string"
|
|
89
101
|
}
|
|
90
102
|
},
|
|
91
|
-
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link
|
|
103
|
+
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#credential-subject | Credential Subject }"
|
|
92
104
|
},
|
|
93
105
|
"ContextType": {
|
|
94
106
|
"anyOf": [
|
|
@@ -132,7 +144,7 @@
|
|
|
132
144
|
"id",
|
|
133
145
|
"type"
|
|
134
146
|
],
|
|
135
|
-
"description": "Used for the discovery of information about the current status of a verifiable credential, such as whether it is suspended or revoked. The precise contents of the credential status information is determined by the specific `credentialStatus` type definition, and varies depending on factors such as whether it is simple to implement or if it is privacy-enhancing.\n\nSee {@link
|
|
147
|
+
"description": "Used for the discovery of information about the current status of a verifiable credential, such as whether it is suspended or revoked. The precise contents of the credential status information is determined by the specific `credentialStatus` type definition, and varies depending on factors such as whether it is simple to implement or if it is privacy-enhancing.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#status | Credential Status }"
|
|
136
148
|
},
|
|
137
149
|
"VerifiableCredential": {
|
|
138
150
|
"type": "object",
|
|
@@ -182,7 +194,7 @@
|
|
|
182
194
|
"issuer",
|
|
183
195
|
"proof"
|
|
184
196
|
],
|
|
185
|
-
"description": "Represents a signed Verifiable Credential payload (includes proof), using a JSON representation. See {@link
|
|
197
|
+
"description": "Represents a signed Verifiable Credential payload (includes proof), using a JSON representation. See {@link https://www.w3.org/TR/vc-data-model/#credentials | VC data model }"
|
|
186
198
|
},
|
|
187
199
|
"ProofType": {
|
|
188
200
|
"type": "object",
|
|
@@ -196,9 +208,21 @@
|
|
|
196
208
|
"ICreateVerifiablePresentationLDArgs": {
|
|
197
209
|
"type": "object",
|
|
198
210
|
"properties": {
|
|
211
|
+
"resolutionOptions": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"properties": {
|
|
214
|
+
"publicKeyFormat": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"accept": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"description": "Options to be passed to the DID resolver."
|
|
222
|
+
},
|
|
199
223
|
"presentation": {
|
|
200
224
|
"$ref": "#/components/schemas/PresentationPayload",
|
|
201
|
-
"description": "The json payload of the Presentation according to the
|
|
225
|
+
"description": "The json payload of the Presentation according to the {@link https://www.w3.org/TR/vc-data-model/#presentations | canonical model } .\n\nThe signer of the Presentation is chosen based on the `holder` property of the `presentation`\n\n`@context`, `type` and `issuanceDate` will be added automatically if omitted."
|
|
202
226
|
},
|
|
203
227
|
"challenge": {
|
|
204
228
|
"type": "string",
|
|
@@ -223,7 +247,7 @@
|
|
|
223
247
|
"additionalProperties": {
|
|
224
248
|
"description": "Any other options that can be forwarded to the lower level libraries"
|
|
225
249
|
},
|
|
226
|
-
"description": "Encapsulates the parameters required to create a
|
|
250
|
+
"description": "Encapsulates the parameters required to create a {@link https://www.w3.org/TR/vc-data-model/#presentations | W3C Verifiable Presentation }"
|
|
227
251
|
},
|
|
228
252
|
"PresentationPayload": {
|
|
229
253
|
"type": "object",
|
|
@@ -276,7 +300,7 @@
|
|
|
276
300
|
"$ref": "#/components/schemas/CompactJWT"
|
|
277
301
|
}
|
|
278
302
|
],
|
|
279
|
-
"description": "Represents a signed Verifiable Credential (includes proof), in either JSON or compact JWT format. See {@link
|
|
303
|
+
"description": "Represents a signed Verifiable Credential (includes proof), in either JSON or compact JWT format. See {@link https://www.w3.org/TR/vc-data-model/#credentials | VC data model } See {@link https://www.w3.org/TR/vc-data-model/#proof-formats | proof formats }"
|
|
280
304
|
},
|
|
281
305
|
"CompactJWT": {
|
|
282
306
|
"type": "string",
|
|
@@ -334,14 +358,26 @@
|
|
|
334
358
|
"holder",
|
|
335
359
|
"proof"
|
|
336
360
|
],
|
|
337
|
-
"description": "Represents a signed Verifiable Presentation (includes proof), using a JSON representation. See {@link
|
|
361
|
+
"description": "Represents a signed Verifiable Presentation (includes proof), using a JSON representation. See {@link https://www.w3.org/TR/vc-data-model/#presentations | VP data model }"
|
|
338
362
|
},
|
|
339
363
|
"IVerifyCredentialLDArgs": {
|
|
340
364
|
"type": "object",
|
|
341
365
|
"properties": {
|
|
366
|
+
"resolutionOptions": {
|
|
367
|
+
"type": "object",
|
|
368
|
+
"properties": {
|
|
369
|
+
"publicKeyFormat": {
|
|
370
|
+
"type": "string"
|
|
371
|
+
},
|
|
372
|
+
"accept": {
|
|
373
|
+
"type": "string"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"description": "Options to be passed to the DID resolver."
|
|
377
|
+
},
|
|
342
378
|
"credential": {
|
|
343
379
|
"$ref": "#/components/schemas/VerifiableCredential",
|
|
344
|
-
"description": "The json payload of the Credential according to the
|
|
380
|
+
"description": "The json payload of the Credential according to the {@link https://www.w3.org/TR/vc-data-model/#credentials | canonical model } \n\nThe signer of the Credential is chosen based on the `issuer.id` property of the `credential`"
|
|
345
381
|
},
|
|
346
382
|
"fetchRemoteContexts": {
|
|
347
383
|
"type": "boolean",
|
|
@@ -354,14 +390,26 @@
|
|
|
354
390
|
"additionalProperties": {
|
|
355
391
|
"description": "Any other options that can be forwarded to the lower level libraries"
|
|
356
392
|
},
|
|
357
|
-
"description": "Encapsulates the parameters required to verify a
|
|
393
|
+
"description": "Encapsulates the parameters required to verify a {@link https://www.w3.org/TR/vc-data-model/#credentials | W3C Verifiable Credential }"
|
|
358
394
|
},
|
|
359
395
|
"IVerifyPresentationLDArgs": {
|
|
360
396
|
"type": "object",
|
|
361
397
|
"properties": {
|
|
398
|
+
"resolutionOptions": {
|
|
399
|
+
"type": "object",
|
|
400
|
+
"properties": {
|
|
401
|
+
"publicKeyFormat": {
|
|
402
|
+
"type": "string"
|
|
403
|
+
},
|
|
404
|
+
"accept": {
|
|
405
|
+
"type": "string"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"description": "Options to be passed to the DID resolver."
|
|
409
|
+
},
|
|
362
410
|
"presentation": {
|
|
363
411
|
"$ref": "#/components/schemas/VerifiablePresentation",
|
|
364
|
-
"description": "The json payload of the Credential according to the
|
|
412
|
+
"description": "The json payload of the Credential according to the {@link https://www.w3.org/TR/vc-data-model/#credentials | canonical model } \n\nThe signer of the Credential is chosen based on the `issuer.id` property of the `credential`"
|
|
365
413
|
},
|
|
366
414
|
"challenge": {
|
|
367
415
|
"type": "string",
|
|
@@ -382,7 +430,7 @@
|
|
|
382
430
|
"additionalProperties": {
|
|
383
431
|
"description": "Any other options that can be forwarded to the lower level libraries"
|
|
384
432
|
},
|
|
385
|
-
"description": "Encapsulates the parameters required to verify a
|
|
433
|
+
"description": "Encapsulates the parameters required to verify a {@link https://www.w3.org/TR/vc-data-model/#presentations | W3C Verifiable Presentation }"
|
|
386
434
|
}
|
|
387
435
|
},
|
|
388
436
|
"methods": {
|
|
@@ -425,4 +473,5 @@
|
|
|
425
473
|
}
|
|
426
474
|
}
|
|
427
475
|
}
|
|
428
|
-
}
|
|
476
|
+
};
|
|
477
|
+
//# sourceMappingURL=plugin.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.schema.js","sourceRoot":"","sources":["../src/plugin.schema.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,qBAAqB,EAAE;QACrB,YAAY,EAAE;YACZ,SAAS,EAAE;gBACT,mCAAmC,EAAE;oBACnC,MAAM,EAAE,QAAQ;oBAChB,YAAY,EAAE;wBACZ,mBAAmB,EAAE;4BACnB,MAAM,EAAE,QAAQ;4BAChB,YAAY,EAAE;gCACZ,iBAAiB,EAAE;oCACjB,MAAM,EAAE,QAAQ;iCACjB;gCACD,QAAQ,EAAE;oCACR,MAAM,EAAE,QAAQ;iCACjB;6BACF;4BACD,aAAa,EAAE,2CAA2C;yBAC3D;wBACD,YAAY,EAAE;4BACZ,MAAM,EAAE,wCAAwC;4BAChD,aAAa,EAAE,mTAAmT;yBACnU;wBACD,QAAQ,EAAE;4BACR,MAAM,EAAE,QAAQ;4BAChB,aAAa,EAAE,2GAA2G;yBAC3H;wBACD,qBAAqB,EAAE;4BACrB,MAAM,EAAE,SAAS;4BACjB,aAAa,EAAE,uHAAuH;yBACvI;qBACF;oBACD,UAAU,EAAE;wBACV,YAAY;qBACb;oBACD,sBAAsB,EAAE;wBACtB,aAAa,EAAE,sEAAsE;qBACtF;oBACD,aAAa,EAAE,yIAAyI;iBACzJ;gBACD,mBAAmB,EAAE;oBACnB,MAAM,EAAE,QAAQ;oBAChB,YAAY,EAAE;wBACZ,QAAQ,EAAE;4BACR,MAA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4BAChB,aAAa,EAAE,kGAAkG;yBAClH;wBACD,QAAQ,EAAE;4BACR,MAAM,EAAE,QAAQ;4BAChB,aAAa,EAAE,+FAA+F;yBAC/G;wBACD,qBAAqB,EAAE;4BACrB,MAAM,EAAE,SAAS;4BACjB,aAAa,EAAE,uHAAuH;yBACvI;qBACF;oBACD,UAAU,EAAE;wBACV,cAAc;qBACf;oBACD,sBAAsB,EAAE;wBACtB,aAAa,EAAE,sEAAsE;qBACtF;oBACD,aAAa,EAAE,6IAA6I;iBAC7J;aACF;YACD,SAAS,EAAE;gBACT,8BAA8B,EAAE;oBAC9B,aAAa,EAAE,0FAA0F;oBACzG,WAAW,EAAE;wBACX,MAAM,EAAE,wDAAwD;qBACjE;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,2CAA2C;qBACpD;iBACF;gBACD,gCAAgC,EAAE;oBAChC,aAAa,EAAE,4FAA4F;oBAC3G,WAAW,EAAE;wBACX,MAAM,EAAE,0DAA0D;qBACnE;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,6CAA6C;qBACtD;iBACF;gBACD,oBAAoB,EAAE;oBACpB,aAAa,EAAE,qDAAqD;oBACpE,WAAW,EAAE;wBACX,MAAM,EAAE,8CAA8C;qBACvD;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,SAAS;qBAClB;iBACF;gBACD,sBAAsB,EAAE;oBACtB,aAAa,EAAE,uDAAuD;oBACtE,WAAW,EAAE;wBACX,MAAM,EAAE,gDAAgD;qBACzD;oBACD,YAAY,EAAE;wBACZ,MAAM,EAAE,SAAS;qBAClB;iBACF;aACF;SACF;KACF;CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EcdsaSecp256k1RecoverySignature2020.d.ts","sourceRoot":"","sources":["../../src/suites/EcdsaSecp256k1RecoverySignature2020.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAMlG;;;;GAIG;AACH,qBAAa,yCAA0C,SAAQ,iBAAiB;IAC9E,4BAA4B,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"EcdsaSecp256k1RecoverySignature2020.d.ts","sourceRoot":"","sources":["../../src/suites/EcdsaSecp256k1RecoverySignature2020.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAMlG;;;;GAIG;AACH,qBAAa,yCAA0C,SAAQ,iBAAiB;IAC9E,4BAA4B,IAAI,MAAM;IAMtC,yBAAyB,IAAI,QAAQ;IAIrC,kBAAkB,CAChB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,MAAM,EACX,kBAAkB,EAAE,MAAM,EAC1B,OAAO,EAAE,aAAa,CAAC,oBAAoB,CAAC,GAC3C,GAAG;IAyCN,uBAAuB,IAAI,GAAG;IAI9B,0BAA0B,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI;IAEzD,4BAA4B,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAkC7F,UAAU,IAAI,MAAM;CAGrB"}
|
|
@@ -10,6 +10,8 @@ const { EcdsaSecp256k1RecoveryMethod2020, EcdsaSecp256k1RecoverySignature2020 }
|
|
|
10
10
|
export class VeramoEcdsaSecp256k1RecoverySignature2020 extends VeramoLdSignature {
|
|
11
11
|
getSupportedVerificationType() {
|
|
12
12
|
return 'EcdsaSecp256k1RecoveryMethod2020';
|
|
13
|
+
// TODO: add support for ['EcdsaSecp256k1VerificationKey2020', 'EcdsaSecp256k1VerificationKey2019',
|
|
14
|
+
// 'JsonWebKey2020', 'Multikey']
|
|
13
15
|
}
|
|
14
16
|
getSupportedVeramoKeyType() {
|
|
15
17
|
return 'Secp256k1';
|
|
@@ -41,7 +43,7 @@ export class VeramoEcdsaSecp256k1RecoverySignature2020 extends VeramoLdSignature
|
|
|
41
43
|
key: new EcdsaSecp256k1RecoveryMethod2020({
|
|
42
44
|
publicKeyHex: key.publicKeyHex,
|
|
43
45
|
signer: () => signer,
|
|
44
|
-
type:
|
|
46
|
+
type: 'EcdsaSecp256k1RecoveryMethod2020',
|
|
45
47
|
controller,
|
|
46
48
|
id: verifiableMethodId,
|
|
47
49
|
}),
|