@twin.org/crypto 0.0.2-next.9 → 0.0.3-next.2

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 (103) hide show
  1. package/dist/es/address/bech32.js +72 -0
  2. package/dist/es/address/bech32.js.map +1 -0
  3. package/dist/es/address/bip44.js +113 -0
  4. package/dist/es/address/bip44.js.map +1 -0
  5. package/dist/es/ciphers/chaCha20Poly1305.js +48 -0
  6. package/dist/es/ciphers/chaCha20Poly1305.js.map +1 -0
  7. package/dist/es/curves/ed25519.js +114 -0
  8. package/dist/es/curves/ed25519.js.map +1 -0
  9. package/dist/es/curves/secp256k1.js +82 -0
  10. package/dist/es/curves/secp256k1.js.map +1 -0
  11. package/dist/es/curves/x25519.js +34 -0
  12. package/dist/es/curves/x25519.js.map +1 -0
  13. package/dist/es/curves/zip215.js +33 -0
  14. package/dist/es/curves/zip215.js.map +1 -0
  15. package/dist/es/hashes/blake2b.js +90 -0
  16. package/dist/es/hashes/blake2b.js.map +1 -0
  17. package/dist/es/hashes/blake3.js +76 -0
  18. package/dist/es/hashes/blake3.js.map +1 -0
  19. package/dist/es/hashes/hmacSha1.js +56 -0
  20. package/dist/es/hashes/hmacSha1.js.map +1 -0
  21. package/dist/es/hashes/hmacSha256.js +83 -0
  22. package/dist/es/hashes/hmacSha256.js.map +1 -0
  23. package/dist/es/hashes/hmacSha512.js +132 -0
  24. package/dist/es/hashes/hmacSha512.js.map +1 -0
  25. package/dist/es/hashes/pbkdf2.js +45 -0
  26. package/dist/es/hashes/pbkdf2.js.map +1 -0
  27. package/dist/es/hashes/sha1.js +52 -0
  28. package/dist/es/hashes/sha1.js.map +1 -0
  29. package/dist/es/hashes/sha256.js +75 -0
  30. package/dist/es/hashes/sha256.js.map +1 -0
  31. package/dist/es/hashes/sha3.js +122 -0
  32. package/dist/es/hashes/sha3.js.map +1 -0
  33. package/dist/es/hashes/sha512.js +118 -0
  34. package/dist/es/hashes/sha512.js.map +1 -0
  35. package/dist/es/helpers/pemHelper.js +42 -0
  36. package/dist/es/helpers/pemHelper.js.map +1 -0
  37. package/dist/es/index.js +29 -0
  38. package/dist/es/index.js.map +1 -0
  39. package/dist/es/keys/bip32Path.js +72 -0
  40. package/dist/es/keys/bip32Path.js.map +1 -0
  41. package/dist/es/keys/bip39.js +83 -0
  42. package/dist/es/keys/bip39.js.map +1 -0
  43. package/dist/es/keys/slip0010.js +83 -0
  44. package/dist/es/keys/slip0010.js.map +1 -0
  45. package/dist/es/models/keyType.js +17 -0
  46. package/dist/es/models/keyType.js.map +1 -0
  47. package/dist/es/otp/hotp.js +27 -0
  48. package/dist/es/otp/hotp.js.map +1 -0
  49. package/dist/es/otp/totp.js +75 -0
  50. package/dist/es/otp/totp.js.map +1 -0
  51. package/dist/es/passwords/passwordGenerator.js +28 -0
  52. package/dist/es/passwords/passwordGenerator.js.map +1 -0
  53. package/dist/es/passwords/passwordValidator.js +81 -0
  54. package/dist/es/passwords/passwordValidator.js.map +1 -0
  55. package/dist/types/address/bech32.d.ts +4 -0
  56. package/dist/types/address/bip44.d.ts +6 -2
  57. package/dist/types/ciphers/chaCha20Poly1305.d.ts +4 -0
  58. package/dist/types/curves/ed25519.d.ts +4 -0
  59. package/dist/types/curves/secp256k1.d.ts +4 -0
  60. package/dist/types/curves/x25519.d.ts +4 -0
  61. package/dist/types/curves/zip215.d.ts +4 -0
  62. package/dist/types/hashes/blake2b.d.ts +4 -0
  63. package/dist/types/hashes/blake3.d.ts +4 -0
  64. package/dist/types/hashes/hmacSha1.d.ts +4 -0
  65. package/dist/types/hashes/hmacSha256.d.ts +4 -0
  66. package/dist/types/hashes/hmacSha512.d.ts +4 -0
  67. package/dist/types/hashes/pbkdf2.d.ts +4 -0
  68. package/dist/types/hashes/sha1.d.ts +4 -0
  69. package/dist/types/hashes/sha256.d.ts +4 -0
  70. package/dist/types/hashes/sha3.d.ts +4 -0
  71. package/dist/types/hashes/sha512.d.ts +4 -0
  72. package/dist/types/helpers/pemHelper.d.ts +4 -0
  73. package/dist/types/index.d.ts +26 -26
  74. package/dist/types/keys/bip39.d.ts +4 -0
  75. package/dist/types/keys/slip0010.d.ts +6 -2
  76. package/dist/types/otp/hotp.d.ts +4 -0
  77. package/docs/changelog.md +286 -0
  78. package/docs/reference/classes/Bech32.md +8 -0
  79. package/docs/reference/classes/Bip39.md +8 -0
  80. package/docs/reference/classes/Bip44.md +8 -0
  81. package/docs/reference/classes/Blake2b.md +8 -0
  82. package/docs/reference/classes/Blake3.md +8 -0
  83. package/docs/reference/classes/ChaCha20Poly1305.md +8 -0
  84. package/docs/reference/classes/Ed25519.md +8 -0
  85. package/docs/reference/classes/HmacSha1.md +8 -0
  86. package/docs/reference/classes/HmacSha256.md +8 -0
  87. package/docs/reference/classes/HmacSha512.md +8 -0
  88. package/docs/reference/classes/Hotp.md +8 -0
  89. package/docs/reference/classes/Pbkdf2.md +8 -0
  90. package/docs/reference/classes/PemHelper.md +8 -0
  91. package/docs/reference/classes/Secp256k1.md +8 -0
  92. package/docs/reference/classes/Sha1.md +8 -0
  93. package/docs/reference/classes/Sha256.md +8 -0
  94. package/docs/reference/classes/Sha3.md +8 -0
  95. package/docs/reference/classes/Sha512.md +8 -0
  96. package/docs/reference/classes/Slip0010.md +8 -0
  97. package/docs/reference/classes/Totp.md +2 -2
  98. package/docs/reference/classes/X25519.md +8 -0
  99. package/docs/reference/classes/Zip215.md +8 -0
  100. package/locales/en.json +9 -28
  101. package/package.json +29 -16
  102. package/dist/cjs/index.cjs +0 -1876
  103. package/dist/esm/index.mjs +0 -1829
