added encryption backup support

This commit is contained in:
Mario Colque 2014-05-01 18:32:22 -03:00
commit c995f039c2
3 changed files with 21 additions and 0 deletions

View file

@ -268,6 +268,11 @@ Wallet.fromObj = function(o, storage, network, blockchain) {
return w;
};
Wallet.prototype.toEncryptedObj = function() {
var walletObj = this.toObj();
return this.storage.export(walletObj);
};
Wallet.prototype.sendTxProposals = function(recipients) {
this.log('### SENDING txProposals TO:', recipients || 'All', this.txProposals);