add wallet import test
This commit is contained in:
parent
5a3134212c
commit
89ec5ad61e
4 changed files with 75 additions and 74 deletions
|
|
@ -15,14 +15,12 @@ Passphrase.prototype.get = function(password) {
|
|||
keySize: 512 / 32,
|
||||
iterations: this.iterations
|
||||
});
|
||||
|
||||
return key512;
|
||||
};
|
||||
|
||||
Passphrase.prototype.getBase64 = function(password) {
|
||||
var key512 = this.get(password);
|
||||
var keyBase64 = key512.toString(CryptoJS.enc.Base64);
|
||||
|
||||
return keyBase64;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ var TxProposals = require('./TxProposals');
|
|||
var PublicKeyRing = require('./PublicKeyRing');
|
||||
var PrivateKey = require('./PrivateKey');
|
||||
var Wallet = require('./Wallet');
|
||||
var preconditions = require('preconditions').instance();
|
||||
|
||||
var log = require('../../log');
|
||||
|
||||
|
|
@ -13,7 +14,6 @@ var StorageLocalEncrypted = module.exports.StorageLocalEncrypted = require('../s
|
|||
|
||||
/*
|
||||
* WalletFactory
|
||||
*
|
||||
*/
|
||||
|
||||
function WalletFactory(config, version) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue