@twin.org/crypto 0.0.1-next.7 → 0.0.1-next.70

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 +251 -0
  2. package/dist/esm/index.mjs +251 -2
  3. package/dist/types/address/bip44.d.ts +15 -0
  4. package/dist/types/curves/ed25519.d.ts +12 -0
  5. package/dist/types/hashes/blake3.d.ts +44 -0
  6. package/dist/types/hashes/sha3.d.ts +61 -0
  7. package/dist/types/index.d.ts +2 -0
  8. package/docs/changelog.md +312 -1
  9. package/docs/reference/classes/Bech32.md +15 -7
  10. package/docs/reference/classes/Bip32Path.md +17 -9
  11. package/docs/reference/classes/Bip39.md +28 -12
  12. package/docs/reference/classes/Bip44.md +121 -21
  13. package/docs/reference/classes/Blake2b.md +35 -17
  14. package/docs/reference/classes/Blake3.md +137 -0
  15. package/docs/reference/classes/ChaCha20Poly1305.md +18 -8
  16. package/docs/reference/classes/Ed25519.md +65 -9
  17. package/docs/reference/classes/HmacSha1.md +17 -9
  18. package/docs/reference/classes/HmacSha256.md +26 -12
  19. package/docs/reference/classes/HmacSha512.md +38 -16
  20. package/docs/reference/classes/Hotp.md +9 -5
  21. package/docs/reference/classes/PasswordGenerator.md +6 -4
  22. package/docs/reference/classes/PasswordValidator.md +23 -11
  23. package/docs/reference/classes/Pbkdf2.md +27 -11
  24. package/docs/reference/classes/Secp256k1.md +21 -9
  25. package/docs/reference/classes/Sha1.md +11 -7
  26. package/docs/reference/classes/Sha256.md +17 -9
  27. package/docs/reference/classes/Sha3.md +179 -0
  28. package/docs/reference/classes/Sha512.md +23 -11
  29. package/docs/reference/classes/Slip0010.md +27 -11
  30. package/docs/reference/classes/Totp.md +42 -16
  31. package/docs/reference/classes/X25519.md +9 -5
  32. package/docs/reference/classes/Zip215.md +12 -6
  33. package/docs/reference/index.md +2 -0
  34. package/docs/reference/type-aliases/KeyType.md +1 -1
  35. package/locales/en.json +3 -6
  36. package/package.json +13 -13
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Perform a SHA-3 hash on the block.
3
+ */
4
+ export declare class Sha3 {
5
+ /**
6
+ * Sha3 224.
7
+ */
8
+ static readonly SIZE_224: number;
9
+ /**
10
+ * Sha3 256.
11
+ */
12
+ static readonly SIZE_256: number;
13
+ /**
14
+ * Sha3 384.
15
+ */
16
+ static readonly SIZE_384: number;
17
+ /**
18
+ * Sha3 512.
19
+ */
20
+ static readonly SIZE_512: number;
21
+ /**
22
+ * Create a new instance of Sha3.
23
+ * @param bits The number of bits.
24
+ */
25
+ constructor(bits?: number);
26
+ /**
27
+ * Perform Sum 256 on the block.
28
+ * @param block The block to operate on.
29
+ * @returns The sum 256 of the block.
30
+ */
31
+ static sum256(block: Uint8Array): Uint8Array;
32
+ /**
33
+ * Perform Sum 224 on the block.
34
+ * @param block The block to operate on.
35
+ * @returns The sum 224 of the block.
36
+ */
37
+ static sum224(block: Uint8Array): Uint8Array;
38
+ /**
39
+ * Perform Sum 384 on the block.
40
+ * @param block The block to operate on.
41
+ * @returns The sum 384 of the block.
42
+ */
43
+ static sum384(block: Uint8Array): Uint8Array;
44
+ /**
45
+ * Perform Sum 512 on the block.
46
+ * @param block The block to operate on.
47
+ * @returns The sum 512 of the block.
48
+ */
49
+ static sum512(block: Uint8Array): Uint8Array;
50
+ /**
51
+ * Update the hash with the block.
52
+ * @param block The block to update the hash with.
53
+ * @returns The instance for chaining.
54
+ */
55
+ update(block: Uint8Array): Sha3;
56
+ /**
57
+ * Get the digest for the hash.
58
+ * @returns The instance for chaining.
59
+ */
60
+ digest(): Uint8Array;
61
+ }
@@ -6,12 +6,14 @@ export * from "./curves/secp256k1";
6
6
  export * from "./curves/x25519";
