From 571db3257466827d33aa75dbd911288388f838c3 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 10 May 2024 09:52:03 +0200 Subject: [PATCH] support determining if hww has usb interface --- .../java/com/sparrowwallet/drongo/wallet/WalletModel.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java index 4f1e5d1..a828bc3 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java @@ -75,6 +75,11 @@ public enum WalletModel { return (this == TAPSIGNER || this == SATSCHIP || this == SATSCARD || this == SATOCHIP); } + public boolean hasUsb() { + return (this == TREZOR_1 || this == TREZOR_T || this == TREZOR_SAFE_3 || this == LEDGER_NANO_S || this == LEDGER_NANO_X || this == LEDGER_NANO_S_PLUS || + this == DIGITALBITBOX_01 || this == BITBOX_02 || this == COLDCARD || this == KEEPKEY || this == JADE); + } + public int getMinPinLength() { if(this == SATOCHIP) { return 4;