Browse Source

add seedsigner keystore import

terminal
Craig Raw 4 years ago
parent
commit
5df4e5761c
  1. 2
      drongo
  2. 2
      src/main/java/com/sparrowwallet/sparrow/control/WalletImportDialog.java
  3. 20
      src/main/java/com/sparrowwallet/sparrow/io/SeedSigner.java
  4. 4
      src/main/java/com/sparrowwallet/sparrow/keystoreimport/HwAirgappedController.java
  5. BIN
      src/main/resources/image/seedsigner.png
  6. BIN
      src/main/resources/image/seedsigner@2x.png
  7. BIN
      src/main/resources/image/seedsigner@3x.png

2
drongo

@ -1 +1 @@
Subproject commit 729c3a1435ccf3f47db456a04c964cacd853a770
Subproject commit 5e8a14678d264dfc5e30cc594f60a6f7f87292ef

2
src/main/java/com/sparrowwallet/sparrow/control/WalletImportDialog.java

@ -47,7 +47,7 @@ public class WalletImportDialog extends Dialog<Wallet> {
AnchorPane.setRightAnchor(scrollPane, 0.0);
importAccordion = new Accordion();
List<KeystoreFileImport> keystoreImporters = List.of(new ColdcardSinglesig(), new CoboVaultSinglesig(), new KeystoneSinglesig(), new PassportSinglesig());
List<KeystoreFileImport> keystoreImporters = List.of(new ColdcardSinglesig(), new CoboVaultSinglesig(), new KeystoneSinglesig(), new PassportSinglesig(), new SeedSigner(), new SpecterDIY());
for(KeystoreFileImport importer : keystoreImporters) {
FileWalletKeystoreImportPane importPane = new FileWalletKeystoreImportPane(importer);
importAccordion.getPanes().add(importPane);

20
src/main/java/com/sparrowwallet/sparrow/io/SeedSigner.java

@ -0,0 +1,20 @@
package com.sparrowwallet.sparrow.io;
import com.sparrowwallet.drongo.wallet.WalletModel;
public class SeedSigner extends SpecterDIY {
@Override
public String getName() {
return "SeedSigner";
}
@Override
public String getKeystoreImportDescription() {
return "Import QR created on your SeedSigner by selecting Generate XPUB in the Signing Tools menu. Note that SeedSigner currently only supports P2WSH Multisig wallets.";
}
@Override
public WalletModel getWalletModel() {
return WalletModel.SEEDSIGNER;
}
}

4
src/main/java/com/sparrowwallet/sparrow/keystoreimport/HwAirgappedController.java

@ -16,9 +16,9 @@ public class HwAirgappedController extends KeystoreImportDetailController {
public void initializeView() {
List<KeystoreFileImport> importers = Collections.emptyList();
if(getMasterController().getWallet().getPolicyType().equals(PolicyType.SINGLE)) {
importers = List.of(new ColdcardSinglesig(), new CoboVaultSinglesig(), new KeystoneSinglesig(), new PassportSinglesig(), new SpecterDIY());
importers = List.of(new ColdcardSinglesig(), new CoboVaultSinglesig(), new KeystoneSinglesig(), new PassportSinglesig(), new SeedSigner(), new SpecterDIY());
} else if(getMasterController().getWallet().getPolicyType().equals(PolicyType.MULTI)) {
importers = List.of(new ColdcardMultisig(), new CoboVaultMultisig(), new KeystoneMultisig(), new PassportMultisig(), new SpecterDIY());
importers = List.of(new ColdcardMultisig(), new CoboVaultMultisig(), new KeystoneMultisig(), new PassportMultisig(), new SeedSigner(), new SpecterDIY());
}
for(KeystoreImport importer : importers) {

BIN
src/main/resources/image/seedsigner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
src/main/resources/image/seedsigner@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
src/main/resources/image/seedsigner@3x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Loading…
Cancel
Save