@metamask-previews/keyring-controller 12.2.0-preview.8cdddaf → 12.2.0-preview.a3a3121
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/CHANGELOG.md +75 -4
- package/dist/KeyringController.d.ts +102 -2
- package/dist/KeyringController.d.ts.map +1 -1
- package/dist/KeyringController.js +515 -109
- package/dist/KeyringController.js.map +1 -1
- package/dist/constants.d.ts +30 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +34 -0
- package/dist/constants.js.map +1 -0
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
2
3
|
All notable changes to this project will be documented in this file.
|
|
3
4
|
|
|
4
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
@@ -7,35 +8,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
8
|
## [Unreleased]
|
|
8
9
|
|
|
9
10
|
## [12.2.0]
|
|
11
|
+
|
|
10
12
|
### Added
|
|
13
|
+
|
|
11
14
|
- Add `getDefaultKeyringState` function ([#3799](https://github.com/MetaMask/core/pull/3799))
|
|
12
15
|
|
|
13
16
|
### Changed
|
|
17
|
+
|
|
14
18
|
- Bump `@metamask/base-controller` to `^4.1.1` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
15
19
|
- Bump `@metamask/message-manager` to `^7.3.8` ([#3821](https://github.com/MetaMask/core/pull/3821))
|
|
16
20
|
|
|
17
21
|
### Removed
|
|
22
|
+
|
|
18
23
|
- Remove `peerDependency` and `devDependency` upon `@metamask/preferences-controller` ([#3799](https://github.com/MetaMask/core/pull/3799))
|
|
19
24
|
- This dependency was just used to access the types of four methods. Those types are now inlined instead.
|
|
20
25
|
|
|
21
26
|
## [12.1.0]
|
|
27
|
+
|
|
22
28
|
### Added
|
|
29
|
+
|
|
23
30
|
- Add methods to support ERC-4337 accounts ([#3602](https://github.com/MetaMask/core/pull/3602))
|
|
24
31
|
|
|
25
32
|
### Changed
|
|
33
|
+
|
|
26
34
|
- Bump `@metamask/keyring-api` to ^3.0.0 ([#3747](https://github.com/MetaMask/core/pull/3747))
|
|
27
35
|
- Bump @metamask/eth-keyring-controller from 17.0.0 to 17.0.1 ([#3805](https://github.com/MetaMask/core/pull/3805))
|
|
28
36
|
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
|
|
29
37
|
|
|
30
38
|
### Fixed
|
|
39
|
+
|
|
31
40
|
- Fix custody keyring name ([#3803](https://github.com/MetaMask/core/pull/3803))
|
|
32
41
|
|
|
33
42
|
## [12.0.0]
|
|
43
|
+
|
|
34
44
|
### Changed
|
|
45
|
+
|
|
35
46
|
- **BREAKING:** Bump `@metamask/preferences-controller` to ^6.0.0
|
|
36
47
|
|
|
37
48
|
## [11.0.0]
|
|
49
|
+
|
|
38
50
|
### Changed
|
|
51
|
+
|
|
39
52
|
- **BREAKING:** Bump `@metamask/preferences-controller` peer dependency from `^5.0.0` to `^5.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
40
53
|
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
|
|
41
54
|
- Bump `@metamask/eth-keyring-controller` to `^15.1.0` ([#3617](https://github.com/MetaMask/core/pull/3617))
|
|
@@ -44,79 +57,104 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
44
57
|
- Update `forgetQRDevice` to return an object containing `removedAccounts` and `remainingAccounts` ([#3641](https://github.com/MetaMask/core/pull/3641))
|
|
45
58
|
|
|
46
59
|
### Fixed
|
|
60
|
+
|
|
47
61
|
- Remove `@metamask/preferences-controller` dependency ([#3607](https://github.com/MetaMask/core/pull/3607))
|
|
48
62
|
|
|
49
63
|
## [10.0.0]
|
|
64
|
+
|
|
50
65
|
### Changed
|
|
66
|
+
|
|
51
67
|
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
52
68
|
- This is breaking because the type of the `messenger` has backward-incompatible changes. See the changelog for this package for more.
|
|
53
69
|
- Bump `@metamask/message-manager` to ^7.3.6 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
54
70
|
- Bump `@metamask/preferences-controller` to ^4.5.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
|
|
55
71
|
|
|
56
72
|
## [9.0.0]
|
|
73
|
+
|
|
57
74
|
### Added
|
|
75
|
+
|
|
58
76
|
- Add `KeyringController:persistAllKeyrings` messenger action ([#1965](https://github.com/MetaMask/core/pull/1965))
|
|
59
77
|
|
|
60
78
|
### Changed
|
|
61
|
-
|
|
79
|
+
|
|
80
|
+
- **BREAKING** Change `encryptor` constructor option property type to `GenericEncryptor | ExportableKeyEncryptor | undefined` ([#2041](https://github.com/MetaMask/core/pull/2041))
|
|
62
81
|
- When the controller is instantiated with `cacheEncryptionKey: true`, `encryptor` may no longer be of type `GenericEncryptor`.
|
|
63
82
|
- Bump dependency on `@metamask/scure-bip39` 2.1.1 ([#1868](https://github.com/MetaMask/core/pull/1868))
|
|
64
83
|
- Bump dependency on `@metamask/utils` to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))
|
|
65
84
|
- Bump @metamask/eth-keyring-controller to 14.0.0 ([#1771](https://github.com/MetaMask/core/pull/1771))
|
|
66
85
|
|
|
67
86
|
## [8.1.0]
|
|
87
|
+
|
|
68
88
|
### Changed
|
|
89
|
+
|
|
69
90
|
- Adds additional options to KeyringTypes enum ([#1839](https://github.com/MetaMask/core/pull/1839))
|
|
70
91
|
|
|
71
92
|
## [8.0.3]
|
|
93
|
+
|
|
72
94
|
### Changed
|
|
95
|
+
|
|
73
96
|
- `signTransaction` now accepts an optional `opts: Record<string, unknown>` argument to support `signTransaction` from `Keyring` type ([#1789](https://github.com/MetaMask/core/pull/1789))
|
|
74
97
|
- Bump dependency and peer dependency on `@metamask/preferences-controller` to ^4.4.3
|
|
75
98
|
|
|
76
99
|
## [8.0.2]
|
|
100
|
+
|
|
77
101
|
### Changed
|
|
102
|
+
|
|
78
103
|
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
|
|
79
104
|
- Bump dependency on `@metamask/base-controller` to ^3.2.3
|
|
80
105
|
- Bump dependency on `@metamask/message-manager` to ^7.3.5
|
|
81
106
|
|
|
82
107
|
### Fixed
|
|
108
|
+
|
|
83
109
|
- Update `removeAccount` to remove call to `PreferencesController.removeIdentity` as `PreferencesController` already handles account removal side effects through messenger events ([#1759](https://github.com/MetaMask/core/pull/1759))
|
|
84
110
|
|
|
85
111
|
## [8.0.1]
|
|
112
|
+
|
|
86
113
|
### Changed
|
|
114
|
+
|
|
87
115
|
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
|
|
88
116
|
|
|
89
117
|
### Fixed
|
|
118
|
+
|
|
90
119
|
- Removed `keyringTypes` from `memStore` ([#1710](https://github.com/MetaMask/core/pull/1710))
|
|
91
120
|
- This property was accidentally getting copied into the memstore from the internal keyring controller. It was causing errors because there is no metadata for this state property.
|
|
92
121
|
|
|
93
122
|
## [8.0.0]
|
|
123
|
+
|
|
94
124
|
### Added
|
|
125
|
+
|
|
95
126
|
- Add `getQRKeyring(): QRKeyring | undefined` method
|
|
96
127
|
- Add `KeyringController:qrKeyringStateChange` messenger event
|
|
97
128
|
- The event emits updates from the internal `QRKeyring` instance, if there's one
|
|
98
129
|
|
|
99
130
|
### Changed
|
|
131
|
+
|
|
100
132
|
- **BREAKING:** addNewKeyring(type) return type changed from Promise<Keyring<Json>> to Promise<unknown>
|
|
101
133
|
- When calling with QRKeyring type the keyring instance is retrieved or created (no multiple QRKeyring instances possible)
|
|
102
134
|
- Bump dependency on `@metamask/message-manager` to ^7.3.3
|
|
103
135
|
- Bump dependency on `@metamask/preferences-controller` to ^4.4.1
|
|
104
136
|
|
|
105
137
|
### Fixed
|
|
138
|
+
|
|
106
139
|
- Fix `addNewAccountForKeyring` for `CustodyKeyring` ([#1694](https://github.com/MetaMask/core/pull/1694))
|
|
107
140
|
|
|
108
141
|
## [7.5.0]
|
|
142
|
+
|
|
109
143
|
### Added
|
|
144
|
+
|
|
110
145
|
- Add `KeyringController` messenger actions ([#1691](https://github.com/MetaMask/core/pull/1691))
|
|
111
146
|
- `KeyringController:getAccounts`
|
|
112
147
|
- `KeyringController:getKeyringsByType`
|
|
113
148
|
- `KeyringController:getKeyringForAccount`
|
|
114
149
|
|
|
115
150
|
### Changed
|
|
151
|
+
|
|
116
152
|
- Bump `@metamask/eth-sig-util` from 6.0.0 to 7.0.0 ([#1669](https://github.com/MetaMask/core/pull/1669))
|
|
117
153
|
|
|
118
154
|
## [7.4.0]
|
|
155
|
+
|
|
119
156
|
### Added
|
|
157
|
+
|
|
120
158
|
- Add `KeyringController` messenger actions ([#1654](https://github.com/MetaMask/core/pull/1654))
|
|
121
159
|
- `KeyringController:signMessage`
|
|
122
160
|
- `KeyringController:signPersonalMessage`
|
|
@@ -125,26 +163,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
125
163
|
- `KeyringController:getEncryptionPublicKey`
|
|
126
164
|
|
|
127
165
|
## [7.3.0]
|
|
166
|
+
|
|
128
167
|
### Added
|
|
168
|
+
|
|
129
169
|
- Add `decryptMessage` method ([#1596](https://github.com/MetaMask/core/pull/1596))
|
|
130
170
|
|
|
131
171
|
## [7.2.0]
|
|
172
|
+
|
|
132
173
|
### Added
|
|
174
|
+
|
|
133
175
|
- Add `addNewAccountForKeyring` method ([#1591](https://github.com/MetaMask/core/pull/1591))
|
|
134
176
|
- Add `addNewKeyring` method ([#1594](https://github.com/MetaMask/core/pull/1594))
|
|
135
177
|
- Add `persistAllKeyrings` method ([#1574](https://github.com/MetaMask/core/pull/1574))
|
|
136
178
|
|
|
137
179
|
### Changed
|
|
180
|
+
|
|
138
181
|
- Bump dependency on `@metamask/base-controller` to ^3.2.1
|
|
139
182
|
- Bump dependency on `@metamask/message-manager` to ^7.3.1
|
|
140
183
|
- Bump dependency and peer dependency on `@metamask/preferences-controller` to ^4.4.0
|
|
141
184
|
|
|
142
185
|
## [7.1.0]
|
|
186
|
+
|
|
143
187
|
### Added
|
|
188
|
+
|
|
144
189
|
- Add `getEncryptionPublicKey` method on KeyringController ([#1569](https://github.com/MetaMask/core/pull/1569))
|
|
145
190
|
|
|
146
191
|
## [7.0.0]
|
|
192
|
+
|
|
147
193
|
### Changed
|
|
194
|
+
|
|
148
195
|
- **BREAKING**: Remove `keyringTypes` property from the KeyringController state ([#1441](https://github.com/MetaMask/core/pull/1441))
|
|
149
196
|
- **BREAKING**: Constructor `KeyringControllerOptions` type changed ([#1441](https://github.com/MetaMask/core/pull/1441))
|
|
150
197
|
- The `KeyringControllerOptions.state` accepted type is now `{ vault?: string }`
|
|
@@ -164,16 +211,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
164
211
|
- Update `@keystonehq/metamask-airgapped-keyring` to `^0.13.1` ([#1514](https://github.com/MetaMask/core/pull/1514))
|
|
165
212
|
|
|
166
213
|
## [6.1.0]
|
|
214
|
+
|
|
167
215
|
### Changed
|
|
216
|
+
|
|
168
217
|
- Bump @metamask/eth-sig-util to ^6.0.0 ([#1483](https://github.com/MetaMask/core/pull/1483))
|
|
169
218
|
|
|
170
219
|
## [6.0.0]
|
|
220
|
+
|
|
171
221
|
### Added
|
|
222
|
+
|
|
172
223
|
- Add messenger events `KeyringController:lock` and `KeyringController:unlock`, emitted when the inner EthKeyringController is locked/unlocked ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
173
224
|
- Also add corresponding types `KeyringControllerLockEvent` and `KeyringControllerUnlockEvent`
|
|
174
225
|
- Add `KeyringController:accountRemoved` event, fired whenever an account is removed through `removeAccount` ([#1416](https://github.com/MetaMask/core/pull/1416))
|
|
175
226
|
|
|
176
227
|
### Changed
|
|
228
|
+
|
|
177
229
|
- **BREAKING:** Update constructor to take a single argument, an options bag, instead of three arguments ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
178
230
|
- **BREAKING:** Update controller so state is now accessible via `controller.state` instead of `controller.store.getState()` ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
179
231
|
- **BREAKING:** Update KeyringController to take a required `messenger` option ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
@@ -200,6 +252,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
200
252
|
- Add `immer` as a dependency ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
201
253
|
|
|
202
254
|
### Removed
|
|
255
|
+
|
|
203
256
|
- **BREAKING:** Remove `subscribe` and `unsubscribe` methods ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
204
257
|
- State changes can be directly subscribed to (or unsubscribed from) via the messenger if necessary
|
|
205
258
|
- **BREAKING:** Remove `lock` and `unlock` methods ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
@@ -209,11 +262,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
209
262
|
- **BREAKING:** Remove `index` from the `Keyring` type ([#1378](https://github.com/MetaMask/core/pull/1378))
|
|
210
263
|
|
|
211
264
|
## [5.1.0]
|
|
265
|
+
|
|
212
266
|
### Added
|
|
267
|
+
|
|
213
268
|
- Add `cancelQRSynchronization` method ([#1387](https://github.com/MetaMask/core.git/pull/1387))
|
|
214
269
|
|
|
215
270
|
## [5.0.0]
|
|
271
|
+
|
|
216
272
|
### Added
|
|
273
|
+
|
|
217
274
|
- Add support for encryption keys ([#1342](https://github.com/MetaMask/core/pull/1342))
|
|
218
275
|
- The configuration option `cacheEncryptionKey` has been added, along with two new state properties (`encryptionKey` and `encryptionSalt`) and a new method (`submitEncryptionKey`)
|
|
219
276
|
- All new state and config entries are optional, so this will have no effect if you're not using this feature.
|
|
@@ -222,9 +279,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
222
279
|
- Add deprecated `getKeyringForAccount` and `getKeyringsByType` methods ([#1376](https://github.com/MetaMask/core/pull/1376), [#1386](https://github.com/MetaMask/core/pull/1386))
|
|
223
280
|
|
|
224
281
|
### Changed
|
|
282
|
+
|
|
225
283
|
- **BREAKING:** Bump to Node 16 ([#1262](https://github.com/MetaMask/core/pull/1262))
|
|
226
284
|
- **BREAKING:** Change return type of `createNewVaultAndRestore` from `string | number[]` to `Uint8Array` ([#1349](https://github.com/MetaMask/core/pull/1349))
|
|
227
|
-
- **BREAKING:** Change return type of `verifySeedPhrase` from `string` to
|
|
285
|
+
- **BREAKING:** Change return type of `verifySeedPhrase` from `string` to `Uint8Array` ([#1338](https://github.com/MetaMask/core/pull/1338))
|
|
228
286
|
- **BREAKING:** Replace `validatePassword` with `verifyPassword` ([#1348](https://github.com/MetaMask/core/pull/1348))
|
|
229
287
|
- `verifyPassword` is asynchronous, unlike `validatePassword` which was not.
|
|
230
288
|
- `verifyPassword` does not return a boolean to indicate whether the password is valid. Instead an error is thrown when it's invalid.
|
|
@@ -242,6 +300,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
242
300
|
- Update `@metamask/preferences-controller` dependency
|
|
243
301
|
|
|
244
302
|
### Fixed
|
|
303
|
+
|
|
245
304
|
- Improve validation of `from` address in `signTypedMessage` ([#1293](https://github.com/MetaMask/core/pull/1293))
|
|
246
305
|
- Improve private key validation in `importAccountWithStrategy` ([#1297](https://github.com/MetaMask/core/pull/1297))
|
|
247
306
|
- A more helpful error is now thrown when the given private key has the wrong length
|
|
@@ -250,32 +309,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
250
309
|
- The old behavior was especially confusing because the `subscribe` method is overridden to return state change events from the internal `EthKeyingController` state, resulting in state change events being out of sync with controller state. They should be the same now.
|
|
251
310
|
|
|
252
311
|
## [4.0.0]
|
|
312
|
+
|
|
253
313
|
### Removed
|
|
314
|
+
|
|
254
315
|
- **BREAKING:** Remove `isomorphic-fetch` ([#1106](https://github.com/MetaMask/controllers/pull/1106))
|
|
255
316
|
- Consumers must now import `isomorphic-fetch` or another polyfill themselves if they are running in an environment without `fetch`
|
|
256
317
|
|
|
257
318
|
## [3.0.0]
|
|
319
|
+
|
|
258
320
|
### Changed
|
|
321
|
+
|
|
259
322
|
- **BREAKING:**: Bump eth-keyring-controller version to @metamask/eth-keyring-controller v10 ([#1072](https://github.com/MetaMask/core.git/pull/1072))
|
|
260
|
-
- `exportSeedPhrase` now returns a `Uint8Array` typed SRP (can be converted to a string using [this approach](https://github.com/MetaMask/eth-hd-keyring/blob/53b0570559595ba5b3fd8c80e900d847cd6dee3d/index.js#L40)).
|
|
323
|
+
- `exportSeedPhrase` now returns a `Uint8Array` typed SRP (can be converted to a string using [this approach](https://github.com/MetaMask/eth-hd-keyring/blob/53b0570559595ba5b3fd8c80e900d847cd6dee3d/index.js#L40)). It was previously a Buffer.
|
|
261
324
|
- The HD keyring included with the keyring controller has been updated from v4 to v6. See [the `eth-hd-keyring` changelog entries for v5 and v6](https://github.com/MetaMask/eth-hd-keyring/blob/main/CHANGELOG.md#600) for further details on breaking changes.
|
|
262
325
|
|
|
263
326
|
## [2.0.0]
|
|
327
|
+
|
|
264
328
|
### Changed
|
|
329
|
+
|
|
265
330
|
- **BREAKING:**: Require ES2020 support or greater ([#914](https://github.com/MetaMask/controllers/pull/914))
|
|
266
|
-
|
|
331
|
+
- This change was introduced by an indirect dependency on `ethereumjs/util` v8
|
|
267
332
|
- Rename this repository to `core` ([#1031](https://github.com/MetaMask/controllers/pull/1031))
|
|
268
333
|
- Update `@metamask/eth-sig-util` to v5 ([#914](https://github.com/MetaMask/controllers/pull/914))
|
|
269
334
|
- Update `@metamask/controller-utils` package ([#1041](https://github.com/MetaMask/controllers/pull/1041))
|
|
270
335
|
|
|
271
336
|
## [1.0.1]
|
|
337
|
+
|
|
272
338
|
### Changed
|
|
339
|
+
|
|
273
340
|
- Relax dependencies on `@metamask/base-controller`, `@metamask/controller-utils`, `@metamask/message-manager`, and `@metamask/preferences-controller` (use `^` instead of `~`) ([#998](https://github.com/MetaMask/core/pull/998))
|
|
274
341
|
|
|
275
342
|
## [1.0.0]
|
|
343
|
+
|
|
276
344
|
### Added
|
|
345
|
+
|
|
277
346
|
- Initial release
|
|
347
|
+
|
|
278
348
|
- As a result of converting our shared controllers repo into a monorepo ([#831](https://github.com/MetaMask/core/pull/831)), we've created this package from select parts of [`@metamask/controllers` v33.0.0](https://github.com/MetaMask/core/tree/v33.0.0), namely:
|
|
349
|
+
|
|
279
350
|
- Everything in `src/keyring`
|
|
280
351
|
|
|
281
352
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
@@ -2,10 +2,10 @@ import type { TxData, TypedTransaction } from '@ethereumjs/tx';
|
|
|
2
2
|
import type { MetaMaskKeyring as QRKeyring, IKeyringState as IQRKeyringState } from '@keystonehq/metamask-airgapped-keyring';
|
|
3
3
|
import type { RestrictedControllerMessenger } from '@metamask/base-controller';
|
|
4
4
|
import { BaseController } from '@metamask/base-controller';
|
|
5
|
-
import
|
|
5
|
+
import * as encryptorUtils from '@metamask/browser-passworder';
|
|
6
6
|
import type { EthBaseTransaction, EthBaseUserOperation, EthKeyring, EthUserOperation, EthUserOperationPatch } from '@metamask/keyring-api';
|
|
7
7
|
import type { PersonalMessageParams, TypedMessageParams } from '@metamask/message-manager';
|
|
8
|
-
import type { Eip1024EncryptedData, Hex, Json } from '@metamask/utils';
|
|
8
|
+
import type { Eip1024EncryptedData, Hex, Json, KeyringClass } from '@metamask/utils';
|
|
9
9
|
import type { Patch } from 'immer';
|
|
10
10
|
declare const name = "KeyringController";
|
|
11
11
|
/**
|
|
@@ -163,6 +163,106 @@ export declare enum SignTypedDataVersion {
|
|
|
163
163
|
V3 = "V3",
|
|
164
164
|
V4 = "V4"
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* A serialized keyring object.
|
|
168
|
+
*/
|
|
169
|
+
export declare type SerializedKeyring = {
|
|
170
|
+
type: string;
|
|
171
|
+
data: Json;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* A generic encryptor interface that supports encrypting and decrypting
|
|
175
|
+
* serializable data with a password.
|
|
176
|
+
*/
|
|
177
|
+
export declare type GenericEncryptor = {
|
|
178
|
+
/**
|
|
179
|
+
* Encrypts the given object with the given password.
|
|
180
|
+
*
|
|
181
|
+
* @param password - The password to encrypt with.
|
|
182
|
+
* @param object - The object to encrypt.
|
|
183
|
+
* @returns The encrypted string.
|
|
184
|
+
*/
|
|
185
|
+
encrypt: (password: string, object: Json) => Promise<string>;
|
|
186
|
+
/**
|
|
187
|
+
* Decrypts the given encrypted string with the given password.
|
|
188
|
+
*
|
|
189
|
+
* @param password - The password to decrypt with.
|
|
190
|
+
* @param encryptedString - The encrypted string to decrypt.
|
|
191
|
+
* @returns The decrypted object.
|
|
192
|
+
*/
|
|
193
|
+
decrypt: (password: string, encryptedString: string) => Promise<unknown>;
|
|
194
|
+
/**
|
|
195
|
+
* Optional vault migration helper. Checks if the provided vault is up to date
|
|
196
|
+
* with the desired encryption algorithm.
|
|
197
|
+
*
|
|
198
|
+
* @param vault - The encrypted string to check.
|
|
199
|
+
* @param targetDerivationParams - The desired target derivation params.
|
|
200
|
+
* @returns The updated encrypted string.
|
|
201
|
+
*/
|
|
202
|
+
isVaultUpdated?: (vault: string, targetDerivationParams?: encryptorUtils.KeyDerivationOptions) => boolean;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* An encryptor interface that supports encrypting and decrypting
|
|
206
|
+
* serializable data with a password, and exporting and importing keys.
|
|
207
|
+
*/
|
|
208
|
+
export declare type ExportableKeyEncryptor = GenericEncryptor & {
|
|
209
|
+
/**
|
|
210
|
+
* Encrypts the given object with the given encryption key.
|
|
211
|
+
*
|
|
212
|
+
* @param key - The encryption key to encrypt with.
|
|
213
|
+
* @param object - The object to encrypt.
|
|
214
|
+
* @returns The encryption result.
|
|
215
|
+
*/
|
|
216
|
+
encryptWithKey: (key: unknown, object: Json) => Promise<encryptorUtils.EncryptionResult>;
|
|
217
|
+
/**
|
|
218
|
+
* Encrypts the given object with the given password, and returns the
|
|
219
|
+
* encryption result and the exported key string.
|
|
220
|
+
*
|
|
221
|
+
* @param password - The password to encrypt with.
|
|
222
|
+
* @param object - The object to encrypt.
|
|
223
|
+
* @param salt - The optional salt to use for encryption.
|
|
224
|
+
* @returns The encrypted string and the exported key string.
|
|
225
|
+
*/
|
|
226
|
+
encryptWithDetail: (password: string, object: Json, salt?: string) => Promise<encryptorUtils.DetailedEncryptionResult>;
|
|
227
|
+
/**
|
|
228
|
+
* Decrypts the given encrypted string with the given encryption key.
|
|
229
|
+
*
|
|
230
|
+
* @param key - The encryption key to decrypt with.
|
|
231
|
+
* @param encryptedString - The encrypted string to decrypt.
|
|
232
|
+
* @returns The decrypted object.
|
|
233
|
+
*/
|
|
234
|
+
decryptWithKey: (key: unknown, encryptedString: string) => Promise<unknown>;
|
|
235
|
+
/**
|
|
236
|
+
* Decrypts the given encrypted string with the given password, and returns
|
|
237
|
+
* the decrypted object and the salt and exported key string used for
|
|
238
|
+
* encryption.
|
|
239
|
+
*
|
|
240
|
+
* @param password - The password to decrypt with.
|
|
241
|
+
* @param encryptedString - The encrypted string to decrypt.
|
|
242
|
+
* @returns The decrypted object and the salt and exported key string used for
|
|
243
|
+
* encryption.
|
|
244
|
+
*/
|
|
245
|
+
decryptWithDetail: (password: string, encryptedString: string) => Promise<encryptorUtils.DetailedDecryptResult>;
|
|
246
|
+
/**
|
|
247
|
+
* Generates an encryption key from exported key string.
|
|
248
|
+
*
|
|
249
|
+
* @param key - The exported key string.
|
|
250
|
+
* @returns The encryption key.
|
|
251
|
+
*/
|
|
252
|
+
importKey: (key: string) => Promise<unknown>;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Get builder function for `Keyring`
|
|
256
|
+
*
|
|
257
|
+
* Returns a builder function for `Keyring` with a `type` property.
|
|
258
|
+
*
|
|
259
|
+
* @param KeyringConstructor - The Keyring class for the builder.
|
|
260
|
+
* @returns A builder function for the given Keyring.
|
|
261
|
+
*/
|
|
262
|
+
export declare function keyringBuilderFactory(KeyringConstructor: KeyringClass<Json>): {
|
|
263
|
+
(): import("@metamask/utils").Keyring<Json>;
|
|
264
|
+
type: string;
|
|
265
|
+
};
|
|
166
266
|
export declare const getDefaultKeyringState: () => KeyringControllerState;
|
|
167
267
|
/**
|
|
168
268
|
* Controller responsible for establishing and managing user identity.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyringController.d.ts","sourceRoot":"","sources":["../src/KeyringController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EACV,eAAe,IAAI,SAAS,EAC5B,aAAa,IAAI,eAAe,EACjC,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyringController.d.ts","sourceRoot":"","sources":["../src/KeyringController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EACV,eAAe,IAAI,SAAS,EAC5B,aAAa,IAAI,eAAe,EACjC,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAI/D,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACtB,MA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