From db8ef9e4a1362671128c694c6b8068c6c9e620b6 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 10 Sep 2020 11:40:02 +0200 Subject: [PATCH] fix keepkey hww --- .../java/com/sparrowwallet/drongo/wallet/WalletModel.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java index 7be2c94..242d320 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java @@ -23,6 +23,14 @@ public enum WalletModel { return this.toString().toLowerCase(); } + public boolean requiresPinPrompt() { + return (this == TREZOR_1 || this == KEEPKEY); + } + + public boolean externalPassphraseEntry() { + return (this == TREZOR_1 || this == KEEPKEY); + } + public static WalletModel fromType(String type) { for(WalletModel model : values()) { if(model.getType().equalsIgnoreCase(type)) {