mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
export electrum wallets with only usb capable hardware wallets as hardware keystore types
This commit is contained in:
parent
87cc28e0a4
commit
b59a65dcfe
2 changed files with 7 additions and 3 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
|||
Subproject commit 33bf35e3c4fdaed6e6b0d598efaa3f8f0406c266
|
||||
Subproject commit 571db3257466827d33aa75dbd911288388f838c3
|
|
@ -328,8 +328,12 @@ public class Electrum implements KeystoreFileImport, WalletImport, WalletExport
|
|||
ek.derivation = keystore.getKeyDerivation().getDerivationPath();
|
||||
ek.root_fingerprint = keystore.getKeyDerivation().getMasterFingerprint();
|
||||
ek.xpub = keystore.getExtendedPublicKey().toString(xpubHeader);
|
||||
if(keystore.getWalletModel().hasUsb()) {
|
||||
ek.type = "hardware";
|
||||
ek.hw_type = keystore.getWalletModel().getType();
|
||||
} else {
|
||||
ek.type = "bip32";
|
||||
}
|
||||
ew.use_encryption = false;
|
||||
} else if(keystore.getSource() == KeystoreSource.SW_SEED) {
|
||||
ek.type = "bip32";
|
||||
|
|
Loading…
Reference in a new issue