@twin.org/crypto 0.0.2-next.9 → 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.
- package/dist/es/address/bech32.js +72 -0
- package/dist/es/address/bech32.js.map +1 -0
- package/dist/es/address/bip44.js +113 -0
- package/dist/es/address/bip44.js.map +1 -0
- package/dist/es/ciphers/chaCha20Poly1305.js +48 -0
- package/dist/es/ciphers/chaCha20Poly1305.js.map +1 -0
- package/dist/es/curves/ed25519.js +114 -0
- package/dist/es/curves/ed25519.js.map +1 -0
- package/dist/es/curves/secp256k1.js +82 -0
- package/dist/es/curves/secp256k1.js.map +1 -0
- package/dist/es/curves/x25519.js +34 -0
- package/dist/es/curves/x25519.js.map +1 -0
- package/dist/es/curves/zip215.js +33 -0
- package/dist/es/curves/zip215.js.map +1 -0
- package/dist/es/hashes/blake2b.js +90 -0
- package/dist/es/hashes/blake2b.js.map +1 -0
- package/dist/es/hashes/blake3.js +76 -0
- package/dist/es/hashes/blake3.js.map +1 -0
- package/dist/es/hashes/hmacSha1.js +56 -0
- package/dist/es/hashes/hmacSha1.js.map +1 -0
- package/dist/es/hashes/hmacSha256.js +83 -0
- package/dist/es/hashes/hmacSha256.js.map +1 -0
- package/dist/es/hashes/hmacSha512.js +132 -0
- package/dist/es/hashes/hmacSha512.js.map +1 -0
- package/dist/es/hashes/pbkdf2.js +45 -0
- package/dist/es/hashes/pbkdf2.js.map +1 -0
- package/dist/es/hashes/sha1.js +52 -0
- package/dist/es/hashes/sha1.js.map +1 -0
- package/dist/es/hashes/sha256.js +75 -0
- package/dist/es/hashes/sha256.js.map +1 -0
- package/dist/es/hashes/sha3.js +122 -0
- package/dist/es/hashes/sha3.js.map +1 -0
- package/dist/es/hashes/sha512.js +118 -0
- package/dist/es/hashes/sha512.js.map +1 -0
- package/dist/es/helpers/pemHelper.js +42 -0
- package/dist/es/helpers/pemHelper.js.map +1 -0
- package/dist/es/index.js +29 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/keys/bip32Path.js +72 -0
- package/dist/es/keys/bip32Path.js.map +1 -0
- package/dist/es/keys/bip39.js +83 -0
- package/dist/es/keys/bip39.js.map +1 -0
- package/dist/es/keys/slip0010.js +83 -0
- package/dist/es/keys/slip0010.js.map +1 -0
- package/dist/es/models/keyType.js +17 -0
- package/dist/es/models/keyType.js.map +1 -0
- package/dist/es/otp/hotp.js +27 -0
- package/dist/es/otp/hotp.js.map +1 -0
- package/dist/es/otp/totp.js +75 -0
- package/dist/es/otp/totp.js.map +1 -0
- package/dist/es/passwords/passwordGenerator.js +28 -0
- package/dist/es/passwords/passwordGenerator.js.map +1 -0
- package/dist/es/passwords/passwordValidator.js +81 -0
- package/dist/es/passwords/passwordValidator.js.map +1 -0
- package/dist/types/address/bech32.d.ts +4 -0
- package/dist/types/address/bip44.d.ts +6 -2
- package/dist/types/ciphers/chaCha20Poly1305.d.ts +4 -0
- package/dist/types/curves/ed25519.d.ts +4 -0
- package/dist/types/curves/secp256k1.d.ts +4 -0
- package/dist/types/curves/x25519.d.ts +4 -0
- package/dist/types/curves/zip215.d.ts +4 -0
- package/dist/types/hashes/blake2b.d.ts +4 -0
- package/dist/types/hashes/blake3.d.ts +4 -0
- package/dist/types/hashes/hmacSha1.d.ts +4 -0
- package/dist/types/hashes/hmacSha256.d.ts +4 -0
- package/dist/types/hashes/hmacSha512.d.ts +4 -0
- package/dist/types/hashes/pbkdf2.d.ts +4 -0
- package/dist/types/hashes/sha1.d.ts +4 -0
- package/dist/types/hashes/sha256.d.ts +4 -0
- package/dist/types/hashes/sha3.d.ts +4 -0
- package/dist/types/hashes/sha512.d.ts +4 -0
- package/dist/types/helpers/pemHelper.d.ts +4 -0
- package/dist/types/index.d.ts +26 -26
- package/dist/types/keys/bip39.d.ts +4 -0
- package/dist/types/keys/slip0010.d.ts +6 -2
- package/dist/types/otp/hotp.d.ts +4 -0
- package/docs/changelog.md +267 -0
- package/docs/reference/classes/Bech32.md +8 -0
- package/docs/reference/classes/Bip39.md +8 -0
- package/docs/reference/classes/Bip44.md +8 -0
- package/docs/reference/classes/Blake2b.md +8 -0
- package/docs/reference/classes/Blake3.md +8 -0
- package/docs/reference/classes/ChaCha20Poly1305.md +8 -0
- package/docs/reference/classes/Ed25519.md +8 -0
- package/docs/reference/classes/HmacSha1.md +8 -0
- package/docs/reference/classes/HmacSha256.md +8 -0
- package/docs/reference/classes/HmacSha512.md +8 -0
- package/docs/reference/classes/Hotp.md +8 -0
- package/docs/reference/classes/Pbkdf2.md +8 -0
- package/docs/reference/classes/PemHelper.md +8 -0
- package/docs/reference/classes/Secp256k1.md +8 -0
- package/docs/reference/classes/Sha1.md +8 -0
- package/docs/reference/classes/Sha256.md +8 -0
- package/docs/reference/classes/Sha3.md +8 -0
- package/docs/reference/classes/Sha512.md +8 -0
- package/docs/reference/classes/Slip0010.md +8 -0
- package/docs/reference/classes/Totp.md +2 -2
- package/docs/reference/classes/X25519.md +8 -0
- package/docs/reference/classes/Zip215.md +8 -0
- package/locales/en.json +9 -28
- package/package.json +29 -16
- package/dist/cjs/index.cjs +0 -1876
- 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.
|
package/dist/types/otp/hotp.d.ts
CHANGED
|
@@ -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,272 @@
|
|
|
1
1
|
# @twin.org/crypto - Changelog
|
|
2
2
|
|
|
3
|
+
## [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)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add context id features ([#206](https://github.com/twinfoundation/framework/issues/206)) ([ef0d4ee](https://github.com/twinfoundation/framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
|
|
9
|
+
* add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
|
|
10
|
+
* add mnemonic validation ([4b43491](https://github.com/twinfoundation/framework/commit/4b43491cf04bb626c27faea66e5c74b3971b111d))
|
|
11
|
+
* add rsa cipher support ([7af6cc6](https://github.com/twinfoundation/framework/commit/7af6cc67512d3363bd4a2f2e87bd7733c2800147))
|
|
12
|
+
* add RSA support for public key components ([7126259](https://github.com/twinfoundation/framework/commit/7126259103b758c291e52a8a03818eb822d1aad1))
|
|
13
|
+
* additional RSA methods and async ([1fceee2](https://github.com/twinfoundation/framework/commit/1fceee2d1248a24a7620846025fcf906495c07f4))
|
|
14
|
+
* change method accessibility ([c1b77fc](https://github.com/twinfoundation/framework/commit/c1b77fcfb61c092a01c97aebb2fe2dc2bbaa221b))
|
|
15
|
+
* eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
|
|
16
|
+
* locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
17
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
18
|
+
* update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
|
|
19
|
+
* use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
|
|
20
|
+
* use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Dependencies
|
|
24
|
+
|
|
25
|
+
* The following workspace dependencies were updated
|
|
26
|
+
* dependencies
|
|
27
|
+
* @twin.org/core bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
28
|
+
* @twin.org/nameof bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
29
|
+
* devDependencies
|
|
30
|
+
* @twin.org/nameof-transformer bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
31
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
32
|
+
* @twin.org/validate-locales bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
33
|
+
|
|
34
|
+
## [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)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Miscellaneous Chores
|
|
38
|
+
|
|
39
|
+
* **crypto:** Synchronize repo versions
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Dependencies
|
|
43
|
+
|
|
44
|
+
* The following workspace dependencies were updated
|
|
45
|
+
* dependencies
|
|
46
|
+
* @twin.org/core bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
47
|
+
* @twin.org/nameof bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
48
|
+
* devDependencies
|
|
49
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
50
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
51
|
+
* @twin.org/validate-locales bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
52
|
+
|
|
53
|
+
## [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)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Features
|
|
57
|
+
|
|
58
|
+
* locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Dependencies
|
|
62
|
+
|
|
63
|
+
* The following workspace dependencies were updated
|
|
64
|
+
* dependencies
|
|
65
|
+
* @twin.org/core bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
66
|
+
* @twin.org/nameof bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
67
|
+
* devDependencies
|
|
68
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
69
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
70
|
+
* @twin.org/validate-locales bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
71
|
+
|
|
72
|
+
## [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)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Miscellaneous Chores
|
|
76
|
+
|
|
77
|
+
* **crypto:** Synchronize repo versions
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Dependencies
|
|
81
|
+
|
|
82
|
+
* The following workspace dependencies were updated
|
|
83
|
+
* dependencies
|
|
84
|
+
* @twin.org/core bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
85
|
+
* @twin.org/nameof bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
86
|
+
* devDependencies
|
|
87
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
88
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
89
|
+
|
|
90
|
+
## [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)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Miscellaneous Chores
|
|
94
|
+
|
|
95
|
+
* **crypto:** Synchronize repo versions
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Dependencies
|
|
99
|
+
|
|
100
|
+
* The following workspace dependencies were updated
|
|
101
|
+
* dependencies
|
|
102
|
+
* @twin.org/core bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
103
|
+
* @twin.org/nameof bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
104
|
+
* devDependencies
|
|
105
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
106
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
107
|
+
|
|
108
|
+
## [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)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Miscellaneous Chores
|
|
112
|
+
|
|
113
|
+
* **crypto:** Synchronize repo versions
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Dependencies
|
|
117
|
+
|
|
118
|
+
* The following workspace dependencies were updated
|
|
119
|
+
* dependencies
|
|
120
|
+
* @twin.org/core bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
121
|
+
* @twin.org/nameof bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
122
|
+
* devDependencies
|
|
123
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
124
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
125
|
+
|
|
126
|
+
## [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)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Miscellaneous Chores
|
|
130
|
+
|
|
131
|
+
* **crypto:** Synchronize repo versions
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Dependencies
|
|
135
|
+
|
|
136
|
+
* The following workspace dependencies were updated
|
|
137
|
+
* dependencies
|
|
138
|
+
* @twin.org/core bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
139
|
+
* @twin.org/nameof bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
140
|
+
* devDependencies
|
|
141
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
142
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
143
|
+
|
|
144
|
+
## [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)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Miscellaneous Chores
|
|
148
|
+
|
|
149
|
+
* **crypto:** Synchronize repo versions
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Dependencies
|
|
153
|
+
|
|
154
|
+
* The following workspace dependencies were updated
|
|
155
|
+
* dependencies
|
|
156
|
+
* @twin.org/core bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
157
|
+
* @twin.org/nameof bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
158
|
+
* devDependencies
|
|
159
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
160
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
161
|
+
|
|
162
|
+
## [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)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Miscellaneous Chores
|
|
166
|
+
|
|
167
|
+
* **crypto:** Synchronize repo versions
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Dependencies
|
|
171
|
+
|
|
172
|
+
* The following workspace dependencies were updated
|
|
173
|
+
* dependencies
|
|
174
|
+
* @twin.org/core bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
175
|
+
* @twin.org/nameof bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
176
|
+
* devDependencies
|
|
177
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
178
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
179
|
+
|
|
180
|
+
## [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)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Miscellaneous Chores
|
|
184
|
+
|
|
185
|
+
* **crypto:** Synchronize repo versions
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Dependencies
|
|
189
|
+
|
|
190
|
+
* The following workspace dependencies were updated
|
|
191
|
+
* dependencies
|
|
192
|
+
* @twin.org/core bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
193
|
+
* @twin.org/nameof bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
194
|
+
* devDependencies
|
|
195
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
196
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
197
|
+
|
|
198
|
+
## [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)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Miscellaneous Chores
|
|
202
|
+
|
|
203
|
+
* **crypto:** Synchronize repo versions
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Dependencies
|
|
207
|
+
|
|
208
|
+
* The following workspace dependencies were updated
|
|
209
|
+
* dependencies
|
|
210
|
+
* @twin.org/core bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
211
|
+
* @twin.org/nameof bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
212
|
+
* devDependencies
|
|
213
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
214
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
215
|
+
|
|
216
|
+
## [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)
|
|
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.2-next.11 to 0.0.2-next.12
|
|
229
|
+
* @twin.org/nameof bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
230
|
+
* devDependencies
|
|
231
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
232
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
233
|
+
|
|
234
|
+
## [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)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### Miscellaneous Chores
|
|
238
|
+
|
|
239
|
+
* **crypto:** Synchronize repo versions
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
### Dependencies
|
|
243
|
+
|
|
244
|
+
* The following workspace dependencies were updated
|
|
245
|
+
* dependencies
|
|
246
|
+
* @twin.org/core bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
247
|
+
* @twin.org/nameof bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
248
|
+
* devDependencies
|
|
249
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
250
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
251
|
+
|
|
252
|
+
## [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)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Miscellaneous Chores
|
|
256
|
+
|
|
257
|
+
* **crypto:** Synchronize repo versions
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### Dependencies
|
|
261
|
+
|
|
262
|
+
* The following workspace dependencies were updated
|
|
263
|
+
* dependencies
|
|
264
|
+
* @twin.org/core bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
265
|
+
* @twin.org/nameof bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
266
|
+
* devDependencies
|
|
267
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
268
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
269
|
+
|
|
3
270
|
## [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
271
|
|
|
5
272
|
|
|
@@ -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()
|
|
@@ -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()
|
|
@@ -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`): `
|
|
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
|
-
`
|
|
93
|
+
`number` \| `undefined`
|
|
94
94
|
|
|
95
95
|
Undefined if failure, delta on success
|
|
96
96
|
|