7
7
  export * from "./curves/zip215";
8
8
  export * from "./hashes/blake2b";
9
+ export * from "./hashes/blake3";
9
10
  export * from "./hashes/hmacSha1";
10
11
  export * from "./hashes/hmacSha256";
11
12
  export * from "./hashes/hmacSha512";
12
13
  export * from "./hashes/pbkdf2";
13
14
  export * from "./hashes/sha1";
14
15
  export * from "./hashes/sha256";
16
+ export * from "./hashes/sha3";
15
17
  export * from "./hashes/sha512";
16
18
  export * from "./keys/bip32Path";
17
19
  export * from "./keys/bip39";
package/docs/changelog.md CHANGED
@@ -1,5 +1,316 @@
1
1
  # @twin.org/crypto - Changelog
2
2
 
3
- ## 0.0.1-next.7
3
+ ## [0.0.1-next.70](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.69...crypto-v0.0.1-next.70) (2025-07-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
9
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
10
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
11
+
12
+
13
+ ### Dependencies
14
+
15
+ * The following workspace dependencies were updated
16
+ * dependencies
17
+ * @twin.org/core bumped from 0.0.1-next.69 to 0.0.1-next.70
18
+ * @twin.org/nameof bumped from 0.0.1-next.69 to 0.0.1-next.70
19
+ * devDependencies
20
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.69 to 0.0.1-next.70
21
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.69 to 0.0.1-next.70
22
+
23
+ ## [0.0.1-next.69](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.68...crypto-v0.0.1-next.69) (2025-07-02)
24
+
25
+
26
+ ### Features
27
+
28
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
29
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
30
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
31
+
32
+
33
+ ### Dependencies
34
+
35
+ * The following workspace dependencies were updated
36
+ * dependencies
37
+ * @twin.org/core bumped from 0.0.1-next.68 to 0.0.1-next.69
38
+ * @twin.org/nameof bumped from 0.0.1-next.68 to 0.0.1-next.69
39
+ * devDependencies
40
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.68 to 0.0.1-next.69
41
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.68 to 0.0.1-next.69
42
+
43
+ ## [0.0.1-next.68](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.67...crypto-v0.0.1-next.68) (2025-07-02)
44
+
45
+
46
+ ### Features
47
+
48
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
49
+
50
+
51
+ ### Dependencies
52
+
53
+ * The following workspace dependencies were updated
54
+ * dependencies
55
+ * @twin.org/core bumped from 0.0.1-next.67 to 0.0.1-next.68
56
+ * @twin.org/nameof bumped from 0.0.1-next.67 to 0.0.1-next.68
57
+ * devDependencies
58
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.67 to 0.0.1-next.68
59
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.67 to 0.0.1-next.68
60
+
61
+ ## [0.0.1-next.67](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.66...crypto-v0.0.1-next.67) (2025-06-26)
62
+
63
+
64
+ ### Miscellaneous Chores
65
+
66
+ * **crypto:** Synchronize repo versions
67
+
68
+
69
+ ### Dependencies
70
+
71
+ * The following workspace dependencies were updated
72
+ * dependencies
73
+ * @twin.org/core bumped from 0.0.1-next.66 to 0.0.1-next.67
74
+
75
+ ## [0.0.1-next.66](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.65...crypto-v0.0.1-next.66) (2025-06-26)
76
+
77
+
78
+ ### Miscellaneous Chores
79
+
80
+ * **crypto:** Synchronize repo versions
81
+
82
+
83
+ ### Dependencies
84
+
85
+ * The following workspace dependencies were updated
86
+ * dependencies
87
+ * @twin.org/core bumped from 0.0.1-next.65 to 0.0.1-next.66
88
+
89
+ ## [0.0.1-next.65](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.64...crypto-v0.0.1-next.65) (2025-06-19)
90
+
91
+
92
+ ### Miscellaneous Chores
93
+
94
+ * **crypto:** Synchronize repo versions
95
+
96
+
97
+ ### Dependencies
98
+
99
+ * The following workspace dependencies were updated
100
+ * dependencies
101
+ * @twin.org/core bumped from 0.0.1-next.64 to 0.0.1-next.65
102
+
103
+ ## [0.0.1-next.64](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.63...crypto-v0.0.1-next.64) (2025-06-19)
104
+
105
+
106
+ ### Miscellaneous Chores
107
+
108
+ * **crypto:** Synchronize repo versions
109
+
110
+
111
+ ### Dependencies
112
+
113
+ * The following workspace dependencies were updated
114
+ * dependencies
115
+ * @twin.org/core bumped from 0.0.1-next.63 to 0.0.1-next.64
116
+
117
+ ## [0.0.1-next.63](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.62...crypto-v0.0.1-next.63) (2025-06-18)
118
+
119
+
120
+ ### Miscellaneous Chores
121
+
122
+ * **crypto:** Synchronize repo versions
123
+
124
+
125
+ ### Dependencies
126
+
127
+ * The following workspace dependencies were updated
128
+ * dependencies
129
+ * @twin.org/core bumped from 0.0.1-next.62 to 0.0.1-next.63
130
+
131
+ ## [0.0.1-next.62](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.61...crypto-v0.0.1-next.62) (2025-06-17)
132
+
133
+
134
+ ### Features
135
+
136
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
137
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
138
+
139
+
140
+ ### Dependencies
141
+
142
+ * The following workspace dependencies were updated
143
+ * dependencies
144
+ * @twin.org/core bumped from 0.0.1-next.61 to 0.0.1-next.62
145
+
146
+ ## [0.0.1-next.61](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.60...crypto-v0.0.1-next.61) (2025-06-17)
147
+
148
+
149
+ ### Miscellaneous Chores
150
+
151
+ * **crypto:** Synchronize repo versions
152
+
153
+
154
+ ### Dependencies
155
+
156
+ * The following workspace dependencies were updated
157
+ * dependencies
158
+ * @twin.org/core bumped from 0.0.1-next.60 to 0.0.1-next.61
159
+
160
+ ## [0.0.1-next.60](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.59...crypto-v0.0.1-next.60) (2025-06-17)
161
+
162
+
163
+ ### Miscellaneous Chores
164
+
165
+ * **crypto:** Synchronize repo versions
166
+
167
+
168
+ ### Dependencies
169
+
170
+ * The following workspace dependencies were updated
171
+ * dependencies
172
+ * @twin.org/core bumped from 0.0.1-next.59 to 0.0.1-next.60
173
+
174
+ ## [0.0.1-next.59](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.58...crypto-v0.0.1-next.59) (2025-06-17)
175
+
176
+
177
+ ### Miscellaneous Chores
178
+
179
+ * **crypto:** Synchronize repo versions
180
+
181
+
182
+ ### Dependencies
183
+
184
+ * The following workspace dependencies were updated
185
+ * dependencies
186
+ * @twin.org/core bumped from 0.0.1-next.58 to 0.0.1-next.59
187
+
188
+ ## [0.0.1-next.58](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.57...crypto-v0.0.1-next.58) (2025-06-13)
189
+
190
+
191
+ ### Miscellaneous Chores
192
+
193
+ * **crypto:** Synchronize repo versions
194
+
195
+
196
+ ### Dependencies
197
+
198
+ * The following workspace dependencies were updated
199
+ * dependencies
200
+ * @twin.org/core bumped from 0.0.1-next.57 to 0.0.1-next.58
201
+
202
+ ## [0.0.1-next.57](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.56...crypto-v0.0.1-next.57) (2025-06-10)
203
+
204
+
205
+ ### Features
206
+
207
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
208
+
209
+
210
+ ### Dependencies
211
+
212
+ * The following workspace dependencies were updated
213
+ * dependencies
214
+ * @twin.org/core bumped from 0.0.1-next.56 to 0.0.1-next.57
215
+
216
+ ## [0.0.1-next.56](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.55...crypto-v0.0.1-next.56) (2025-05-08)
217
+
218
+
219
+ ### Miscellaneous Chores
220
+
221
+ * **crypto:** Synchronize repo versions
222
+
223
+
224
+ ### Dependencies
225
+
226
+ * The following workspace dependencies were updated
227
+ * dependencies
228
+ * @twin.org/core bumped from 0.0.1-next.55 to 0.0.1-next.56
229
+
230
+ ## [0.0.1-next.55](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.54...crypto-v0.0.1-next.55) (2025-05-07)
231
+
232
+
233
+ ### Miscellaneous Chores
234
+
235
+ * **crypto:** Synchronize repo versions
236
+
237
+
238
+ ### Dependencies
239
+
240
+ * The following workspace dependencies were updated
241
+ * dependencies
242
+ * @twin.org/core bumped from 0.0.1-next.54 to 0.0.1-next.55
243
+
244
+ ## [0.0.1-next.54](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.53...crypto-v0.0.1-next.54) (2025-05-06)
245
+
246
+
247
+ ### Miscellaneous Chores
248
+
249
+ * **crypto:** Synchronize repo versions
250
+
251
+
252
+ ### Dependencies
253
+
254
+ * The following workspace dependencies were updated
255
+ * dependencies
256
+ * @twin.org/core bumped from 0.0.1-next.53 to 0.0.1-next.54
257
+
258
+ ## [0.0.1-next.53](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.52...crypto-v0.0.1-next.53) (2025-05-01)
259
+
260
+
261
+ ### Miscellaneous Chores
262
+
263
+ * **crypto:** Synchronize repo versions
264
+
265
+
266
+ ### Dependencies
267
+
268
+ * The following workspace dependencies were updated
269
+ * dependencies
270
+ * @twin.org/core bumped from 0.0.1-next.52 to 0.0.1-next.53
271
+
272
+ ## [0.0.1-next.52](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.51...crypto-v0.0.1-next.52) (2025-04-17)
273
+
274
+
275
+ ### Features
276
+
277
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
278
+
279
+
280
+ ### Dependencies
281
+
282
+ * The following workspace dependencies were updated
283
+ * dependencies
284
+ * @twin.org/core bumped from 0.0.1-next.51 to 0.0.1-next.52
285
+
286
+ ## [0.0.1-next.51](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.50...crypto-v0.0.1-next.51) (2025-03-27)
287
+
288
+
289
+ ### Miscellaneous Chores
290
+
291
+ * **crypto:** Synchronize repo versions
292
+
293
+
294
+ ### Dependencies
295
+
296
+ * The following workspace dependencies were updated
297
+ * dependencies
298
+ * @twin.org/core bumped from 0.0.1-next.50 to 0.0.1-next.51
299
+
300
+ ## [0.0.1-next.50](https://github.com/twinfoundation/framework/compare/crypto-v0.0.1-next.49...crypto-v0.0.1-next.50) (2025-03-26)
301
+
302
+
303
+ ### Miscellaneous Chores
304
+
305
+ * **crypto:** Synchronize repo versions
306
+
307
+
308
+ ### Dependencies
309
+
310
+ * The following workspace dependencies were updated
311
+ * dependencies
312
+ * @twin.org/core bumped from 0.0.1-next.49 to 0.0.1-next.50
313
+
314
+ ## 0.0.1-next.49
4
315
 
