mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-07 06:44:11 +00:00
Check for wallet encryption first.
This commit is contained in:
parent
5cf2c955e3
commit
654f526918
@ -28,6 +28,10 @@ impl BugBip39Derivation {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if wallet.is_encrypted() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// The seed bytes is the raw entropy. To pass it to HD wallet generation,
|
// The seed bytes is the raw entropy. To pass it to HD wallet generation,
|
||||||
// we need to get the 64 byte bip39 entropy
|
// we need to get the 64 byte bip39 entropy
|
||||||
let bip39_seed = bip39::Seed::new(&Mnemonic::from_entropy(&wallet.seed, Language::English).unwrap(), "");
|
let bip39_seed = bip39::Seed::new(&Mnemonic::from_entropy(&wallet.seed, Language::English).unwrap(), "");
|
||||||
|
Loading…
Reference in New Issue
Block a user