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:
parent
1077c79e25
commit
8c66260bdb
@ -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
|
// PRIVATE METHODS
|
||||||
//
|
//
|
||||||
// THESE METHODS ARE ONLY USED INTERNALLY TO THE KEYRING-CONTROLLER
|
// THESE METHODS ARE ONLY USED INTERNALLY TO THE KEYRING-CONTROLLER
|
||||||
|
@ -172,7 +172,6 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
|
|
||||||
// new style msg signing
|
// new style msg signing
|
||||||
processPersonalMessage: this.newUnsignedPersonalMessage.bind(this),
|
processPersonalMessage: this.newUnsignedPersonalMessage.bind(this),
|
||||||
personalRecoverSigner: nodeify(this.recoverPersonalMessage).bind(this),
|
|
||||||
})
|
})
|
||||||
return provider
|
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) {
|
markAccountsFound (cb) {
|
||||||
this.configManager.setLostAccounts([])
|
this.configManager.setLostAccounts([])
|
||||||
this.sendUpdate()
|
this.sendUpdate()
|
||||||
|
Loading…
Reference in New Issue
Block a user