@twin.org/standards-w3c-did 0.0.2-next.8 → 0.0.3-next.1

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 (96) hide show
  1. package/dist/es/index.js +33 -0
  2. package/dist/es/index.js.map +1 -0
  3. package/dist/es/models/IDataIntegrityProof.js +2 -0
  4. package/dist/es/models/IDataIntegrityProof.js.map +1 -0
  5. package/dist/es/models/IDidCredentialSchema.js +4 -0
  6. package/dist/es/models/IDidCredentialSchema.js.map +1 -0
  7. package/dist/es/models/IDidCredentialStatus.js +4 -0
  8. package/dist/es/models/IDidCredentialStatus.js.map +1 -0
  9. package/dist/es/models/IDidDocument.js +2 -0
  10. package/dist/es/models/IDidDocument.js.map +1 -0
  11. package/dist/es/models/IDidDocumentVerificationMethod.js +2 -0
  12. package/dist/es/models/IDidDocumentVerificationMethod.js.map +1 -0
  13. package/dist/es/models/IDidLabel.js +4 -0
  14. package/dist/es/models/IDidLabel.js.map +1 -0
  15. package/dist/es/models/IDidPresentationVerification.js +2 -0
  16. package/dist/es/models/IDidPresentationVerification.js.map +1 -0
  17. package/dist/es/models/IDidService.js +4 -0
  18. package/dist/es/models/IDidService.js.map +1 -0
  19. package/dist/es/models/IDidVerifiableCredential.js +2 -0
  20. package/dist/es/models/IDidVerifiableCredential.js.map +1 -0
  21. package/dist/es/models/IDidVerifiableCredentialCommon.js +2 -0
  22. package/dist/es/models/IDidVerifiableCredentialCommon.js.map +1 -0
  23. package/dist/es/models/IDidVerifiableCredentialV1.js +2 -0
  24. package/dist/es/models/IDidVerifiableCredentialV1.js.map +1 -0
  25. package/dist/es/models/IDidVerifiableCredentialV2.js +2 -0
  26. package/dist/es/models/IDidVerifiableCredentialV2.js.map +1 -0
  27. package/dist/es/models/IDidVerifiablePresentation.js +2 -0
  28. package/dist/es/models/IDidVerifiablePresentation.js.map +1 -0
  29. package/dist/es/models/IDidVerifiablePresentationCommon.js +2 -0
  30. package/dist/es/models/IDidVerifiablePresentationCommon.js.map +1 -0
  31. package/dist/es/models/IDidVerifiablePresentationV1.js +2 -0
  32. package/dist/es/models/IDidVerifiablePresentationV1.js.map +1 -0
  33. package/dist/es/models/IDidVerifiablePresentationV2.js +2 -0
  34. package/dist/es/models/IDidVerifiablePresentationV2.js.map +1 -0
  35. package/dist/es/models/IJsonWebSignature2020Proof.js +2 -0
  36. package/dist/es/models/IJsonWebSignature2020Proof.js.map +1 -0
  37. package/dist/es/models/IMultikey.js +2 -0
  38. package/dist/es/models/IMultikey.js.map +1 -0
  39. package/dist/es/models/IProof.js +2 -0
  40. package/dist/es/models/IProof.js.map +1 -0
  41. package/dist/es/models/IProofSignerVerifier.js +2 -0
  42. package/dist/es/models/IProofSignerVerifier.js.map +1 -0
  43. package/dist/es/models/didContexts.js +41 -0
  44. package/dist/es/models/didContexts.js.map +1 -0
  45. package/dist/es/models/didCryptoSuites.js +19 -0
  46. package/dist/es/models/didCryptoSuites.js.map +1 -0
  47. package/dist/es/models/didTypes.js +33 -0
  48. package/dist/es/models/didTypes.js.map +1 -0
  49. package/dist/es/models/didVerificationMethodType.js +31 -0
  50. package/dist/es/models/didVerificationMethodType.js.map +1 -0
  51. package/dist/es/models/proofTypes.js +17 -0
  52. package/dist/es/models/proofTypes.js.map +1 -0
  53. package/dist/es/signerVerifiers/dataIntegrityProofSignerVerifier.js +90 -0
  54. package/dist/es/signerVerifiers/dataIntegrityProofSignerVerifier.js.map +1 -0
  55. package/dist/es/signerVerifiers/jsonWebSignature2020SignerVerifier.js +79 -0
  56. package/dist/es/signerVerifiers/jsonWebSignature2020SignerVerifier.js.map +1 -0
  57. package/dist/es/utils/multikeyHelper.js +114 -0
  58. package/dist/es/utils/multikeyHelper.js.map +1 -0
  59. package/dist/es/utils/proofHelper.js +106 -0
  60. package/dist/es/utils/proofHelper.js.map +1 -0
  61. package/dist/es/utils/verifiableCredentialHelper.js +31 -0
  62. package/dist/es/utils/verifiableCredentialHelper.js.map +1 -0
  63. package/dist/types/index.d.ts +30 -30
  64. package/dist/types/models/IDataIntegrityProof.d.ts +3 -3
  65. package/dist/types/models/IDidDocument.d.ts +3 -3
  66. package/dist/types/models/IDidPresentationVerification.d.ts +1 -1
  67. package/dist/types/models/IDidVerifiableCredential.d.ts +2 -2
  68. package/dist/types/models/IDidVerifiableCredentialCommon.d.ts +4 -4
  69. package/dist/types/models/IDidVerifiableCredentialV1.d.ts +2 -2
  70. package/dist/types/models/IDidVerifiableCredentialV2.d.ts +2 -2
  71. package/dist/types/models/IDidVerifiablePresentation.d.ts +2 -2
  72. package/dist/types/models/IDidVerifiablePresentationCommon.d.ts +1 -1
  73. package/dist/types/models/IDidVerifiablePresentationV1.d.ts +3 -3
  74. package/dist/types/models/IDidVerifiablePresentationV2.d.ts +3 -3
  75. package/dist/types/models/IJsonWebSignature2020Proof.d.ts +2 -2
  76. package/dist/types/models/IMultikey.d.ts +2 -2
  77. package/dist/types/models/IProof.d.ts +2 -2
  78. package/dist/types/models/IProofSignerVerifier.d.ts +1 -1
  79. package/dist/types/models/didVerificationMethodType.d.ts +1 -1
  80. package/dist/types/signerVerifiers/dataIntegrityProofSignerVerifier.d.ts +4 -4
  81. package/dist/types/signerVerifiers/jsonWebSignature2020SignerVerifier.d.ts +3 -3
  82. package/dist/types/utils/multikeyHelper.d.ts +1 -1
  83. package/dist/types/utils/proofHelper.d.ts +3 -3
  84. package/dist/types/utils/verifiableCredentialHelper.d.ts +1 -1
  85. package/docs/changelog.md +76 -0
  86. package/docs/reference/classes/DataIntegrityProofSignerVerifier.md +3 -3
  87. package/docs/reference/classes/JsonWebSignature2020SignerVerifier.md +3 -3
  88. package/docs/reference/classes/MultikeyHelper.md +3 -3
  89. package/docs/reference/classes/ProofHelper.md +2 -2
  90. package/docs/reference/classes/VerifiableCredentialHelper.md +4 -4
  91. package/docs/reference/interfaces/IDidDocumentVerificationMethod.md +2 -2
  92. package/docs/reference/interfaces/IProofSignerVerifier.md +2 -2
  93. package/locales/en.json +4 -8
  94. package/package.json +20 -8
  95. package/dist/cjs/index.cjs +0 -557
  96. package/dist/esm/index.mjs +0 -546
