mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
store passphrase in memory as securestring
This commit is contained in:
parent
2a6a296cf3
commit
32d25286a6
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ public class Electrum implements KeystoreFileImport, WalletImport, WalletExport
|
||||||
ek.pw_hash_version = 1;
|
ek.pw_hash_version = 1;
|
||||||
if(keystore.getSeed().getType() == DeterministicSeed.Type.ELECTRUM) {
|
if(keystore.getSeed().getType() == DeterministicSeed.Type.ELECTRUM) {
|
||||||
ek.seed = keystore.getSeed().getMnemonicString().asString();
|
ek.seed = keystore.getSeed().getMnemonicString().asString();
|
||||||
ek.passphrase = keystore.getSeed().getPassphrase();
|
ek.passphrase = keystore.getSeed().getPassphrase() == null ? null : keystore.getSeed().getPassphrase().asString();
|
||||||
} else if(keystore.getSeed().getType() == DeterministicSeed.Type.BIP39) {
|
} else if(keystore.getSeed().getType() == DeterministicSeed.Type.BIP39) {
|
||||||
ew.seed_type = "bip39";
|
ew.seed_type = "bip39";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue