export electrum wallets with only usb capable hardware wallets as hardware keystore types

This commit is contained in:
Craig Raw 2024-05-10 09:54:33 +02:00
parent 87cc28e0a4
commit b59a65dcfe
2 changed files with 7 additions and 3 deletions

2
drongo

@ -1 +1 @@
Subproject commit 33bf35e3c4fdaed6e6b0d598efaa3f8f0406c266
Subproject commit 571db3257466827d33aa75dbd911288388f838c3

View file

@ -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";