@@ -2,6 +2,10 @@
2
2
  * Implementation of Bip39 for mnemonic generation.
3
3
  */
4
4
  export declare class Bip39 {
5
+ /**
6
+ * Runtime name for the class.
7
+ */
8
+ static readonly CLASS_NAME: string;
5
9
  /**
6
10
  * Generate a random mnemonic.
7
11
  * @param strength The strength of the mnemonic to generate, defaults to 256.
@@ -1,10 +1,14 @@
1
- import type { Bip32Path } from "./bip32Path";
2
- import { KeyType } from "../models/keyType";
1
+ import type { Bip32Path } from "./bip32Path.js";
2
+ import { KeyType } from "../models/keyType.js";
3
3
  /**
4
4
  * Class to help with slip0010 key derivation
5
5
  * https://github.com/satoshilabs/slips/blob/master/slip-0010.md.
6
6
  */
7
7
  export declare class Slip0010 {
8
+ /**
9
+ * Runtime name for the class.
10
+ */
11
+ static readonly CLASS_NAME: string;
8
12
  /**
9
13
  * Get the master key from the seed.
10
14
  * @param seed The seed to generate the master key from.
@@ -3,6 +3,10 @@
3
3
  * Implementation of https://datatracker.ietf.org/doc/html/rfc4226 .
4
4
  */
5
5
  export declare class Hotp {
6
+ /**
7
+ * Runtime name for the class.
8
+ */
9
+ static readonly CLASS_NAME: string;
6
10
  /**
7
11
  * Generate a counter based One Time Password.
8
12
  * @param key Key for the one time password.
package/docs/changelog.md CHANGED
@@ -1,5 +1,291 @@
1
1
  # @twin.org/crypto - Changelog
2
2
 
3
+ ## [0.0.3-next.2](https://github.com/twinfoundation/framework/compare/crypto-v0.0.3-next.1...crypto-v0.0.3-next.2) (2025-11-12)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **crypto:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/core bumped from 0.0.3-next.1 to 0.0.3-next.2
16
+ * @twin.org/nameof bumped from 0.0.3-next.1 to 0.0.3-next.2
17
+ * devDependencies
18
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.1 to 0.0.3-next.2
19
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.1 to 0.0.3-next.2
20
+ * @twin.org/validate-locales bumped from 0.0.3-next.1 to 0.0.3-next.2
21
+
22
+ ## [0.0.3-next.1](https://github.com/twinfoundation/framework/compare/crypto-v0.0.3-next.0...crypto-v0.0.3-next.1) (2025-11-10)
23
+
24
+
25
+ ### Features
26
+
27
+ * add context id features ([#206](https://github.com/twinfoundation/framework/issues/206)) ([ef0d4ee](https://github.com/twinfoundation/framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
28
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
29
+ * add mnemonic validation ([4b43491](https://github.com/twinfoundation/framework/commit/4b43491cf04bb626c27faea66e5c74b3971b111d))
30
+ * add rsa cipher support ([7af6cc6](https://github.com/twinfoundation/framework/commit/7af6cc67512d3363bd4a2f2e87bd7733c2800147))
31
+ * add RSA support for public key components ([7126259](https://github.com/twinfoundation/framework/commit/7126259103b758c291e52a8a03818eb822d1aad1))
32
+ * additional RSA methods and async ([1fceee2](https://github.com/twinfoundation/framework/commit/1fceee2d1248a24a7620846025fcf906495c07f4))
33
+ * change method accessibility ([c1b77fc](https://github.com/twinfoundation/framework/commit/c1b77fcfb61c092a01c97aebb2fe2dc2bbaa221b))
34
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
35
+ * locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
36
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
37
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
38
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
39
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
40
+
41
+
42
+ ### Dependencies
43
+
44
+ * The following workspace dependencies were updated
45
+ * dependencies
46
+ * @twin.org/core bumped from 0.0.3-next.0 to 0.0.3-next.1
47
+ * @twin.org/nameof bumped from 0.0.3-next.0 to 0.0.3-next.1
48
+ * devDependencies
49
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.0 to 0.0.3-next.1
50
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.0 to 0.0.3-next.1
51
+ * @twin.org/validate-locales bumped from 0.0.3-next.0 to 0.0.3-next.1
52
+
53
+ ## [0.0.2-next.22](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.21...crypto-v0.0.2-next.22) (2025-10-10)
54
+
55
+
56
+ ### Miscellaneous Chores
57
+
58
+ * **crypto:** Synchronize repo versions
59
+
60
+
61
+ ### Dependencies
62
+
63
+ * The following workspace dependencies were updated
64
+ * dependencies
65
+ * @twin.org/core bumped from 0.0.2-next.21 to 0.0.2-next.22
66
+ * @twin.org/nameof bumped from 0.0.2-next.21 to 0.0.2-next.22
67
+ * devDependencies
68
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.21 to 0.0.2-next.22
69
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.21 to 0.0.2-next.22
70
+ * @twin.org/validate-locales bumped from 0.0.2-next.21 to 0.0.2-next.22
71
+
72
+ ## [0.0.2-next.21](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.20...crypto-v0.0.2-next.21) (2025-10-09)
73
+
74
+
75
+ ### Features
76
+
77
+ * locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
78
+
79
+
80
+ ### Dependencies
81
+
82
+ * The following workspace dependencies were updated
83
+ * dependencies
84
+ * @twin.org/core bumped from 0.0.2-next.20 to 0.0.2-next.21
85
+ * @twin.org/nameof bumped from 0.0.2-next.20 to 0.0.2-next.21
86
+ * devDependencies
87
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.20 to 0.0.2-next.21
88
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.20 to 0.0.2-next.21
89
+ * @twin.org/validate-locales bumped from 0.0.2-next.20 to 0.0.2-next.21
90
+
91
+ ## [0.0.2-next.20](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.19...crypto-v0.0.2-next.20) (2025-10-02)
92
+
93
+
94
+ ### Miscellaneous Chores
95
+
96
+ * **crypto:** Synchronize repo versions
97
+
98
+
99
+ ### Dependencies
100
+
101
+ * The following workspace dependencies were updated
102
+ * dependencies
103
+ * @twin.org/core bumped from 0.0.2-next.19 to 0.0.2-next.20
104
+ * @twin.org/nameof bumped from 0.0.2-next.19 to 0.0.2-next.20
105
+ * devDependencies
106
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.19 to 0.0.2-next.20
107
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.19 to 0.0.2-next.20
108
+
109
+ ## [0.0.2-next.19](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.18...crypto-v0.0.2-next.19) (2025-09-30)
110
+
111
+
112
+ ### Miscellaneous Chores
113
+
114
+ * **crypto:** Synchronize repo versions
115
+
116
+
117
+ ### Dependencies
118
+
119
+ * The following workspace dependencies were updated
120
+ * dependencies
121
+ * @twin.org/core bumped from 0.0.2-next.18 to 0.0.2-next.19
122
+ * @twin.org/nameof bumped from 0.0.2-next.18 to 0.0.2-next.19
123
+ * devDependencies
124
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.18 to 0.0.2-next.19
125
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.18 to 0.0.2-next.19
126
+
127
+ ## [0.0.2-next.18](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.17...crypto-v0.0.2-next.18) (2025-09-29)
128
+
129
+
130
+ ### Miscellaneous Chores
131
+
132
+ * **crypto:** Synchronize repo versions
133
+
134
+
135
+ ### Dependencies
136
+
137
+ * The following workspace dependencies were updated
138
+ * dependencies
139
+ * @twin.org/core bumped from 0.0.2-next.17 to 0.0.2-next.18
140
+ * @twin.org/nameof bumped from 0.0.2-next.17 to 0.0.2-next.18
141
+ * devDependencies
142
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.17 to 0.0.2-next.18
143
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.17 to 0.0.2-next.18
144
+
145
+ ## [0.0.2-next.17](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.16...crypto-v0.0.2-next.17) (2025-09-29)
146
+
147
+
148
+ ### Miscellaneous Chores
149
+
150
+ * **crypto:** Synchronize repo versions
151
+
152
+
153
+ ### Dependencies
154
+
155
+ * The following workspace dependencies were updated
156
+ * dependencies
157
+ * @twin.org/core bumped from 0.0.2-next.16 to 0.0.2-next.17
158
+ * @twin.org/nameof bumped from 0.0.2-next.16 to 0.0.2-next.17
159
+ * devDependencies
160
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.16 to 0.0.2-next.17
161
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.16 to 0.0.2-next.17
162
+
163
+ ## [0.0.2-next.16](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.15...crypto-v0.0.2-next.16) (2025-09-28)
164
+
165
+
166
+ ### Miscellaneous Chores
167
+
168
+ * **crypto:** Synchronize repo versions
169
+
170
+
171
+ ### Dependencies
172
+
173
+ * The following workspace dependencies were updated
174
+ * dependencies
175
+ * @twin.org/core bumped from 0.0.2-next.15 to 0.0.2-next.16
176
+ * @twin.org/nameof bumped from 0.0.2-next.15 to 0.0.2-next.16
177
+ * devDependencies
178
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.15 to 0.0.2-next.16
179
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.15 to 0.0.2-next.16
180
+
181
+ ## [0.0.2-next.15](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.14...crypto-v0.0.2-next.15) (2025-09-22)
182
+
183
+
184
+ ### Miscellaneous Chores
185
+
186
+ * **crypto:** Synchronize repo versions
187
+
188
+
189
+ ### Dependencies
190
+
191
+ * The following workspace dependencies were updated
192
+ * dependencies
193
+ * @twin.org/core bumped from 0.0.2-next.14 to 0.0.2-next.15
194
+ * @twin.org/nameof bumped from 0.0.2-next.14 to 0.0.2-next.15
195
+ * devDependencies
196
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.14 to 0.0.2-next.15
197
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.14 to 0.0.2-next.15
198
+
199
+ ## [0.0.2-next.14](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.13...crypto-v0.0.2-next.14) (2025-09-22)
200
+
201
+
202
+ ### Miscellaneous Chores
203
+
204
+ * **crypto:** Synchronize repo versions
205
+
206
+
207
+ ### Dependencies
208
+
209
+ * The following workspace dependencies were updated
210
+ * dependencies
211
+ * @twin.org/core bumped from 0.0.2-next.13 to 0.0.2-next.14
212
+ * @twin.org/nameof bumped from 0.0.2-next.13 to 0.0.2-next.14
213
+ * devDependencies
214
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.13 to 0.0.2-next.14
215
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.13 to 0.0.2-next.14
216
+
217
+ ## [0.0.2-next.13](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.12...crypto-v0.0.2-next.13) (2025-09-22)
218
+
219
+
220
+ ### Miscellaneous Chores
221
+
222
+ * **crypto:** Synchronize repo versions
223
+
224
+
225
+ ### Dependencies
226
+
227
+ * The following workspace dependencies were updated
228
+ * dependencies
229
+ * @twin.org/core bumped from 0.0.2-next.12 to 0.0.2-next.13
230
+ * @twin.org/nameof bumped from 0.0.2-next.12 to 0.0.2-next.13
231
+ * devDependencies
232
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.12 to 0.0.2-next.13
233
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.12 to 0.0.2-next.13
234
+
235
+ ## [0.0.2-next.12](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.11...crypto-v0.0.2-next.12) (2025-09-15)
236
+
237
+
238
+ ### Miscellaneous Chores
239
+
240
+ * **crypto:** Synchronize repo versions
241
+
242
+
243
+ ### Dependencies
244
+
245
+ * The following workspace dependencies were updated
246
+ * dependencies
247
+ * @twin.org/core bumped from 0.0.2-next.11 to 0.0.2-next.12
248
+ * @twin.org/nameof bumped from 0.0.2-next.11 to 0.0.2-next.12
249
+ * devDependencies
250
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.11 to 0.0.2-next.12
251
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.11 to 0.0.2-next.12
252
+
253
+ ## [0.0.2-next.11](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.10...crypto-v0.0.2-next.11) (2025-09-15)
254
+
255
+
256
+ ### Miscellaneous Chores
257
+
258
+ * **crypto:** Synchronize repo versions
259
+
260
+
261
+ ### Dependencies
262
+
263
+ * The following workspace dependencies were updated
264
+ * dependencies
265
+ * @twin.org/core bumped from 0.0.2-next.10 to 0.0.2-next.11
266
+ * @twin.org/nameof bumped from 0.0.2-next.10 to 0.0.2-next.11
267
+ * devDependencies
268
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.10 to 0.0.2-next.11
269
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.10 to 0.0.2-next.11
270
+
271
+ ## [0.0.2-next.10](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.9...crypto-v0.0.2-next.10) (2025-09-11)
272
+
273
+
274
+ ### Miscellaneous Chores
275
+
276
+ * **crypto:** Synchronize repo versions
277
+
278
+
279
+ ### Dependencies
280
+
281
+ * The following workspace dependencies were updated
282
+ * dependencies
283
+ * @twin.org/core bumped from 0.0.2-next.9 to 0.0.2-next.10
284
+ * @twin.org/nameof bumped from 0.0.2-next.9 to 0.0.2-next.10
285
+ * devDependencies
286
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
287
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.9 to 0.0.2-next.10
288
+
3
289
  ## [0.0.2-next.9](https://github.com/twinfoundation/framework/compare/crypto-v0.0.2-next.8...crypto-v0.0.2-next.9) (2025-09-08)
4
290
 
5
291
 
@@ -12,6 +12,14 @@ Bech32 encoding and decoding.
12
12
 
13
13
  `Bech32`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### encode()
@@ -12,6 +12,14 @@ Implementation of Bip39 for mnemonic generation.
12
12
 
13
13
  `Bip39`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### randomMnemonic()
@@ -12,6 +12,14 @@ Implementation of Bip44 for address generation.
12
12
 
13
13
  `Bip44`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### keyPair()
@@ -52,6 +52,14 @@ Blake2b 256.
52
52
 
53
53
  Blake2b 512.
54
54
 
55
+ ***
56
+
57
+ ### CLASS\_NAME
58
+
59
+ > `readonly` `static` **CLASS\_NAME**: `string`
60
+
61
+ Runtime name for the class.
62
+
55
63
  ## Methods
56
64
 
57
65
  ### sum160()
@@ -44,6 +44,14 @@ Blake3 256.
44
44
 
45
45
  Blake3 512.
46
46
 
47
+ ***
48
+
49
+ ### CLASS\_NAME
50
+
51
+ > `readonly` `static` **CLASS\_NAME**: `string`
52
+
53
+ Runtime name for the class.
54
+
47
55
  ## Methods
48
56
 
49
57
  ### sum256()
@@ -34,6 +34,14 @@ The additional authenticated data.
34
34
 
35
35
  `ChaCha20Poly1305`
36
36
 
37
+ ## Properties
38
+
39
+ ### CLASS\_NAME
40
+
41
+ > `readonly` `static` **CLASS\_NAME**: `string`
42
+
43
+ Runtime name for the class.
44
+
37
45
  ## Methods
38
46
 
39
47
  ### encrypt()
@@ -28,6 +28,14 @@ Private Key Size is the size, in bytes, of private keys as used in this package.
28
28
 
29
29
  Public Key Size is the size, in bytes, of public keys as used in this package.
30
30
 
31
+ ***
32
+
33
+ ### CLASS\_NAME
34
+
35
+ > `readonly` `static` **CLASS\_NAME**: `string`
36
+
37
+ Runtime name for the class.
38
+
31
39
  ## Methods
32
40
 
33
41
  ### publicKeyFromPrivateKey()
@@ -22,6 +22,14 @@ The key for the hmac.
22
22
 
23
23
  `HmacSha1`
24
24
 
25
+ ## Properties
26
+
27
+ ### CLASS\_NAME
28
+
29
+ > `readonly` `static` **CLASS\_NAME**: `string`
30
+
31
+ Runtime name for the class.
32
+
25
33
  ## Methods
26
34
 
27
35
  ### sum()
@@ -44,6 +44,14 @@ Sha256 256.
44
44
 
45
45
  Sha256 224.
46
46
 
47
+ ***
48
+
49
+ ### CLASS\_NAME
50
+
51
+ > `readonly` `static` **CLASS\_NAME**: `string`
52
+
53
+ Runtime name for the class.
54
+
47
55
  ## Methods
48
56
 
49
57
  ### sum224()
@@ -60,6 +60,14 @@ Sha512 384.
60
60
 
61
61
  Sha512 512.
62
62
 
63
+ ***
64
+
65
+ ### CLASS\_NAME
66
+
67
+ > `readonly` `static` **CLASS\_NAME**: `string`
68
+
69
+ Runtime name for the class.
70
+
63
71
  ## Methods
64
72
 
65
73
  ### sum512()
@@ -13,6 +13,14 @@ Implementation of https://datatracker.ietf.org/doc/html/rfc4226 .
13
13
 
14
14
  `Hotp`
15
15
 
16
+ ## Properties
17
+
18
+ ### CLASS\_NAME
19
+
20
+ > `readonly` `static` **CLASS\_NAME**: `string`
21
+
22
+ Runtime name for the class.
23
+
16
24
  ## Methods
17
25
 
18
26
  ### generate()
@@ -12,6 +12,14 @@ Implementation of the password based key derivation function 2.
12
12
 
13
13
  `Pbkdf2`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### sha256()
@@ -12,6 +12,14 @@ Helper class for working with PEM (Privacy-Enhanced Mail) formatted data.
12
12
 
13
13
  `PemHelper`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### stripPemMarkers()
@@ -28,6 +28,14 @@ Private Key Size is the size, in bytes, of private keys as used in this package.
28
28
 
29
29
  Public Key Size is the size, in bytes, of public keys as used in this package.
30
30
 
31
+ ***
32
+
33
+ ### CLASS\_NAME
34
+
35
+ > `readonly` `static` **CLASS\_NAME**: `string`
36
+
37
+ Runtime name for the class.
38
+
31
39
  ## Methods
32
40
 
33
41
  ### publicKeyFromPrivateKey()
@@ -14,6 +14,14 @@ Create a new instance of Sha1.
14
14
 
15
15
  `Sha1`
16
16
 
17
+ ## Properties
18
+
19
+ ### CLASS\_NAME
20
+
21
+ > `readonly` `static` **CLASS\_NAME**: `string`
22
+
23
+ Runtime name for the class.
24
+
17
25
  ## Methods
18
26
 
19
27
  ### sum()
@@ -38,6 +38,14 @@ Sha256 256.
38
38
 
39
39
  Sha256 224.
40
40
 
41
+ ***
42
+
43
+ ### CLASS\_NAME
44
+
45
+ > `readonly` `static` **CLASS\_NAME**: `string`
46
+
47
+ Runtime name for the class.
48
+
41
49
  ## Methods
42
50
 
43
51
  ### sum256()
@@ -54,6 +54,14 @@ Sha3 384.
54
54
 
55
55
  Sha3 512.
56
56
 
57
+ ***
58
+
59
+ ### CLASS\_NAME
60
+
61
+ > `readonly` `static` **CLASS\_NAME**: `string`
62
+
63
+ Runtime name for the class.
64
+
57
65
  ## Methods
58
66
 
59
67
  ### sum256()
@@ -54,6 +54,14 @@ Sha512 384.
54
54
 
55
55
  Sha512 512.
56
56
 
57
+ ***
58
+
59
+ ### CLASS\_NAME
60
+
61
+ > `readonly` `static` **CLASS\_NAME**: `string`
62
+
63
+ Runtime name for the class.
64
+
57
65
  ## Methods
58
66
 
59
67
  ### sum512()
@@ -13,6 +13,14 @@ https://github.com/satoshilabs/slips/blob/master/slip-0010.md.
13
13
 
14
14
  `Slip0010`
15
15
 
16
+ ## Properties
17
+
18
+ ### CLASS\_NAME
19
+
20
+ > `readonly` `static` **CLASS\_NAME**: `string`
21
+
22
+ Runtime name for the class.
23
+
16
24
  ## Methods
17
25
 
18
26
  ### getMasterKeyFromSeed()
@@ -51,7 +51,7 @@ The one time password.
51
51
 
52
52
  ### verify()
53
53
 
54
- > `static` **verify**(`token`, `key`, `window`, `interval`, `timestamp`): `undefined` \| `number`
54
+ > `static` **verify**(`token`, `key`, `window`, `interval`, `timestamp`): `number` \| `undefined`
55
55
 
56
56
  Check a One Time Password based on a timer.
57
57
 
@@ -90,7 +90,7 @@ The timestamp now.
90
90
 
91
91
  #### Returns
92
92
 
93
- `undefined` \| `number`
93
+ `number` \| `undefined`
94
94
 
95
95
  Undefined if failure, delta on success
96
96
 
@@ -12,6 +12,14 @@ Implementation of X25519.
12
12
 
13
13
  `X25519`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### convertPrivateKeyToX25519()
@@ -12,6 +12,14 @@ Implementation of Zip215.
12
12
 
13
13
  `Zip215`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### verify()