5
316
  - Added: Bip44
@@ -4,13 +4,13 @@ Bech32 encoding and decoding.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new Bech32()
7
+ ### Constructor
8
8
 
9
- > **new Bech32**(): [`Bech32`](Bech32.md)
9
+ > **new Bech32**(): `Bech32`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`Bech32`](Bech32.md)
13
+ `Bech32`
14
14
 
15
15
  ## Methods
16
16
 
@@ -22,11 +22,15 @@ Encode the buffer.
22
22
 
23
23
  #### Parameters
24
24
 
25
- **humanReadablePart**: `string`
25
+ ##### humanReadablePart
26
+
27
+ `string`
26
28
 
27
29
  The header.
28
30
 
29
- **data**: `Uint8Array`
31
+ ##### data
32
+
33
+ `Uint8Array`
30
34
 
31
35
  The data to encode.
32
36
 
@@ -46,7 +50,9 @@ Decode a bech32 string.
46
50
 
47
51
  #### Parameters
48
52
 
49
- **bech**: `string`
53
+ ##### bech
54
+
55
+ `string`
50
56
 
51
57
  The text to decode.
52
58
 
@@ -78,7 +84,9 @@ Is the input a bech 32 address.
78
84
 
79
85
  #### Parameters
80
86
 
81
- **bech**: `unknown`
87
+ ##### bech
88
+
89
+ `unknown`
82
90
 
