backup a wallet during creation. View wallet/profile backup in plain text for safari

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-21 15:11:04 -03:00 committed by Matias Alejo Garcia
commit 93907dbfd1
5 changed files with 29 additions and 4 deletions

View file

@ -39,6 +39,9 @@ BackupService.prototype._download = function(ew, walletName, filename) {
saveAs(blob, filename);
};
BackupService.prototype.walletEncrypted = function(wallet) {
return wallet.toEncryptedObj();
}
BackupService.prototype.walletDownload = function(wallet) {
var ew = wallet.toEncryptedObj();
@ -48,6 +51,10 @@ BackupService.prototype.walletDownload = function(wallet) {
this._download(ew, walletName, filename)
};
BackupService.prototype.profileEncrypted = function(iden) {
return iden.toEncryptedObj();
}
BackupService.prototype.profileDownload = function(iden) {
var ew = iden.toEncryptedObj();
var name = iden.profile.getName();