add specter diy multisig option to wallet import menu

This commit is contained in:
Craig Raw 2024-11-05 08:49:36 +02:00
parent 60e3d4e107
commit 12034a07d7
2 changed files with 20 additions and 1 deletions

View file

@ -61,7 +61,7 @@ public class WalletImportDialog extends Dialog<Wallet> {
} }
List<WalletImport> walletImporters = new ArrayList<>(List.of(new Bip129(), new CaravanMultisig(), new ColdcardMultisig(), new CoboVaultMultisig(), new Electrum(), List<WalletImport> walletImporters = new ArrayList<>(List.of(new Bip129(), new CaravanMultisig(), new ColdcardMultisig(), new CoboVaultMultisig(), new Electrum(),
new KeystoneMultisig(), new Descriptor(), new SpecterDesktop(), new BlueWalletMultisig(), new Sparrow(), new JadeMultisig(), new PassportMultisig())); new KeystoneMultisig(), new Descriptor(), new SpecterDesktop(), new BlueWalletMultisig(), new Sparrow(), new JadeMultisig(), new PassportMultisig(), new SpecterDIYMultisig()));
if(!selectedWalletForms.isEmpty()) { if(!selectedWalletForms.isEmpty()) {
walletImporters.add(new WalletLabels(selectedWalletForms)); walletImporters.add(new WalletLabels(selectedWalletForms));
} }

View file

@ -0,0 +1,19 @@
package com.sparrowwallet.sparrow.io;
import com.sparrowwallet.drongo.wallet.WalletModel;
public class SpecterDIYMultisig extends SpecterDesktop {
@Override
public String getWalletImportDescription() {
return "Import file or QR created by using the Multisig Wallet > Settings > Export Wallet Descriptor feature on your Specter DIY device.";
}
public String getName() {
return "Specter DIY Multisig";
}
@Override
public WalletModel getWalletModel() {
return WalletModel.SPECTER_DIY;
}
}