Fixed import profile and wallets
This commit is contained in:
parent
528ae22413
commit
73088bca2b
10 changed files with 37 additions and 104 deletions
|
|
@ -2967,8 +2967,7 @@ Wallet.prototype.getTransactionHistory = function(cb) {
|
|||
Wallet.prototype.exportEncrypted = function(password, opts) {
|
||||
opts = opts || {};
|
||||
var crypto = opts.cryptoUtil || cryptoUtil;
|
||||
var key = crypto.kdf(password);
|
||||
return crypto.encrypt(key, this.toObj());
|
||||
return crypto.encrypt(password, this.toObj());
|
||||
};
|
||||
|
||||
module.exports = Wallet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue