@metamask-previews/keyring-controller 19.2.1-preview-4b0cb25d → 20.0.0-preview-08a5a1c4
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 +4 -5
- package/dist/KeyringController.cjs +1 -1
- package/dist/KeyringController.cjs.map +1 -1
- package/dist/KeyringController.d.cts +2 -2
- package/dist/KeyringController.d.cts.map +1 -1
- package/dist/KeyringController.d.mts +2 -2
- package/dist/KeyringController.d.mts.map +1 -1
- package/dist/KeyringController.mjs +3 -3
- package/dist/KeyringController.mjs.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -7,12 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [20.0.0]
|
|
11
|
+
|
|
10
12
|
### Changed
|
|
11
13
|
|
|
12
|
-
- Bump `@metamask/keyring-internal-api` from `^5.0.0` to `^6.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
13
|
-
- Bump `@metamask/eth-simple-keyring` from `^9.0.0` to `^10.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
14
|
-
- Bump `@metamask/eth-hd-keyring` from `^11.0.0` to `^12.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
15
|
-
- Bump `@ethereumjs/util` from `^8.1.0` to `^9.1.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
16
14
|
- **BREAKING:** `addNewKeyring` method now returns `Promise<KeyringMetadata>` instead of `Promise<unknown>` ([#5372](https://github.com/MetaMask/core/pull/5372))
|
|
17
15
|
- Consumers can use the returned `KeyringMetadata.id` to access the created keyring instance via `withKeyring`.
|
|
18
16
|
- **BREAKING:** `withKeyring` method now requires a callback argument of type `({ keyring: SelectedKeyring; metadata: KeyringMetadata }) => Promise<CallbackResult>` ([#5372](https://github.com/MetaMask/core/pull/5372))
|
|
@@ -703,7 +701,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
703
701
|
|
|
704
702
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
705
703
|
|
|
706
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@
|
|
704
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@20.0.0...HEAD
|
|
705
|
+
[20.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@19.2.1...@metamask/keyring-controller@20.0.0
|
|
707
706
|
[19.2.1]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@19.2.0...@metamask/keyring-controller@19.2.1
|
|
708
707
|
[19.2.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@19.1.0...@metamask/keyring-controller@19.2.0
|
|
709
708
|
[19.1.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@19.0.7...@metamask/keyring-controller@19.1.0
|
|
@@ -580,7 +580,7 @@ class KeyringController extends base_controller_1.BaseController {
|
|
|
580
580
|
const prefixed = (0, utils_1.add0x)(importedKey);
|
|
581
581
|
let bufferedPrivateKey;
|
|
582
582
|
try {
|
|
583
|
-
bufferedPrivateKey = (0,
|
|
583
|
+
bufferedPrivateKey = (0, util_1.toBuffer)(prefixed);
|
|
584
584
|
}
|
|
585
585
|
catch {
|
|
586
586
|
throw new Error('Cannot import invalid private key.');
|