@twin.org/standards-w3c-did 0.0.1-next.24 → 0.0.1-next.26

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.
Files changed (36) hide show
  1. package/dist/cjs/index.cjs +381 -6
  2. package/dist/esm/index.mjs +377 -7
  3. package/dist/types/index.d.ts +9 -1
  4. package/dist/types/models/{IDidProof.d.ts → IDataIntegrityProof.d.ts} +6 -6
  5. package/dist/types/models/IDidDocumentVerificationMethod.d.ts +3 -2
  6. package/dist/types/models/IDidVerifiableCredential.d.ts +4 -3
  7. package/dist/types/models/IDidVerifiablePresentation.d.ts +3 -2
  8. package/dist/types/models/IJsonWebSignature2020Proof.d.ts +33 -0
  9. package/dist/types/models/IMultikey.d.ts +41 -0
  10. package/dist/types/models/IProofSignerVerifier.d.ts +30 -0
  11. package/dist/types/models/didContexts.d.ts +9 -1
  12. package/dist/types/models/didTypes.d.ts +4 -4
  13. package/dist/types/models/proofTypes.d.ts +17 -0
  14. package/dist/types/signerVerifiers/dataIntegrityProofSignerVerifier.d.ts +36 -0
  15. package/dist/types/signerVerifiers/jsonWebSignature2020SignerVerifier.d.ts +35 -0
  16. package/dist/types/utils/multikeyHelper.d.ts +37 -0
  17. package/dist/types/utils/proofHelper.d.ts +41 -0
  18. package/docs/changelog.md +1 -1
  19. package/docs/reference/classes/DataIntegrityProofSignerVerifier.md +134 -0
  20. package/docs/reference/classes/JsonWebSignature2020SignerVerifier.md +133 -0
  21. package/docs/reference/classes/MultikeyHelper.md +119 -0
  22. package/docs/reference/classes/ProofHelper.md +121 -0
  23. package/docs/reference/index.md +13 -1
  24. package/docs/reference/interfaces/{IDidProof.md → IDataIntegrityProof.md} +17 -5
  25. package/docs/reference/interfaces/IDidDocumentVerificationMethod.md +9 -1
  26. package/docs/reference/interfaces/IDidVerifiableCredential.md +2 -2
  27. package/docs/reference/interfaces/IDidVerifiablePresentation.md +1 -1
  28. package/docs/reference/interfaces/IJsonWebSignature2020Proof.md +52 -0
  29. package/docs/reference/interfaces/IMultikey.md +68 -0
  30. package/docs/reference/interfaces/IProofSignerVerifier.md +99 -0
  31. package/docs/reference/type-aliases/ProofTypes.md +5 -0
  32. package/docs/reference/variables/DidContexts.md +14 -2
  33. package/docs/reference/variables/DidTypes.md +6 -6
  34. package/docs/reference/variables/ProofTypes.md +19 -0
  35. package/locales/en.json +27 -1
  36. package/package.json +4 -1
@@ -1,5 +1,10 @@
1
1
  'use strict';
2
2
 
3
+ var core = require('@twin.org/core');
4
+ var crypto = require('@twin.org/crypto');
5
+ var web = require('@twin.org/web');
6
+ var dataJsonLd = require('@twin.org/data-json-ld');
7
+
3
8
  // Copyright 2024 IOTA Stiftung.
4
9
  // SPDX-License-Identifier: Apache-2.0.
5
10
  /**
@@ -30,7 +35,15 @@ const DidContexts = {
30
35
  /**
31
36
  * The context root for VC Data Integrity.
32
37
  */
33
- ContextVCDataIntegrity: "https://w3id.org/security/data-integrity/v2"
38
+ ContextDataIntegrity: "https://www.w3.org/ns/credentials/v2",
39
+ /**
40
+ * The context root for VC Data Integrity.
41
+ */
42
+ ContextControllerIdentifiers: "https://www.w3.org/ns/cid/v1",
43
+ /**
44
+ * The context root for security multikey suites.
45
+ */
46
+ ContextSecurityMultikey: "https://w3id.org/security/multikey/v1"
34
47
  };
35
48
 
36
49
  // Copyright 2024 IOTA Stiftung.
