From 7e36256f67929ab6c8f829f2ce385f80d7f0354f Mon Sep 17 00:00:00 2001 From: pythcoiner Date: Tue, 25 Jun 2024 16:38:11 +0200 Subject: [PATCH] add specter support for tap-miniscript --- gui/src/hw.rs | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/gui/src/hw.rs b/gui/src/hw.rs index 51126270..ec9c35e0 100644 --- a/gui/src/hw.rs +++ b/gui/src/hw.rs @@ -843,15 +843,19 @@ fn ledger_version_supported(version: Option<&Version>) -> bool { // Kind and minimal version of devices supporting tapminiscript. // We cannot use a lazy_static HashMap yet, because DeviceKind does not implement Hash. -const DEVICES_COMPATIBLE_WITH_TAPMINISCRIPT: [(DeviceKind, Option); 1] = [( - DeviceKind::Ledger, - Some(Version { - major: 2, - minor: 2, - patch: 0, - prerelease: None, - }), -)]; +const DEVICES_COMPATIBLE_WITH_TAPMINISCRIPT: [(DeviceKind, Option); 3] = [ + ( + DeviceKind::Ledger, + Some(Version { + major: 2, + minor: 2, + patch: 0, + prerelease: None, + }), + ), + (DeviceKind::Specter, None), + (DeviceKind::SpecterSimulator, None), +]; pub fn is_compatible_with_tapminiscript( device_kind: &DeviceKind,