From c9c0c3596453f093df30993b0f25572cba420759 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 5 Oct 2023 10:35:55 +0200 Subject: [PATCH] add krux as airgapped hww --- drongo | 2 +- .../com/sparrowwallet/sparrow/io/Krux.java | 25 ++++++++++++++++++ .../keystoreimport/HwAirgappedController.java | 4 +-- src/main/resources/image/krux-icon-invert.svg | 6 +++++ src/main/resources/image/krux-icon.svg | 6 +++++ src/main/resources/image/krux.png | Bin 0 -> 1557 bytes src/main/resources/image/krux@2x.png | Bin 0 -> 1956 bytes src/main/resources/image/krux@3x.png | Bin 0 -> 2269 bytes 8 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/sparrowwallet/sparrow/io/Krux.java create mode 100644 src/main/resources/image/krux-icon-invert.svg create mode 100644 src/main/resources/image/krux-icon.svg create mode 100644 src/main/resources/image/krux.png create mode 100644 src/main/resources/image/krux@2x.png create mode 100644 src/main/resources/image/krux@3x.png diff --git a/drongo b/drongo index 73eed3e2..74d2bfec 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit 73eed3e292d6e3f91402fe024aede18b5a50a509 +Subproject commit 74d2bfec24204300392d7a750b6b010038fb9727 diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Krux.java b/src/main/java/com/sparrowwallet/sparrow/io/Krux.java new file mode 100644 index 00000000..42ac3502 --- /dev/null +++ b/src/main/java/com/sparrowwallet/sparrow/io/Krux.java @@ -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; + } +} diff --git a/src/main/java/com/sparrowwallet/sparrow/keystoreimport/HwAirgappedController.java b/src/main/java/com/sparrowwallet/sparrow/keystoreimport/HwAirgappedController.java index 0a1ec44f..4effeaf1 100644 --- a/src/main/java/com/sparrowwallet/sparrow/keystoreimport/HwAirgappedController.java +++ b/src/main/java/com/sparrowwallet/sparrow/keystoreimport/HwAirgappedController.java @@ -24,9 +24,9 @@ public class HwAirgappedController extends KeystoreImportDetailController { public void initializeView() { List fileImporters = Collections.emptyList(); 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)) { - 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) { diff --git a/src/main/resources/image/krux-icon-invert.svg b/src/main/resources/image/krux-icon-invert.svg new file mode 100644 index 00000000..cd06d9b2 --- /dev/null +++ b/src/main/resources/image/krux-icon-invert.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/main/resources/image/krux-icon.svg b/src/main/resources/image/krux-icon.svg new file mode 100644 index 00000000..40a60e81 --- /dev/null +++ b/src/main/resources/image/krux-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/main/resources/image/krux.png b/src/main/resources/image/krux.png new file mode 100644 index 0000000000000000000000000000000000000000..5c2a34f0494e64b05ca647c0bee56822f45ef01e GIT binary patch literal 1557 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nETS*a18X}-P;T0k}j0~@0d12d4t z2!srbQVgtMHUmQ#qcofy$EX2S!vs`g$N(f6M1eT1J(Gb2s=fwDgFpfh15JX^0htx4 zIk|}?`9%r=MfnQGdM0`x=P)f`g6lI{z>Hu6sd^Q;1t47vHWgMtW^QUpqC!P(PF}H9g{=};g%ywu z64qBz04piUwpEJo4N!2-FG^J~(=*UBP_pAvP*AWbN=dT{a&d!d2l8x{GD=Dctn~HE z%ggo3jrH=2()A53EiLs8jP#9+bb%^#i!1X=5-W7`ij^UTz|3(;Elw`VEGWs$&r<-I zo0ybeT4JlD1hNPYAnr`9$VAwbR}A$Q(1ZFQ8GS=N1AT1TfS!fB4@Fl+VgXJ~C7EeB z>;lO^w1EQy;zk>g3#`DA80nIko0?Y)^pBmXfeqMc7!nB2A!&@jr4dO2Nh8o(R?bDK zpd=HLpPyrgEd|-=qpLzQz!wTUEv=@BV?LJ~h%6qx$$xPZX|%Sm=z#ak;c z0rT@pPZ!6KjK;S&{k=mHMUH>$H}-YfTy#^-D{(=q!n->j7vu|!^`f>EJU$hEQTv50 zhg0_!k3~&cqI+8o-Rf|?!o4Ek;2byc^BhJ~me`yxo$|SL_fGM1JNH+g`)m8$Zn^?T zlY)h%Gi%bdLiX?r2c>KDCoH!(T+yhvtzdQ6lC4gK?Z5gSO%V#RR7|>3Z{I^J@_V5Rq&JHx(xTjh1a{m${WFI#^&M9Hwvs_*^i zyXW=X|D7x6c&^S{%dD-oxp`{YTE1x?cb30x-?GuR@$`tW&G9tUGrKm|F~$}HT#lt%yhdAoAmk|1y~#lV!kn&rpLeDxPInoP?6~A>gTe~ HDWM4fi6jA( literal 0 HcmV?d00001 diff --git a/src/main/resources/image/krux@2x.png b/src/main/resources/image/krux@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0f10c738ae5ddc2b0b5d489b15971e062fd3113 GIT binary patch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XRy85}Sb4q9e0I@y5D*ylh literal 0 HcmV?d00001 diff --git a/src/main/resources/image/krux@3x.png b/src/main/resources/image/krux@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..77d96c84800c6e775878616e7ccdd5526f499fba GIT binary patch literal 2269 zcmb_eX;4#F6n+HC04<=Uj;(-=Fcw=RFA0hgNKl)qj6^5`4GaVVJR~I>Ng#2745E`- zEw;s_I>a1st5ML~fQ5)e6vh>4YO*jyn=LiU)pAORUYhCQ&;CZaU52b~s%{gfv_uzol^ z4(~y6z+$n1g5(rZICc9h9Q-1Cq>4m*5)6yQVw~6)#}n*@3I6{6FrEk#i9W!>N4SqG zVoH3tLeCi|ul!IEVUmEw7qNI;Eb5n;$jcCsJv`7rb2O7DB4N!(;tFTW0tLdT1}5O} z@M17f>|B1Yp(ITHk{}T)WrB>G zf6@j&5@EA9o=8H=K;67%YvBiN35gz#2zl%b^dc$#et1AI0o?=PH`EKE^TLE*6YD{8}_B^ zp^LkiUM%X#lYKva)Ap5vb-T@bM;xD@YrWN8-yO1iNd0o0otdI*>V1}T->p!n8|awq z3XnY;DL|hri&H|4TY=HOuhbY^Xnbe)+(6a?R(4(c6Q?212^bz0hc1 zOL4J##|C4aQ@aI=U-o~BSBzIfA7M5ZQ?w?nCRamNj+l%EZo;dA37MwdC$y;h_`dCr z@5Plcim#~z6Iq&kuLebWY@D1z_kZcEsZcn7-Tuh6r`JhdRI<0}sR53RuQ@V0+#C9L zKs~(57L${+B>}taeLEXVap+>XFjie57}#pq(jRn?8!=p&%{}$;N8)c)^i5(qIgWf; zFyW~QmBZz3Q)l!leY|(Wl+q;JMdv?`RpiB7Ti(Ln;nnb~EH-zEe$>X69@B*zQu~YS z)sgD#%p#%KrSayoO1(~_i^`L#5O>9irh(%_i5Qh+b@6IB4g_lapzuyy^Twr`+Yzjd zKO--{JbCqo*Tc!{nX!`!d&5afq^TnOyx_*UJk5gX%k4l21 z4VucTqNA~8*B*`^7`v%Iz$s_^v)^E@(xqN!s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