Skip to content

Commit

Permalink
dont remove private keys from backup
Browse files Browse the repository at this point in the history
  • Loading branch information
nsjames committed Jun 20, 2018
1 parent 524e05b commit 07ba9d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/models/Scatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export default class Scatter {

forBackup(){
const clone = this.clone();
clone.settings.networks = [];
clone.histories = [];
return clone;
}
Expand Down
3 changes: 1 addition & 2 deletions src/views/BackupView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
const [mnemonic, seed] = await Mnemonic.generateMnemonic(this.password);
if(!seed) return false;
const scatter = this.scatter.forBackup();
scatter.keychain = scatter.keychain.forBackup();
const scatter = this.scatter.clone();
const filetext = AES.encrypt(scatter, seed);
const filename = `scatter_${+new Date()}.keychain`;
this.save(filename, filetext);
Expand Down

0 comments on commit 07ba9d0

Please sign in to comment.