@@ -1,8 +1,8 @@
1
1
  import { type IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import { type IJwk } from "@twin.org/web";
3
- import type { IDataIntegrityProof } from "../models/IDataIntegrityProof";
4
- import type { IProof } from "../models/IProof";
5
- import type { IProofSignerVerifier } from "../models/IProofSignerVerifier";
3
+ import type { IDataIntegrityProof } from "../models/IDataIntegrityProof.js";
4
+ import type { IProof } from "../models/IProof.js";
5
+ import type { IProofSignerVerifier } from "../models/IProofSignerVerifier.js";
6
6
  /**
7
7
  * Helper methods for creating and verifying proofs.
8
8
  * https://www.w3.org/TR/vc-di-eddsa/#eddsa-jcs-2022
@@ -11,7 +11,7 @@ export declare class DataIntegrityProofSignerVerifier implements IProofSignerVer
11
11
  /**
12
12
  * Runtime name for the class.
13
13
  */
14
- readonly CLASS_NAME: string;
14
+ static readonly CLASS_NAME: string;
15
15
  /**
16
16
  * Create a proof for the given data.
17
17
  * @param unsecuredDocument The data to create the proof for.
@@ -1,7 +1,7 @@
1
1
  import { type IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import { type IJwk } from "@twin.org/web";
3
- import type { IJsonWebSignature2020Proof } from "../models/IJsonWebSignature2020Proof";
4
- import type { IProofSignerVerifier } from "../models/IProofSignerVerifier";
3
+ import type { IJsonWebSignature2020Proof } from "../models/IJsonWebSignature2020Proof.js";
4
+ import type { IProofSignerVerifier } from "../models/IProofSignerVerifier.js";
5
5
  /**
6
6
  * Helper methods for creating and verifying proofs.
7
7
  */
@@ -9,7 +9,7 @@ export declare class JsonWebSignature2020SignerVerifier implements IProofSignerV
9
9
  /**
10
10
  * Runtime name for the class.
11
11
  */
12
- readonly CLASS_NAME: string;
12
+ static readonly CLASS_NAME: string;
13
13
  /**
14
14
  * Create a proof for the given data.
15
15
  * @param unsecuredDocument The data to create the proof for.
@@ -1,5 +1,5 @@
1
1
  import type { IJwk } from "@twin.org/web";
2
- import type { IMultikey } from "../models/IMultikey";
2
+ import type { IMultikey } from "../models/IMultikey.js";
3
3
  /**
4
4
  * Helper methods for multikey.
5
5
  */
@@ -1,8 +1,8 @@
1
1
  import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import type { IJwk } from "@twin.org/web";
3
- import type { IProof } from "../models/IProof";
4
- import type { IProofSignerVerifier } from "../models/IProofSignerVerifier";
5
- import { ProofTypes } from "../models/proofTypes";
3
+ import type { IProof } from "../models/IProof.js";
4
+ import type { IProofSignerVerifier } from "../models/IProofSignerVerifier.js";
5
+ import { ProofTypes } from "../models/proofTypes.js";
6
6
  /**
7
7
  * Helper methods for creating and verifying proofs.
8
8
  */
@@ -1,4 +1,4 @@
1
- import type { IDidVerifiableCredential } from "../models/IDidVerifiableCredential";
1
+ import type { IDidVerifiableCredential } from "../models/IDidVerifiableCredential.js";
2
2
  /**
3
3
  * Helper methods for creating and verifying proofs.
4
4
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,81 @@
1
1
  # @twin.org/standards-w3c-did - Changelog
2
2
 
3
+ ## [0.0.3-next.1](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.3-next.0...standards-w3c-did-v0.0.3-next.1) (2025-11-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * Add additional properties to the verifiable credential data model ([#8](https://github.com/twinfoundation/standards/issues/8)) ([4b7af9c](https://github.com/twinfoundation/standards/commit/4b7af9cf892e071eb348f30737c035c0f94591b5))
9
+ * add context id features ([#64](https://github.com/twinfoundation/standards/issues/64)) ([e68bb87](https://github.com/twinfoundation/standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
10
+ * add validate-locales ([838389c](https://github.com/twinfoundation/standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
11
+ * alg usage ([#19](https://github.com/twinfoundation/standards/issues/19)) ([3946fb2](https://github.com/twinfoundation/standards/commit/3946fb2e8bd9a486ad186765d1d09361fa75786b))
12
+ * eslint migration to flat config ([648c1a1](https://github.com/twinfoundation/standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
13
+ * export additional schemas ([4201127](https://github.com/twinfoundation/standards/commit/42011276a0b9110b75557c555f859db4d7382aca))
14
+ * normalise type outputs ([0b3aed7](https://github.com/twinfoundation/standards/commit/0b3aed7df0802cd609423bbd7fda6bde601d3ceb))
15
+ * separate DID VC v1 and v2 properties ([935cf0a](https://github.com/twinfoundation/standards/commit/935cf0a9cdee28c6f2d5480f1f2de126c838caf5))
16
+ * separate DID VP v1 and v2 properties ([335a3c2](https://github.com/twinfoundation/standards/commit/335a3c2543ca5dbaae785568617ea85c0a8269ad))
17
+ * update framework core ([58c0c3d](https://github.com/twinfoundation/standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
18
+ * update to latest JSON schema spec ([7a23930](https://github.com/twinfoundation/standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
19
+ * update ts-to-schema generation ([ba4e76d](https://github.com/twinfoundation/standards/commit/ba4e76d677556a1817092f8079d4cce67dee94bc))
20
+ * update ts-to-schema generation ([0905daa](https://github.com/twinfoundation/standards/commit/0905daa4a344ed35fc37b7f12fcf9ce9d34e4bd6))
21
+ * use shared store mechanism ([#11](https://github.com/twinfoundation/standards/issues/11)) ([96fa237](https://github.com/twinfoundation/standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
22
+
23
+ ## [0.0.2-next.16](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.15...standards-w3c-did-v0.0.2-next.16) (2025-10-09)
24
+
25
+
26
+ ### Miscellaneous Chores
27
+
28
+ * **standards-w3c-did:** Synchronize repo versions
29
+
30
+ ## [0.0.2-next.15](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.14...standards-w3c-did-v0.0.2-next.15) (2025-10-09)
31
+
32
+
33
+ ### Features
34
+
35
+ * add validate-locales ([838389c](https://github.com/twinfoundation/standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
36
+
37
+ ## [0.0.2-next.14](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.13...standards-w3c-did-v0.0.2-next.14) (2025-10-02)
38
+
39
+
40
+ ### Miscellaneous Chores
41
+
42
+ * **standards-w3c-did:** Synchronize repo versions
43
+
44
+ ## [0.0.2-next.13](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.12...standards-w3c-did-v0.0.2-next.13) (2025-09-22)
45
+
46
+
47
+ ### Miscellaneous Chores
48
+
49
+ * **standards-w3c-did:** Synchronize repo versions
50
+
51
+ ## [0.0.2-next.12](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.11...standards-w3c-did-v0.0.2-next.12) (2025-09-16)
52
+
53
+
54
+ ### Miscellaneous Chores
55
+
56
+ * **standards-w3c-did:** Synchronize repo versions
57
+
58
+ ## [0.0.2-next.11](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.10...standards-w3c-did-v0.0.2-next.11) (2025-09-16)
59
+
60
+
61
+ ### Miscellaneous Chores
62
+
63
+ * **standards-w3c-did:** Synchronize repo versions
64
+
65
+ ## [0.0.2-next.10](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.9...standards-w3c-did-v0.0.2-next.10) (2025-09-16)
66
+
67
+
68
+ ### Miscellaneous Chores
69
+
70
+ * **standards-w3c-did:** Synchronize repo versions
71
+
72
+ ## [0.0.2-next.9](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.8...standards-w3c-did-v0.0.2-next.9) (2025-09-15)
73
+
74
+
75
+ ### Miscellaneous Chores
76
+
77
+ * **standards-w3c-did:** Synchronize repo versions
78
+
3
79
  ## [0.0.2-next.8](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.2-next.7...standards-w3c-did-v0.0.2-next.8) (2025-09-15)
4
80
 
5
81
 
@@ -21,7 +21,7 @@ https://www.w3.org/TR/vc-di-eddsa/#eddsa-jcs-2022
21
21
 
22
22
  ### CLASS\_NAME
23
23
 
24
- > `readonly` **CLASS\_NAME**: `string`
24
+ > `readonly` `static` **CLASS\_NAME**: `string`
25
25
 
26
26
  Runtime name for the class.
27
27
 
@@ -49,7 +49,7 @@ The proof options.
49
49
 
50
50
  ##### signKey
51
51
 
52
- `IJwk`
52
+ `JWK`
53
53
 
54
54
  The key to sign the proof with.
55
55
 
@@ -87,7 +87,7 @@ The proof to verify.
87
87
 
88
88
  ##### verifyKey
89
89
 
90
- `IJwk`
90
+ `JWK`
91
91
 
92
92
  The public key to verify the proof with.
93
93
 
@@ -20,7 +20,7 @@ Helper methods for creating and verifying proofs.
20
20
 
21
21
  ### CLASS\_NAME
22
22
 
23
- > `readonly` **CLASS\_NAME**: `string`
23
+ > `readonly` `static` **CLASS\_NAME**: `string`
24
24
 
25
25
  Runtime name for the class.
26
26
 
@@ -48,7 +48,7 @@ The proof options.
48
48
 
49
49
  ##### signKey
50
50
 
51
- `IJwk`
51
+ `JWK`
52
52
 
53
53
  The key to sign the proof with.
54
54
 
@@ -86,7 +86,7 @@ The proof to verify.
86
86
 
87
87
  ##### verifyKey
88
88
 
89
- `IJwk`
89
+ `JWK`
90
90
 
91
91
  The public key to verify the proof with.
92
92
 
@@ -24,7 +24,7 @@ Runtime name for the class.
24
24
 
25
25
  ### toJwk()
26
26
 
27
- > `static` **toJwk**(`multikey`): `IJwk`
27
+ > `static` **toJwk**(`multikey`): `JWK`
28
28
 
29
29
  Convert a multikey to a JWK.
30
30
 
@@ -38,7 +38,7 @@ The multikey to convert.
38
38
 
39
39
  #### Returns
40
40
 
41
- `IJwk`
41
+ `JWK`
42
42
 
43
43
  The JWK.
44
44
 
@@ -70,7 +70,7 @@ The id of the multikey.
70
70
 
71
71
  ##### jwk
72
72
 
73
- `IJwk`
73
+ `JWK`
74
74
 
75
75
  The jwk to convert.
76
76
 
@@ -76,7 +76,7 @@ The proof options.
76
76
 
77
77
  ##### signKey
78
78
 
79
- `IJwk`
79
+ `JWK`
80
80
 
81
81
  The key to sign the proof with.
82
82
 
@@ -110,7 +110,7 @@ The proof to verify.
110
110
 
111
111
  ##### verifyKey
112
112
 
113
- `IJwk`
113
+ `JWK`
114
114
 
115
115
  The public key to verify the proof with.
116
116
 
@@ -24,7 +24,7 @@ Runtime name for the class.
24
24
 
25
25
  ### getValidUntil()
26
26
 
27
- > `static` **getValidUntil**(`verifiableCredential`): `undefined` \| `string`
27
+ > `static` **getValidUntil**(`verifiableCredential`): `string` \| `undefined`
28
28
 
29
29
  Get the valid until date from a verifiable credential.
30
30
 
@@ -38,7 +38,7 @@ The verifiable credential to extract the expiration date from.
38
38
 
39
39
  #### Returns
40
40
 
41
- `undefined` \| `string`
41
+ `string` \| `undefined`
42
42
 
43
43
  The expiration date, if available.
44
44
 
@@ -46,7 +46,7 @@ The expiration date, if available.
46
46
 
47
47
  ### getValidFrom()
48
48
 
49
- > `static` **getValidFrom**(`verifiableCredential`): `undefined` \| `string`
49
+ > `static` **getValidFrom**(`verifiableCredential`): `string` \| `undefined`
50
50
 
51
51
  Get the valid from from a verifiable credential.
52
52
 
@@ -60,6 +60,6 @@ The verifiable credential to extract the issuance date from.
60
60
 
61
61
  #### Returns
62
62
 
63
- `undefined` \| `string`
63
+ `string` \| `undefined`
64
64
 
65
65
  The issuance date, if available.
@@ -8,7 +8,7 @@ Interface describing a DID document verification method.
8
8
 
9
9
  ## Indexable
10
10
 
11
- \[`key`: `string`\]: `undefined` \| `null` \| `string` \| `number` \| `boolean` \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `string`[] \| `IJsonLdJsonObject` \| `IJsonLdJsonObject`[] \| \{\[`key`: `string`\]: `string`; \}
11
+ \[`key`: `string`\]: `string` \| `number` \| `boolean` \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `string`[] \| `IJsonLdJsonObject` \| `IJsonLdJsonObject`[] \| \{\[`key`: `string`\]: `string`; \} \| `null` \| `undefined`
12
12
 
13
13
  ## Properties
14
14
 
@@ -47,7 +47,7 @@ Spec https://datatracker.ietf.org/doc/html/draft-multiformats-multibase-03 .
47
47
 
48
48
  ### publicKeyJwk?
49
49
 
50
- > `optional` **publicKeyJwk**: `IJwk` & `IJsonLdNodeObject`
50
+ > `optional` **publicKeyJwk**: `JWK` & `IJsonLdNodeObject`
51
51
 
52
52
  The public key for the entry as a JWK.
53
53
  Spec https://datatracker.ietf.org/doc/html/rfc7517 .
@@ -26,7 +26,7 @@ The proof options.
26
26
 
27
27
  ##### signKey
28
28
 
29
- `IJwk`
29
+ `JWK`
30
30
 
31
31
  The key to sign the proof with.
32
32
 
@@ -60,7 +60,7 @@ The proof to verify.
60
60
 
61
61
  ##### verifyKey
62
62
 
63
- `IJwk`
63
+ `JWK`
64
64
 
65
65
  The public key to verify the proof with.
66
66
 
package/locales/en.json CHANGED
@@ -1,19 +1,15 @@
1
1
  {
2
2
  "error": {
3
3
  "proofHelper": {
4
- "unsupportedProofType": "Proof type \"{proofType}\" not supported.",
5
- "proofMissing": "Proof is missing."
4
+ "unsupportedProofType": "Proof type \"{proofType}\" not supported."
6
5
  },
7
6
  "jsonWebSignature2020SignerVerifier": {
8
- "missingPrivateKey": "Private key is missing.",
9
- "missingPublicKey": "Public key is missing.",
10
- "missingProofValue": "Proof value is missing."
7
+ "missingJws": "JWS is missing from proof."
11
8
  },
12
9
  "dataIntegrityProofSignerVerifier": {
13
- "cryptosuiteNotSupported": "Cryptosuite \"{cryptosuite}\" is not supported.",
10
+ "cryptosuiteNotSupported": "Cryptosuite \"{cryptoSuite}\" is not supported.",
14
11
  "missingPrivateKey": "Private key is missing.",
15
- "missingPublicKey": "Public key is missing.",
16
- "missingProofValue": "Proof value is missing."
12
+ "missingPublicKey": "Public key is missing."
17
13
  },
18
14
  "multikeyHelper": {
19
15
  "invalidPublicKeyMultibase": "Public key multibase \"{publicKeyMultibase}\" is invalid.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-w3c-did",
3
- "version": "0.0.2-next.8",
3
+ "version": "0.0.3-next.1",
4
4
  "description": "Models which define the structure of W3C DID Standard",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,22 +20,34 @@
20
20
  "@twin.org/nameof": "next",
21
21
  "@twin.org/web": "next"
22
22
  },
23
- "main": "./dist/cjs/index.cjs",
24
- "module": "./dist/esm/index.mjs",
23
+ "main": "./dist/es/index.js",
25
24
  "types": "./dist/types/index.d.ts",
26
25
  "exports": {
27
26
  ".": {
28
27
  "types": "./dist/types/index.d.ts",
29
- "require": "./dist/cjs/index.cjs",
30
- "import": "./dist/esm/index.mjs"
28
+ "import": "./dist/es/index.js",
29
+ "default": "./dist/es/index.js"
31
30
  },
32
31
  "./locales/*.json": "./locales/*.json"
33
32
  },
34
33
  "files": [
35
- "dist/cjs",
36
- "dist/esm",
34
+ "dist/es",
37
35
  "dist/types",
38
36
  "locales",
39
37
  "docs"
40
- ]
38
+ ],
39
+ "keywords": [
40
+ "twin",
41
+ "trade",
42
+ "iota",
43
+ "framework",
44
+ "blockchain",
45
+ "standards",
46
+ "schema",
47
+ "specification"
48
+ ],
49
+ "bugs": {
50
+ "url": "git+https://github.com/twinfoundation/standards/issues"
51
+ },
52
+ "homepage": "https://twindev.org"
41
53
  }