83
91
  The value to test.
84
92
 
@@ -4,39 +4,43 @@ Class to help with bip32 paths.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new Bip32Path()
7
+ ### Constructor
8
8
 
9
- > **new Bip32Path**(`initialPath`?): [`Bip32Path`](Bip32Path.md)
9
+ > **new Bip32Path**(`initialPath?`): `Bip32Path`
10
10
 
11
11
  Create a new instance of Bip32Path.
12
12
 
13
13
  #### Parameters
14
14
 
15
- **initialPath?**: `string`
15
+ ##### initialPath?
16
+
17
+ `string`
16
18
 
17
19
  Initial path to create.
18
20
 
19
21
  #### Returns
20
22
 
21
- [`Bip32Path`](Bip32Path.md)
23
+ `Bip32Path`
22
24
 
23
25
  ## Methods
24
26
 
25
27
  ### fromPath()
26
28
 
27
- > `static` **fromPath**(`bip32Path`): [`Bip32Path`](Bip32Path.md)
29
+ > `static` **fromPath**(`bip32Path`): `Bip32Path`
28
30
 
29
31
  Construct a new path by cloning an existing one.
30
32
 
31
33
  #### Parameters
32
34
 
33
- **bip32Path**: [`Bip32Path`](Bip32Path.md)
35
+ ##### bip32Path
36
+
37
+ `Bip32Path`
34
38
 
