diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-02-25 09:07:54 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-02-25 09:07:54 +0800 |
commit | 8c66260bdb903185aaf55944a04b850af2dd64b6 (patch) | |
tree | c3f77c3d2282ef0c85329bc3de1338ea66412946 /app/scripts | |
parent | 1077c79e259b97b7458547580fb882034e438a89 (diff) | |
download | tangerine-wallet-browser-8c66260bdb903185aaf55944a04b850af2dd64b6.tar tangerine-wallet-browser-8c66260bdb903185aaf55944a04b850af2dd64b6.tar.gz tangerine-wallet-browser-8c66260bdb903185aaf55944a04b850af2dd64b6.tar.bz2 tangerine-wallet-browser-8c66260bdb903185aaf55944a04b850af2dd64b6.tar.lz tangerine-wallet-browser-8c66260bdb903185aaf55944a04b850af2dd64b6.tar.xz tangerine-wallet-browser-8c66260bdb903185aaf55944a04b850af2dd64b6.tar.zst tangerine-wallet-browser-8c66260bdb903185aaf55944a04b850af2dd64b6.zip |
Removed redundant personal_recover logic
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/keyring-controller.js | 11 | ||||
-rw-r--r-- | app/scripts/metamask-controller.js | 7 |
2 files changed, 0 insertions, 18 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index f2891db37..e1b1c4335 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -278,17 +278,6 @@ class KeyringController extends EventEmitter { }) } - // Recover Personal Message - // @object msgParams - // - // returns Promise(@buffer signer) - // - // recovers a signature of the prefixed-style personalMessage signature. - recoverPersonalMessage (msgParams) { - const address = sigUtil.recoverPersonalSignature(msgParams) - return Promise.resolve(address) - } - // PRIVATE METHODS // // THESE METHODS ARE ONLY USED INTERNALLY TO THE KEYRING-CONTROLLER diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 995db1c0a..f172c67a8 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -172,7 +172,6 @@ module.exports = class MetamaskController extends EventEmitter { // new style msg signing processPersonalMessage: this.newUnsignedPersonalMessage.bind(this), - personalRecoverSigner: nodeify(this.recoverPersonalMessage).bind(this), }) return provider } @@ -533,12 +532,6 @@ module.exports = class MetamaskController extends EventEmitter { } } - recoverPersonalMessage (msgParams) { - log.debug(`MetaMaskController - recoverPersonalMessage: ${JSON.stringify(msgParams)}`) - const keyringController = this.keyringController - return keyringController.recoverPersonalMessage(msgParams) - } - markAccountsFound (cb) { this.configManager.setLostAccounts([]) this.sendUpdate() |