mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Merge pull request #92 from MetaMask/ExportKey
Add ability to export private keys
This commit is contained in:
commit
379294f164
@ -3,6 +3,9 @@
|
||||
## Current Master
|
||||
|
||||
- Removed extra entropy text field for simplified vault creation.
|
||||
- Now supports exporting an account's private key.
|
||||
- Unified button and input styles across the app.
|
||||
- Removed some non-working placeholder UI until it works.
|
||||
|
||||
## 1.3.2 2016-04-04
|
||||
|
||||
|
@ -124,6 +124,7 @@ function linkDnode(stream){
|
||||
cancelTransaction: idStore.cancelTransaction.bind(idStore),
|
||||
setLocked: idStore.setLocked.bind(idStore),
|
||||
clearSeedWordCache: idStore.clearSeedWordCache.bind(idStore),
|
||||
exportAccount: idStore.exportAccount.bind(idStore),
|
||||
})
|
||||
stream.pipe(connection).pipe(stream)
|
||||
connection.on('remote', function(remote){
|
||||
|
@ -123,6 +123,11 @@ IdentityStore.prototype.submitPassword = function(password, cb){
|
||||
})
|
||||
}
|
||||
|
||||
IdentityStore.prototype.exportAccount = function(address, cb) {
|
||||
var privateKey = this._idmgmt.exportPrivateKey(address)
|
||||
cb(null, privateKey)
|
||||
}
|
||||
|
||||
// comes from dapp via zero-client hooked-wallet provider
|
||||
IdentityStore.prototype.addUnconfirmedTransaction = function(txParams, cb){
|
||||
|
||||
@ -337,6 +342,10 @@ function IdManagement(opts) {
|
||||
this.getSeed = function(){
|
||||
return this.keyStore.getSeed(this.derivedKey)
|
||||
}
|
||||
|
||||
this.exportPrivateKey = function(address) {
|
||||
return this.keyStore.exportPrivateKey(address, this.derivedKey, this.hdPathString)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user