{{ _("Confirm Address") }}
{{ _("Please confirm address matches on your ")}}{{ _('device')}}
{{ _("Expected address") }}:
-
-
 }})
+
+
@@ -96,6 +96,36 @@
}
}
}
+
+ async function registerMultisig(descriptor, fingerprint) {
+ const devices = await enumerate()
+
+ if (!devices || devices.length === 0) {
+ return
+ }
+
+ const device = await selectDevice(devices)
+
+ if (!device) {
+ return
+ }
+
+ if (fingerprint && device.fingerprint != fingerprint) {
+ handleHWIError("Device fingerprints don't match. You have probably selected the wrong device.")
+ return
+ }
+
+ showHWIProgress("Registering multisig ...", `Confirm on your ${capitalize(device.type)}`)
+
+ try {
+ await hwi.registerMultisig(device, descriptor)
+ } catch (error) {
+ handleHWIError(error)
+ return
+ }
+ hidePageOverlay()
+ showNotification("Multisig registered successfully!", 3000);
+ }
{% endif %}
diff --git a/src/cryptoadvance/specter/templates/includes/hwi/hwi.jinja b/src/cryptoadvance/specter/templates/includes/hwi/hwi.jinja
index 33c7aae2c7..1b3f08c8e9 100644
--- a/src/cryptoadvance/specter/templates/includes/hwi/hwi.jinja
+++ b/src/cryptoadvance/specter/templates/includes/hwi/hwi.jinja
@@ -93,7 +93,7 @@
let retryCounter = 0;
try {
try {
- result = await hwi.enumerate(passphrase, deviceTypes == 'bitbox02');
+ result = await hwi.enumerate(passphrase, true);
} catch (e) {
if (e.message !== 'Fetch is aborted' && e.message !== 'The user aborted a request.') {
throw e;
@@ -122,7 +122,7 @@
}
console.log("Retrying enumerate...");
try {
- result = await hwi.enumerate(passphrase, deviceTypes == 'bitbox02');
+ result = await hwi.enumerate(passphrase, true);
} catch (e) {
if (e.message !== 'Fetch is aborted' && e.message !== 'The user aborted a request.') {
throw e;
diff --git a/src/cryptoadvance/specter/templates/wallet/new_wallet/components/import_wallet_account_map.jinja b/src/cryptoadvance/specter/templates/wallet/new_wallet/components/import_wallet_account_map.jinja
index 27a44427d5..65fd2231ff 100644
--- a/src/cryptoadvance/specter/templates/wallet/new_wallet/components/import_wallet_account_map.jinja
+++ b/src/cryptoadvance/specter/templates/wallet/new_wallet/components/import_wallet_account_map.jinja
@@ -12,7 +12,7 @@
@@ -34,7 +34,7 @@