Skip to content

Commit

Permalink
Use getEncryptionPublicKey from Core KeyringController
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s authored and Salah-eddineS committed Aug 30, 2023
1 parent 3f5bc97 commit 5c0ee84
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/dist/KeyringController.d.ts b/dist/KeyringController.d.ts
index 82de83a7bb1ad14bb23f3b6274e0c4d5bb773382..86a09b3f604f6feb26e2c7edbdcb0abebd4bae20 100644
index ccfd5ca9accf782b0a612ab1666501898cf2abb9..f772552156491b308f2aa29a734a5138237d951e 100644
--- a/dist/KeyringController.d.ts
+++ b/dist/KeyringController.d.ts
@@ -1,10 +1,11 @@
Expand Down Expand Up @@ -28,7 +28,7 @@ index 82de83a7bb1ad14bb23f3b6274e0c4d5bb773382..86a09b3f604f6feb26e2c7edbdcb0abe
* Adds a new account to the default (first) HD seed phrase keyring.
*
diff --git a/dist/KeyringController.js b/dist/KeyringController.js
index 54d39d266425b45ed1008cecb16e78cf831c75d7..0ddded415bf71716c27ed3bf7bd1c5a79b11be13 100644
index 9e241ba3b5445a053e3b20ee70a579118b7b2934..eb1f7bce9d3607017b39e087db227e8a7dadd849 100644
--- a/dist/KeyringController.js
+++ b/dist/KeyringController.js
@@ -153,6 +153,12 @@ class KeyringController extends base_controller_1.BaseControllerV2 {
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,8 @@ export default class MetamaskController extends EventEmitter {
],
}),
getEncryptionPublicKey:
this.keyringController.getEncryptionPublicKey.bind(
this.keyringController,
this.coreKeyringController.getEncryptionPublicKey.bind(
this.coreKeyringController,
),
getAccountKeyringType:
this.coreKeyringController.getAccountKeyringType.bind(
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"request@^2.88.2": "patch:request@npm%3A2.88.2#./.yarn/patches/request-npm-2.88.2-f4a57c72c4.patch",
"request@^2.85.0": "patch:request@npm%3A2.88.2#./.yarn/patches/request-npm-2.88.2-f4a57c72c4.patch",
"lavamoat-core@^14.2.0": "patch:lavamoat-core@npm%3A14.2.0#./.yarn/patches/lavamoat-core-npm-14.2.0-c453f4f755.patch",
"@metamask/keyring-controller@^7.0.0": "patch:@metamask/keyring-controller@npm%3A7.0.0#./.yarn/patches/@metamask-keyring-controller-npm-7.0.0-962008b200.patch",
"@metamask/keyring-controller@^7.2.0": "patch:@metamask/keyring-controller@npm%3A7.2.0#~/.yarn/patches/@metamask-keyring-controller-npm-7.2.0-fcc0c7893b.patch",
"@metamask/signature-controller@^5.3.0": "patch:@metamask/signature-controller@npm%3A5.3.0#./.yarn/patches/@metamask-signature-controller-npm-5.3.0-225628460b.patch"
},
"dependencies": {
Expand Down Expand Up @@ -249,7 +249,7 @@
"@metamask/gas-fee-controller": "^6.0.1",
"@metamask/jazzicon": "^2.0.0",
"@metamask/key-tree": "^9.0.0",
"@metamask/keyring-controller": "^7.0.0",
"@metamask/keyring-controller": "^7.2.0",
"@metamask/logo": "^3.1.1",
"@metamask/message-manager": "^7.3.0",
"@metamask/metamask-eth-abis": "^3.0.0",
Expand Down
88 changes: 70 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3865,6 +3865,16 @@ __metadata:
languageName: node
linkType: hard

"@metamask/base-controller@npm:^3.2.1":
version: 3.2.1
resolution: "@metamask/base-controller@npm:3.2.1"
dependencies:
"@metamask/utils": "npm:^6.2.0"
immer: "npm:^9.0.6"
checksum: ff4db984a72c942694b0ab849ec61f1c36423e6c6b7144a560f52fb6449e91dd4ce3b937a3b7e092468d0c679f305cc0c805085593f9b83acd98fbfe6f971b69
languageName: node
linkType: hard

"@metamask/browser-passworder@npm:^4.0.2, @metamask/browser-passworder@npm:^4.1.0":
version: 4.1.0
resolution: "@metamask/browser-passworder@npm:4.1.0"
Expand Down Expand Up @@ -3910,6 +3920,22 @@ __metadata:
languageName: node
linkType: hard

"@metamask/controller-utils@npm:^4.3.2":
version: 4.3.2
resolution: "@metamask/controller-utils@npm:4.3.2"
dependencies:
"@metamask/eth-query": "npm:^3.0.1"
"@metamask/utils": "npm:^6.2.0"
"@spruceid/siwe-parser": "npm:1.1.3"
eth-ens-namehash: "npm:^2.0.8"
eth-rpc-errors: "npm:^4.0.2"
ethereumjs-util: "npm:^7.0.10"
ethjs-unit: "npm:^0.1.6"
fast-deep-equal: "npm:^3.1.3"
checksum: 16c82bdeeb99f96f2fb22132646e6aea66ada1a8427ba17e9c7d31e0bf32be6df7696d75030e30a4ab9be76c08a9d52dc3b25c21804a1328643c1240540ea621
languageName: node
linkType: hard

"@metamask/design-tokens@npm:^1.12.0, @metamask/design-tokens@npm:^1.6.0":
version: 1.12.0
resolution: "@metamask/design-tokens@npm:1.12.0"
Expand Down Expand Up @@ -4285,43 +4311,43 @@ __metadata:
languageName: node
linkType: hard

"@metamask/keyring-controller@npm:7.0.0":
version: 7.0.0
resolution: "@metamask/keyring-controller@npm:7.0.0"
"@metamask/keyring-controller@npm:7.2.0":
version: 7.2.0
resolution: "@metamask/keyring-controller@npm:7.2.0"
dependencies:
"@keystonehq/metamask-airgapped-keyring": "npm:^0.13.1"
"@metamask/base-controller": "npm:^3.2.0"
"@metamask/base-controller": "npm:^3.2.1"
"@metamask/eth-keyring-controller": "npm:^13.0.0"
"@metamask/message-manager": "npm:^7.2.0"
"@metamask/preferences-controller": "npm:^4.2.0"
"@metamask/message-manager": "npm:^7.3.1"
"@metamask/preferences-controller": "npm:^4.4.0"
"@metamask/utils": "npm:^6.2.0"
async-mutex: "npm:^0.2.6"
ethereumjs-util: "npm:^7.0.10"
ethereumjs-wallet: "npm:^1.0.1"
immer: "npm:^9.0.6"
peerDependencies:
"@metamask/preferences-controller": ^4.2.0
checksum: c7e648e21d30acbca9f5cfe12f7bcef99568d09a257d629093c9d67539ff6c4e20a47fb86dd18d76436797a98a929187bdb81430e98d33b21d59d70ce9b03359
"@metamask/preferences-controller": ^4.4.0
checksum: 3535d698f68f732658787943eaff3ebabdc1e3d0e6bce731cff413b0fb98d19fb127841e525d9031fa96b50e75840686da9cd0615ab6772914e2b18fe1797df1
languageName: node
linkType: hard

"@metamask/keyring-controller@patch:@metamask/keyring-controller@npm%3A7.0.0#./.yarn/patches/@metamask-keyring-controller-npm-7.0.0-962008b200.patch::locator=metamask-crx%40workspace%3A.":
version: 7.0.0
resolution: "@metamask/keyring-controller@patch:@metamask/keyring-controller@npm%3A7.0.0#./.yarn/patches/@metamask-keyring-controller-npm-7.0.0-962008b200.patch::version=7.0.0&hash=819c47&locator=metamask-crx%40workspace%3A."
"@metamask/keyring-controller@patch:@metamask/keyring-controller@npm%3A7.2.0#~/.yarn/patches/@metamask-keyring-controller-npm-7.2.0-fcc0c7893b.patch":
version: 7.2.0
resolution: "@metamask/keyring-controller@patch:@metamask/keyring-controller@npm%3A7.2.0#~/.yarn/patches/@metamask-keyring-controller-npm-7.2.0-fcc0c7893b.patch::version=7.2.0&hash=6f51dc"
dependencies:
"@keystonehq/metamask-airgapped-keyring": "npm:^0.13.1"
"@metamask/base-controller": "npm:^3.2.0"
"@metamask/base-controller": "npm:^3.2.1"
"@metamask/eth-keyring-controller": "npm:^13.0.0"
"@metamask/message-manager": "npm:^7.2.0"
"@metamask/preferences-controller": "npm:^4.2.0"
"@metamask/message-manager": "npm:^7.3.1"
"@metamask/preferences-controller": "npm:^4.4.0"
"@metamask/utils": "npm:^6.2.0"
async-mutex: "npm:^0.2.6"
ethereumjs-util: "npm:^7.0.10"
ethereumjs-wallet: "npm:^1.0.1"
immer: "npm:^9.0.6"
peerDependencies:
"@metamask/preferences-controller": ^4.2.0
checksum: 420907a70c81cc5293961429e997f7cf30968896f85d1e48c70a01ad5a27f34deb67ff71a636a889509b30928f0cfa759040ffc99101f8154ed16ac7a2494dfd
"@metamask/preferences-controller": ^4.4.0
checksum: b3f0ffac12077c19bef8d978237b24ebe40c2bbee1363ee5cfdf7a09b600540981d3bdbac96845645cd976e0bdb55f56f80442a2797e1538abb00744194edf17
languageName: node
linkType: hard

Expand Down Expand Up @@ -4351,6 +4377,22 @@ __metadata:
languageName: node
linkType: hard

"@metamask/message-manager@npm:^7.3.1":
version: 7.3.1
resolution: "@metamask/message-manager@npm:7.3.1"
dependencies:
"@metamask/base-controller": "npm:^3.2.1"
"@metamask/controller-utils": "npm:^4.3.2"
"@metamask/eth-sig-util": "npm:^6.0.0"
"@metamask/utils": "npm:^6.2.0"
"@types/uuid": "npm:^8.3.0"
ethereumjs-util: "npm:^7.0.10"
jsonschema: "npm:^1.2.4"
uuid: "npm:^8.3.2"
checksum: 9ba3893a2a739906f63b9b51eceab798cad0f26657d58959cac8620122e80c9ae9007c6f0502a3eb7875398b774c5a59f00adde028cf80a1aa75502f53ef5740
languageName: node
linkType: hard

"@metamask/metamask-eth-abis@npm:3.0.0, @metamask/metamask-eth-abis@npm:^3.0.0":
version: 3.0.0
resolution: "@metamask/metamask-eth-abis@npm:3.0.0"
Expand Down Expand Up @@ -4550,7 +4592,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/preferences-controller@npm:^4.1.0, @metamask/preferences-controller@npm:^4.2.0":
"@metamask/preferences-controller@npm:^4.1.0":
version: 4.2.0
resolution: "@metamask/preferences-controller@npm:4.2.0"
dependencies:
Expand All @@ -4560,6 +4602,16 @@ __metadata:
languageName: node
linkType: hard

"@metamask/preferences-controller@npm:^4.4.0":
version: 4.4.0
resolution: "@metamask/preferences-controller@npm:4.4.0"
dependencies:
"@metamask/base-controller": "npm:^3.2.1"
"@metamask/controller-utils": "npm:^4.3.2"
checksum: b22372f85e672f3843427a76aca8b675273136f01e68739e81cb2eb391e6d960ccc79473af23b63b22237b5093fcaca41224c1ca4a98582606f4b14b0a9ccd54
languageName: node
linkType: hard

"@metamask/providers@npm:^10.2.0, @metamask/providers@npm:^10.2.1":
version: 10.2.1
resolution: "@metamask/providers@npm:10.2.1"
Expand Down Expand Up @@ -24221,7 +24273,7 @@ __metadata:
"@metamask/gas-fee-controller": "npm:^6.0.1"
"@metamask/jazzicon": "npm:^2.0.0"
"@metamask/key-tree": "npm:^9.0.0"
"@metamask/keyring-controller": "npm:^7.0.0"
"@metamask/keyring-controller": "npm:^7.2.0"
"@metamask/logo": "npm:^3.1.1"
"@metamask/message-manager": "npm:^7.3.0"
"@metamask/metamask-eth-abis": "npm:^3.0.0"
Expand Down

0 comments on commit 5c0ee84

Please sign in to comment.