35
39
  The path to clone.
36
40
 
37
41
  #### Returns
38
42
 
39
- [`Bip32Path`](Bip32Path.md)
43
+ `Bip32Path`
40
44
 
41
45
  A new instance of Bip32Path.
42
46
 
@@ -64,7 +68,9 @@ Push a new index on to the path.
64
68
 
65
69
  #### Parameters
66
70
 
67
- **index**: `number`
71
+ ##### index
72
+
73
+ `number`
68
74
 
69
75
  The index to add to the path.
70
76
 
@@ -82,7 +88,9 @@ Push a new hardened index on to the path.
82
88
 
83
89
  #### Parameters
84
90
 
85
- **index**: `number`
91
+ ##### index
92
+
93
+ `number`
86
94
 
87
95
  The index to add to the path.
88
96
 
@@ -4,13 +4,13 @@ Implementation of Bip39 for mnemonic generation.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new Bip39()
7
+ ### Constructor
8
8
 
9
- > **new Bip39**(): [`Bip39`](Bip39.md)
9
+ > **new Bip39**(): `Bip39`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`Bip39`](Bip39.md)
13
+ `Bip39`
14
14
 
15
15
  ## Methods
16
16
 
@@ -22,11 +22,15 @@ Generate a random mnemonic.
22
22
 
23
23
  #### Parameters
24
24
 
25
- **strength**: `number` = `256`
25
+ ##### strength
26
+
27
+ `number` = `256`
26
28
 
27
29
  The strength of the mnemonic to generate, defaults to 256.
28
30
 
29
- **words**: `string`[] = `wordlist`
31
+ ##### words
32
+
33
+ `string`[] = `wordlist`
30
34
 
31
35
  The wordlist to use, defaults to the English wordlist.
32
36
 
@@ -50,11 +54,15 @@ Generate a mnemonic from the entropy.
50
54
 
51
55
  #### Parameters
52
56
 
53
- **entropy**: `Uint8Array`
57
+ ##### entropy
58
+
59
+ `Uint8Array`
54
60
 
55
61
  The entropy to generate.
56
62
 
57
- **words**: `string`[] = `wordlist`
63
+ ##### words
64
+
65
+ `string`[] = `wordlist`
58
66
 
59
67
  The wordlist to use, defaults to the English wordlist.
60
68
 
@@ -72,17 +80,21 @@ Error if the length of the entropy is not a multiple of 4, or is less than 16 or
72
80
 
73
81
  ### mnemonicToSeed()
74
82
 
75
- > `static` **mnemonicToSeed**(`mnemonic`, `password`?): `Uint8Array`
83
+ > `static` **mnemonicToSeed**(`mnemonic`, `password?`): `Uint8Array`
76
84
 
77
85
  Convert a mnemonic to a seed.
78
86
 
79
87
  #### Parameters
80
88
 
81
- **mnemonic**: `string`
89
+ ##### mnemonic
90
+
91
+ `string`
82
92
 
83
93
  The mnemonic to convert.
84
94
 
85
- **password?**: `string`
95
+ ##### password?
96
+
97
+ `string`
86
98
 
87
99
  The password to apply to the seed generation.
88
100
 
@@ -102,11 +114,15 @@ Convert the mnemonic back to entropy.
102
114
 
103
115
  #### Parameters
104
116
 
105
- **mnemonic**: `string`
117
+ ##### mnemonic
118
+
119
+ `string`
106
120
 
107
121
  The mnemonic to convert.
108
122
 
109
- **words**: `string`[] = `wordlist`
123
+ ##### words
124
+
125
+ `string`[] = `wordlist`
110
126
 
111
127
  The wordlist to use, defaults to the English wordlist.
112
128