1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Removed redundant personal_recover logic

This commit is contained in:
Dan Finlay 2017-02-24 17:07:54 -08:00
parent 1077c79e25
commit 8c66260bdb
2 changed files with 0 additions and 18 deletions

View File

@ -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

View File

@ -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()