backup a wallet during creation. View wallet/profile backup in plain text for safari
This commit is contained in:
parent
c01cdb8b25
commit
93907dbfd1
5 changed files with 29 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue