mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
add krux as airgapped hww
This commit is contained in:
parent
afed5c65f5
commit
c9c0c35964
8 changed files with 40 additions and 3 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit 73eed3e292d6e3f91402fe024aede18b5a50a509
|
Subproject commit 74d2bfec24204300392d7a750b6b010038fb9727
|
25
src/main/java/com/sparrowwallet/sparrow/io/Krux.java
Normal file
25
src/main/java/com/sparrowwallet/sparrow/io/Krux.java
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
package com.sparrowwallet.sparrow.io;
|
||||||
|
|
||||||
|
import com.sparrowwallet.drongo.wallet.WalletModel;
|
||||||
|
|
||||||
|
public class Krux extends SpecterDIY {
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "Krux";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getKeystoreImportDescription(int account) {
|
||||||
|
return "Import QR created on your Krux by selecting Extended Public Key from the main menu once you have loaded your mnemonic.";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WalletModel getWalletModel() {
|
||||||
|
return WalletModel.KRUX;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isFileFormatAvailable() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,9 +24,9 @@ public class HwAirgappedController extends KeystoreImportDetailController {
|
||||||
public void initializeView() {
|
public void initializeView() {
|
||||||
List<KeystoreFileImport> fileImporters = Collections.emptyList();
|
List<KeystoreFileImport> fileImporters = Collections.emptyList();
|
||||||
if(getMasterController().getWallet().getPolicyType().equals(PolicyType.SINGLE)) {
|
if(getMasterController().getWallet().getPolicyType().equals(PolicyType.SINGLE)) {
|
||||||
fileImporters = List.of(new ColdcardSinglesig(), new CoboVaultSinglesig(), new Jade(), new KeystoneSinglesig(), new PassportSinglesig(), new SeedSigner(), new GordianSeedTool(), new SpecterDIY());
|
fileImporters = List.of(new ColdcardSinglesig(), new CoboVaultSinglesig(), new Jade(), new KeystoneSinglesig(), new PassportSinglesig(), new SeedSigner(), new GordianSeedTool(), new SpecterDIY(), new Krux());
|
||||||
} else if(getMasterController().getWallet().getPolicyType().equals(PolicyType.MULTI)) {
|
} else if(getMasterController().getWallet().getPolicyType().equals(PolicyType.MULTI)) {
|
||||||
fileImporters = List.of(new Bip129(), new ColdcardMultisig(), new CoboVaultMultisig(), new Jade(), new KeystoneMultisig(), new PassportMultisig(), new SeedSigner(), new GordianSeedTool(), new SpecterDIY());
|
fileImporters = List.of(new Bip129(), new ColdcardMultisig(), new CoboVaultMultisig(), new Jade(), new KeystoneMultisig(), new PassportMultisig(), new SeedSigner(), new GordianSeedTool(), new SpecterDIY(), new Krux());
|
||||||
}
|
}
|
||||||
|
|
||||||
for(KeystoreFileImport importer : fileImporters) {
|
for(KeystoreFileImport importer : fileImporters) {
|
||||||
|
|
6
src/main/resources/image/krux-icon-invert.svg
Normal file
6
src/main/resources/image/krux-icon-invert.svg
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="15px" viewBox="0 0 15 15" version="1.1">
|
||||||
|
<g id="surface1">
|
||||||
|
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(88.627451%,88.627451%,88.627451%);fill-opacity:1;" d="M 6.449219 2.867188 L 6.449219 5.390625 L 5.609375 5.390625 L 5.609375 6.242188 L 6.449219 6.242188 L 6.449219 12.132812 L 7.289062 12.132812 L 7.289062 9.609375 L 7.710938 9.609375 L 7.710938 10.449219 L 8.128906 10.449219 L 8.128906 11.289062 L 8.550781 11.289062 L 8.550781 12.132812 L 9.390625 12.132812 L 9.390625 11.28125 L 8.96875 11.28125 L 8.96875 10.4375 L 8.550781 10.4375 L 8.550781 9.597656 L 8.128906 9.597656 L 8.128906 8.765625 L 8.550781 8.765625 L 8.550781 7.925781 L 8.96875 7.925781 L 8.96875 7.074219 L 8.128906 7.074219 L 8.128906 7.914062 L 7.710938 7.914062 L 7.710938 8.757812 L 7.289062 8.757812 L 7.289062 6.242188 L 8.128906 6.242188 L 8.128906 5.390625 L 7.289062 5.390625 L 7.289062 2.867188 Z M 6.449219 2.867188 "/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1 KiB |
6
src/main/resources/image/krux-icon.svg
Normal file
6
src/main/resources/image/krux-icon.svg
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="15px" viewBox="0 0 15 15" version="1.1">
|
||||||
|
<g id="surface1">
|
||||||
|
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.901961%,14.901961%,14.901961%);fill-opacity:1;" d="M 6.449219 2.867188 L 6.449219 5.390625 L 5.609375 5.390625 L 5.609375 6.242188 L 6.449219 6.242188 L 6.449219 12.132812 L 7.289062 12.132812 L 7.289062 9.609375 L 7.710938 9.609375 L 7.710938 10.449219 L 8.128906 10.449219 L 8.128906 11.289062 L 8.550781 11.289062 L 8.550781 12.132812 L 9.390625 12.132812 L 9.390625 11.28125 L 8.96875 11.28125 L 8.96875 10.4375 L 8.550781 10.4375 L 8.550781 9.597656 L 8.128906 9.597656 L 8.128906 8.765625 L 8.550781 8.765625 L 8.550781 7.925781 L 8.96875 7.925781 L 8.96875 7.074219 L 8.128906 7.074219 L 8.128906 7.914062 L 7.710938 7.914062 L 7.710938 8.757812 L 7.289062 8.757812 L 7.289062 6.242188 L 8.128906 6.242188 L 8.128906 5.390625 L 7.289062 5.390625 L 7.289062 2.867188 Z M 6.449219 2.867188 "/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1 KiB |
BIN
src/main/resources/image/krux.png
Normal file
BIN
src/main/resources/image/krux.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
src/main/resources/image/krux@2x.png
Normal file
BIN
src/main/resources/image/krux@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
src/main/resources/image/krux@3x.png
Normal file
BIN
src/main/resources/image/krux@3x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in a new issue