@@ -67,10 +80,6 @@ const DidTypes = {
67
80
  * The type for Verifiable Presentation.
68
81
  */
69
82
  VerifiablePresentation: "VerifiablePresentation",
70
- /**
71
- * The type for Data Integrity Proof.
72
- */
73
- DataIntegrityProof: "DataIntegrityProof",
74
83
  /**
75
84
  * The type for Ed25519VerificationKey2020.
76
85
  */
@@ -82,7 +91,11 @@ const DidTypes = {
82
91
  /**
83
92
  * The type for LinkedDomains.
84
93
  */
85
- LinkedDomains: "LinkedDomains"
94
+ LinkedDomains: "LinkedDomains",
95
+ /**
96
+ * The type for Multikey.
97
+ */
98
+ Multikey: "Multikey"
86
99
  };
87
100
 
88
101
  /**
@@ -116,7 +129,369 @@ const DidVerificationMethodType = {
116
129
  CapabilityDelegation: "capabilityDelegation"
117
130
  };
118
131
 
132
+ // Copyright 2024 IOTA Stiftung.
133
+ // SPDX-License-Identifier: Apache-2.0.
134
+ /**
135
+ * The types for proofs.
136
+ */
137
+ // eslint-disable-next-line @typescript-eslint/naming-convention
138
+ const ProofTypes = {
139
+ /**
140
+ * The type for Data Integrity Proof.
141
+ */
142
+ DataIntegrityProof: "DataIntegrityProof",
143
+ /**
144
+ * The type for Json Web Signature 2020.
145
+ */
146
+ JsonWebSignature2020: "JsonWebSignature2020"
147
+ };
148
+
149
+ // Copyright 2024 IOTA Stiftung.
150
+ // SPDX-License-Identifier: Apache-2.0.
151
+ /**
152
+ * Helper methods for creating and verifying proofs.
153
+ * https://www.w3.org/TR/vc-di-eddsa/#eddsa-jcs-2022
154
+ */
155
+ class DataIntegrityProofSignerVerifier {
156
+ /**
157
+ * Runtime name for the class.
158
+ */
159
+ CLASS_NAME = "DataIntegrityProofSignerVerifier";
160
+ /**
161
+ * Create a proof for the given data.
162
+ * @param unsecuredDocument The data to create the proof for.
163
+ * @param unsignedProof The proof options.
164
+ * @param signKey The key to sign the proof with.
165
+ * @returns The created proof.
166
+ */
167
+ async createProof(unsecuredDocument, unsignedProof, signKey) {
168
+ core.Guards.object(this.CLASS_NAME, "unsecuredDocument", unsecuredDocument);
169
+ core.Guards.object(this.CLASS_NAME, "unsignedProof", unsignedProof);
170
+ core.Guards.object(this.CLASS_NAME, "signKey", signKey);
171
+ const rawKeys = await web.Jwk.toRaw(signKey);
172
+ if (!core.Is.uint8Array(rawKeys.privateKey)) {
173
+ throw new core.GeneralError(this.CLASS_NAME, "missingPrivateKey");
174
+ }
175
+ const combinedHash = await this.createHash(unsecuredDocument, unsignedProof);
176
+ const signature = crypto.Ed25519.sign(rawKeys.privateKey, combinedHash);
177
+ const signedProof = core.ObjectHelper.clone(unsignedProof);
178
+ signedProof.proofValue = `z${core.Converter.bytesToBase58(signature)}`;
179
+ return signedProof;
180
+ }
181
+ /**
182
+ * Verify a proof for the given data in format.
183
+ * @param securedDocument The credential to verify.
184
+ * @param signedProof The proof to verify.
185
+ * @param verifyKey The public key to verify the proof with.
186
+ * @returns True if the credential was verified.
187
+ */
188
+ async verifyProof(securedDocument, signedProof, verifyKey) {
189
+ core.Guards.object(this.CLASS_NAME, "securedDocument", securedDocument);
190
+ core.Guards.object(this.CLASS_NAME, "signedProof", signedProof);
191
+ core.Guards.object(this.CLASS_NAME, "verifyKey", verifyKey);
192
+ const rawKeys = await web.Jwk.toRaw(verifyKey);
193
+ if (!core.Is.uint8Array(rawKeys.publicKey)) {
194
+ throw new core.GeneralError(this.CLASS_NAME, "missingPublicKey");
195
+ }
196
+ if (!core.Is.stringValue(signedProof.proofValue) || !signedProof.proofValue.startsWith("z")) {
197
+ throw new core.GeneralError(this.CLASS_NAME, "missingProofValue");
198
+ }
199
+ const combinedHash = await this.createHash(securedDocument, signedProof);
200
+ return crypto.Ed25519.verify(rawKeys.publicKey, combinedHash, core.Converter.base58ToBytes(signedProof.proofValue.slice(1)));
201
+ }
202
+ /**
203
+ * Create a hash for the given data.
204
+ * @param unsecuredDocument The data to create the proof for.
205
+ * @param unsignedProof The unsigned proof.
206
+ * @returns The created hash.
207
+ */
208
+ async createHash(unsecuredDocument, unsignedProof) {
209
+ core.Guards.object(this.CLASS_NAME, "unsecuredDocument", unsecuredDocument);
210
+ core.Guards.object(this.CLASS_NAME, "unsignedProof", unsignedProof);
211
+ core.Guards.stringValue(this.CLASS_NAME, "unsignedProof.cryptosuite", unsignedProof.cryptosuite);
212
+ core.Guards.stringValue(this.CLASS_NAME, "unsignedProof.verificationMethod", unsignedProof.verificationMethod);
213
+ const unsecuredDocumentClone = core.ObjectHelper.clone(unsecuredDocument);
214
+ const proofOptionsClone = core.ObjectHelper.clone(unsignedProof);
215
+ delete unsecuredDocumentClone.proof;
216
+ delete proofOptionsClone.proofValue;
217
+ if (proofOptionsClone.cryptosuite !== DidCryptoSuites.EdDSAJcs2022) {
218
+ throw new core.GeneralError(this.CLASS_NAME, "cryptosuiteNotSupported", {
219
+ cryptoSuite: proofOptionsClone.cryptosuite
220
+ });
221
+ }
222
+ if (!core.Is.empty(unsecuredDocumentClone["@context"])) {
223
+ proofOptionsClone["@context"] = unsecuredDocumentClone["@context"];
224
+ }
225
+ const transformedDocument = core.JsonHelper.canonicalize(unsecuredDocumentClone);
226
+ const transformedDocumentHash = crypto.Sha256.sum256(core.Converter.utf8ToBytes(transformedDocument));
227
+ const transformedProofOptions = core.JsonHelper.canonicalize(proofOptionsClone);
228
+ const proofOptionsHash = crypto.Sha256.sum256(core.Converter.utf8ToBytes(transformedProofOptions));
229
+ return core.Uint8ArrayHelper.concat([proofOptionsHash, transformedDocumentHash]);
230
+ }
231
+ }
232
+
233
+ // Copyright 2024 IOTA Stiftung.
234
+ // SPDX-License-Identifier: Apache-2.0.
235
+ /**
236
+ * Helper methods for creating and verifying proofs.
237
+ */
238
+ class JsonWebSignature2020SignerVerifier {
239
+ /**
240
+ * Runtime name for the class.
241
+ */
242
+ CLASS_NAME = "JsonWebSignature2020SignerVerifier";
243
+ /**
244
+ * Create a proof for the given data.
245
+ * @param unsecuredDocument The data to create the proof for.
246
+ * @param unsignedProof The proof options.
247
+ * @param signKey The key to sign the proof with.
248
+ * @returns The created proof.
249
+ */
250
+ async createProof(unsecuredDocument, unsignedProof, signKey) {
251
+ core.Guards.object(this.CLASS_NAME, "unsecuredDocument", unsecuredDocument);
252
+ core.Guards.object(this.CLASS_NAME, "unsignedProof", unsignedProof);
253
+ core.Guards.object(this.CLASS_NAME, "signKey", signKey);
254
+ const hash = await this.createHash(unsecuredDocument, unsignedProof);
255
+ const cryptoKey = await web.Jwk.toCryptoKey(signKey);
256
+ const signature = await web.Jws.create(cryptoKey, hash);
257
+ const signedProof = core.ObjectHelper.clone(unsignedProof);
258
+ signedProof.jws = signature;
259
+ return signedProof;
260
+ }
261
+ /**
262
+ * Verify a proof for the given data in format.
263
+ * @param securedDocument The credential to verify.
264
+ * @param signedProof The proof to verify.
265
+ * @param verifyKey The public key to verify the proof with.
266
+ * @returns True if the credential was verified.
267
+ */
268
+ async verifyProof(securedDocument, signedProof, verifyKey) {
269
+ core.Guards.object(this.CLASS_NAME, "securedDocument", securedDocument);
270
+ core.Guards.object(this.CLASS_NAME, "signedProof", signedProof);
271
+ core.Guards.object(this.CLASS_NAME, "verifyKey", verifyKey);
272
+ const jws = signedProof.jws;
273
+ if (!core.Is.stringValue(jws)) {
274
+ throw new core.GeneralError(this.CLASS_NAME, "jwsMissing");
275
+ }
276
+ const hash = await this.createHash(securedDocument, signedProof);
277
+ const cryptoKey = await web.Jwk.toCryptoKey(verifyKey);
278
+ return web.Jws.verify(jws, cryptoKey, hash);
279
+ }
280
+ /**
281
+ * Create a hash for the given data.
282
+ * @param unsecuredDocument The data to create the proof for.
283
+ * @param unsignedProof The unsigned proof.
284
+ * @returns The created hash.
285
+ */
286
+ async createHash(unsecuredDocument, unsignedProof) {
287
+ core.Guards.object(this.CLASS_NAME, "unsecuredDocument", unsecuredDocument);
288
+ core.Guards.object(this.CLASS_NAME, "unsignedProof", unsignedProof);
289
+ core.Guards.stringValue(this.CLASS_NAME, "unsignedProof.verificationMethod", unsignedProof.verificationMethod);
290
+ const unsecuredDocumentClone = core.ObjectHelper.clone(unsecuredDocument);
291
+ const proofOptionsClone = core.ObjectHelper.clone(unsignedProof);
292
+ unsecuredDocumentClone["@context"] = dataJsonLd.JsonLdProcessor.combineContexts(unsecuredDocumentClone["@context"], DidContexts.ContextSecurityJws2020);
293
+ proofOptionsClone["@context"] = unsecuredDocumentClone["@context"];
294
+ delete unsecuredDocumentClone.proof;
295
+ delete proofOptionsClone.jws;
296
+ const canonizedData = await dataJsonLd.JsonLdProcessor.canonize(unsecuredDocumentClone);
297
+ const canonizedProof = await dataJsonLd.JsonLdProcessor.canonize(proofOptionsClone);
298
+ const hashedProof = crypto.Sha256.sum256(core.Converter.utf8ToBytes(canonizedProof));
299
+ const hashedData = crypto.Sha256.sum256(core.Converter.utf8ToBytes(canonizedData));
300
+ return core.Uint8ArrayHelper.concat([hashedProof, hashedData]);
301
+ }
302
+ }
303
+
304
+ // Copyright 2024 IOTA Stiftung.
305
+ // SPDX-License-Identifier: Apache-2.0.
306
+ /**
307
+ * Helper methods for multikey.
308
+ */
309
+ class MultikeyHelper {
310
+ /**
311
+ * Runtime name for the class.
312
+ */
313
+ static CLASS_NAME = "MultikeyHelper";
314
+ /**
315
+ * Convert a multikey to a JWK.
316
+ * @param multikey The multikey to convert.
317
+ * @returns The JWK.
318
+ * @throws GeneralError if the multikey is invalid.
319
+ */
320
+ static toJwk(multikey) {
321
+ core.Guards.object(MultikeyHelper.CLASS_NAME, "multikey", multikey);
322
+ const { publicKey, privateKey } = MultikeyHelper.toRaw(multikey);
323
+ return {
324
+ kty: "OKP",
325
+ crv: "Ed25519",
326
+ alg: "EdDSA",
327
+ x: core.Is.uint8Array(publicKey) ? core.Converter.bytesToBase64Url(publicKey) : undefined,
328
+ d: core.Is.uint8Array(privateKey) ? core.Converter.bytesToBase64Url(privateKey) : undefined
329
+ };
330
+ }
331
+ /**
332
+ * Convert a JWK to a Multikey.
333
+ * @param controller The controller of the multikey.
334
+ * @param id The id of the multikey.
335
+ * @param jwk The jwk to convert.
336
+ * @returns The multikey.
337
+ * @throws GeneralError if the jwk is invalid.
338
+ */
339
+ static fromJwk(controller, id, jwk) {
340
+ core.Guards.stringValue(MultikeyHelper.CLASS_NAME, "controller", controller);
341
+ core.Guards.stringValue(MultikeyHelper.CLASS_NAME, "id", id);
342
+ core.Guards.object(MultikeyHelper.CLASS_NAME, "jwk", jwk);
343
+ core.Guards.stringValue(MultikeyHelper.CLASS_NAME, "jwk.x", jwk.x);
344
+ if (jwk.kty !== "OKP") {
345
+ throw new core.GeneralError(MultikeyHelper.CLASS_NAME, "unsupportedKty", { kty: jwk.kty });
346
+ }
347
+ if (jwk.crv !== "Ed25519") {
348
+ throw new core.GeneralError(MultikeyHelper.CLASS_NAME, "unsupportedCrv", { crv: jwk.crv });
349
+ }
350
+ const publicRaw = core.Converter.base64UrlToBytes(jwk.x);
351
+ const publicKey = new Uint8Array(2 + publicRaw.length);
352
+ publicKey[0] = 0xed;
353
+ publicKey[1] = 0x01;
354
+ publicKey.set(publicRaw, 2);
355
+ const multikey = {
356
+ "@context": DidContexts.ContextControllerIdentifiers,
357
+ type: DidTypes.Multikey,
358
+ controller,
359
+ id,
360
+ publicKeyMultibase: `z${core.Converter.bytesToBase58(publicKey)}`
361
+ };
362
+ if (core.Is.stringValue(jwk.d)) {
363
+ const privateRaw = core.Converter.base64UrlToBytes(jwk.d);
364
+ const secretKey = new Uint8Array(2 + privateRaw.length);
365
+ secretKey[0] = 0x80;
366
+ secretKey[1] = 0x26;
367
+ secretKey.set(privateRaw, 2);
368
+ multikey.secretKeyMultibase = `z${core.Converter.bytesToBase58(secretKey)}`;
369
+ }
370
+ return multikey;
371
+ }
372
+ /**
373
+ * Convert a multikey to raw keys.
374
+ * @param multikey The multikey to convert.
375
+ * @returns The JWK.
376
+ * @throws GeneralError if the multikey is invalid.
377
+ */
378
+ static toRaw(multikey) {
379
+ core.Guards.object(MultikeyHelper.CLASS_NAME, "multikey", multikey);
380
+ let publicKeyRaw;
381
+ let secretKeyRaw;
382
+ if (core.Is.stringValue(multikey.publicKeyMultibase)) {
383
+ if (!multikey.publicKeyMultibase.startsWith("z")) {
384
+ throw new core.GeneralError(MultikeyHelper.CLASS_NAME, "invalidPublicKeyMultibase", {
385
+ publicKeyMultibase: multikey.publicKeyMultibase
386
+ });
387
+ }
388
+ publicKeyRaw = core.Converter.base58ToBytes(multikey.publicKeyMultibase.slice(1));
389
+ if (publicKeyRaw[0] !== 0xed || publicKeyRaw[1] !== 0x01) {
390
+ throw new core.GeneralError(MultikeyHelper.CLASS_NAME, "publicKeyMultibaseMissingHeader", {
391
+ publicKeyMultibase: multikey.publicKeyMultibase
392
+ });
393
+ }
394
+ }
395
+ if (core.Is.stringValue(multikey.secretKeyMultibase)) {
396
+ if (!multikey.secretKeyMultibase.startsWith("z")) {
397
+ throw new core.GeneralError(MultikeyHelper.CLASS_NAME, "invalidSecretKeyMultibase", {
398
+ secretKeyMultibase: multikey.secretKeyMultibase
399
+ });
400
+ }
401
+ secretKeyRaw = core.Converter.base58ToBytes(multikey.secretKeyMultibase.slice(1));
402
+ if (secretKeyRaw[0] !== 0x80 || secretKeyRaw[1] !== 0x26) {
403
+ throw new core.GeneralError(MultikeyHelper.CLASS_NAME, "publicKeyMultibaseMissingHeader", {
404
+ publicKeyMultibase: multikey.publicKeyMultibase
405
+ });
406
+ }
407
+ }
408
+ return {
409
+ publicKey: publicKeyRaw?.slice(2) ?? new Uint8Array(),
410
+ privateKey: secretKeyRaw?.slice(2, 34) ?? new Uint8Array()
411
+ };
412
+ }
413
+ }
414
+
415
+ // Copyright 2024 IOTA Stiftung.
416
+ // SPDX-License-Identifier: Apache-2.0.
417
+ /**
418
+ * Helper methods for creating and verifying proofs.
419
+ */
420
+ class ProofHelper {
421
+ /**
422
+ * Runtime name for the class.
423
+ */
424
+ static CLASS_NAME = "ProofHelper";
425
+ /**
426
+ * Create a signer verifier.
427
+ * @param proofType The type of proof to create.
428
+ * @returns The created signer verifier.
429
+ * @throws GeneralError if the proof type is not supported.
430
+ */
431
+ static createSignerVerifier(proofType) {
432
+ core.Guards.arrayOneOf(this.CLASS_NAME, "proofType", proofType, Object.values(ProofTypes));
433
+ let signerVerifier;
434
+ if (proofType === ProofTypes.DataIntegrityProof) {
435
+ signerVerifier = new DataIntegrityProofSignerVerifier();
436
+ }
437
+ else if (proofType === ProofTypes.JsonWebSignature2020) {
438
+ signerVerifier = new JsonWebSignature2020SignerVerifier();
439
+ }
440
+ if (core.Is.empty(signerVerifier)) {
441
+ throw new core.GeneralError(ProofHelper.CLASS_NAME, "unsupportedProofType", { proofType });
442
+ }
443
+ return signerVerifier;
444
+ }
445
+ /**
446
+ * Create a proof for the given data.
447
+ * @param proofType The type of proof to create.
448
+ * @param unsecuredDocument The data to create the proof for.
449
+ * @param unsignedProof The proof options.
450
+ * @param signKey The key to sign the proof with.
451
+ * @returns The created proof.
452
+ */
453
+ static async createProof(proofType, unsecuredDocument, unsignedProof, signKey) {
454
+ core.Guards.arrayOneOf(this.CLASS_NAME, "proofType", proofType, Object.values(ProofTypes));
455
+ core.Guards.object(this.CLASS_NAME, "unsecuredDocument", unsecuredDocument);
456
+ core.Guards.object(this.CLASS_NAME, "unsignedProof", unsignedProof);
457
+ core.Guards.object(this.CLASS_NAME, "signKey", signKey);
458
+ return ProofHelper.createSignerVerifier(proofType).createProof(unsecuredDocument, unsignedProof, signKey);
459
+ }
460
+ /**
461
+ * Verify a proof for the given data.
462
+ * @param securedDocument The credential to verify.
463
+ * @param signedProof The proof to verify.
464
+ * @param verifyKey The public key to verify the proof with.
465
+ * @returns True if the credential was verified.
466
+ */
467
+ static async verifyProof(securedDocument, signedProof, verifyKey) {
468
+ core.Guards.object(this.CLASS_NAME, "securedDocument", securedDocument);
469
+ core.Guards.object(this.CLASS_NAME, "signedProof", signedProof);
470
+ core.Guards.object(this.CLASS_NAME, "verifyKey", verifyKey);
471
+ if (core.Is.empty(securedDocument.proof)) {
472
+ throw new core.GeneralError(ProofHelper.CLASS_NAME, "proofMissing");
473
+ }
474
+ const proofs = core.Is.array(securedDocument.proof)
475
+ ? securedDocument.proof
476
+ : [securedDocument.proof];
477
+ let verified = false;
478
+ for (const proof of proofs) {
479
+ const signerVerifier = ProofHelper.createSignerVerifier(proof.type);
480
+ verified = await signerVerifier.verifyProof(securedDocument, proof, verifyKey);
481
+ if (!verified) {
482
+ return false;
483
+ }
484
+ }
485
+ return verified;
486
+ }
487
+ }
488
+
489
+ exports.DataIntegrityProofSignerVerifier = DataIntegrityProofSignerVerifier;
119
490
  exports.DidContexts = DidContexts;
120
491
  exports.DidCryptoSuites = DidCryptoSuites;
121
492
  exports.DidTypes = DidTypes;
122
493
  exports.DidVerificationMethodType = DidVerificationMethodType;
494
+ exports.JsonWebSignature2020SignerVerifier = JsonWebSignature2020SignerVerifier;
495
+ exports.MultikeyHelper = MultikeyHelper;
496
+ exports.ProofHelper = ProofHelper;
497
+ exports.ProofTypes = ProofTypes;