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 29, 2023
1 parent 6254fbb commit d6e6c55
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 33 deletions.
4 changes: 2 additions & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1360,8 +1360,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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
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
92 changes: 62 additions & 30 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,23 @@ __metadata:
languageName: node
linkType: hard

"@metamask/keyring-controller@npm:7.0.0":
version: 7.0.0
resolution: "@metamask/keyring-controller@npm:7.0.0"
dependencies:
"@keystonehq/metamask-airgapped-keyring": "npm:^0.13.1"
"@metamask/base-controller": "npm:^3.2.0"
"@metamask/eth-keyring-controller": "npm:^13.0.0"
"@metamask/message-manager": "npm:^7.2.0"
"@metamask/preferences-controller": "npm:^4.2.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
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@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: 420907a70c81cc5293961429e997f7cf30968896f85d1e48c70a01ad5a27f34deb67ff71a636a889509b30928f0cfa759040ffc99101f8154ed16ac7a2494dfd
"@metamask/preferences-controller": ^4.4.0
checksum: 3535d698f68f732658787943eaff3ebabdc1e3d0e6bce731cff413b0fb98d19fb127841e525d9031fa96b50e75840686da9cd0615ab6772914e2b18fe1797df1
languageName: node
linkType: hard

Expand Down Expand Up @@ -4351,6 +4357,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 +4572,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 +4582,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 +24253,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 d6e6c55

Please sign in to comment.