From b3471d816fae70de52fcbb60d0f4f5baa020faf4 Mon Sep 17 00:00:00 2001 From: BLOCXTECH <134414477+BLOCXTECH@users.noreply.github.com> Date: Thu, 26 Oct 2023 17:59:47 +0530 Subject: [PATCH] Added BLOCX. Support --- Makefile | 11 ++++++++--- glyphs/blocx_64px.gif | Bin 0 -> 403 bytes glyphs/nanos_badge_blocx.gif | Bin 0 -> 95 bytes icons/blocx.png | Bin 0 -> 5253 bytes icons/nanos_app_blocx.gif | Bin 0 -> 104 bytes icons/nanox_app_blocx.gif | Bin 0 -> 3298 bytes icons/stax_app_blocx.gif | Bin 0 -> 3548 bytes include/btchip_context.h | 1 + 8 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 glyphs/blocx_64px.gif create mode 100644 glyphs/nanos_badge_blocx.gif create mode 100644 icons/blocx.png create mode 100644 icons/nanos_app_blocx.gif create mode 100644 icons/nanox_app_blocx.gif create mode 100644 icons/stax_app_blocx.gif diff --git a/Makefile b/Makefile index 0ac9f7b7..a5eafddf 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,11 @@ else ifeq ($(COIN),dash) DEFINES += BIP44_COIN_TYPE=5 BIP44_COIN_TYPE_2=5 COIN_P2PKH_VERSION=76 COIN_P2SH_VERSION=16 COIN_FAMILY=1 COIN_COINID=\"DarkCoin\" COIN_COINID_HEADER=\"DASH\" COIN_COINID_NAME=\"Dash\" COIN_COINID_SHORT=\"DASH\" COIN_KIND=COIN_KIND_DASH APPNAME ="Dash" APP_LOAD_PARAMS += --path $(APP_PATH) +else ifeq ($(COIN),blocx) +# Blocx +DEFINES += BIP44_COIN_TYPE=5 BIP44_COIN_TYPE_2=5 COIN_P2PKH_VERSION=25 COIN_P2SH_VERSION=26 COIN_FAMILY=1 COIN_COINID=\"DarkCoin\" COIN_COINID_HEADER=\"BLOCX\" COIN_COINID_NAME=\"BLOCX\" COIN_COINID_SHORT=\"BLOCX\" COIN_KIND=COIN_KIND_BLOCX +APPNAME ="BLOCX." +APP_LOAD_PARAMS += --path "44'/5'/950'" else ifeq ($(COIN),zcash) # Zcash (deprecated, code before the NU5 hard fork) $(error the zcash variant is deprecated and no longer functional since the NU5 hard fork) @@ -191,7 +196,7 @@ APPNAME ="Hydra" APP_LOAD_PARAMS += --path "44'/609'" else ifeq ($(filter clean,$(MAKECMDGOALS)),) -$(error Unsupported COIN - use bitcoin_testnet, bitcoin, bitcoin_cash, bitcoin_gold, litecoin, dogecoin, dash, zcash, horizen, komodo, stratis, peercoin, pivx, viacoin, vertcoin, stealth, digibyte, bitcoin_private, firo, gamecredits, zclassic, xsn, nix, lbry, resistance, ravencoin, hydra, hydra_testnet, xrhodium) +$(error Unsupported COIN - use bitcoin_testnet, bitcoin, bitcoin_cash, bitcoin_gold, litecoin, dogecoin, dash, blocx, zcash, horizen, komodo, stratis, peercoin, pivx, viacoin, vertcoin, stealth, digibyte, bitcoin_private, firo, gamecredits, zclassic, xsn, nix, lbry, resistance, ravencoin, hydra, hydra_testnet, xrhodium) endif endif @@ -324,11 +329,11 @@ dep/%.d: %.c Makefile ifeq ($(TARGET_NAME),TARGET_NANOS) listvariants: - @echo VARIANTS COIN bitcoin_testnet_legacy bitcoin_legacy bitcoin_cash bitcoin_gold litecoin dogecoin dash horizen komodo stratis peercoin pivx viacoin vertcoin stealth digibyte bitcoin_private firo gamecredits zclassic xsn nix lbry ravencoin resistance hydra hydra_testnet xrhodium + @echo VARIANTS COIN bitcoin_testnet_legacy bitcoin_legacy bitcoin_cash bitcoin_gold litecoin dogecoin dash blocx horizen komodo stratis peercoin pivx viacoin vertcoin stealth digibyte bitcoin_private firo gamecredits zclassic xsn nix lbry ravencoin resistance hydra hydra_testnet xrhodium else listvariants: - @echo VARIANTS COIN bitcoin_testnet_legacy bitcoin_legacy bitcoin_cash bitcoin_gold litecoin dogecoin dash horizen komodo stratis peercoin pivx viacoin vertcoin stealth digibyte bitcoin_private firo gamecredits zclassic xsn nix lbry ravencoin hydra hydra_testnet xrhodium + @echo VARIANTS COIN bitcoin_testnet_legacy bitcoin_legacy bitcoin_cash bitcoin_gold litecoin dogecoin dash blocx horizen komodo stratis peercoin pivx viacoin vertcoin stealth digibyte bitcoin_private firo gamecredits zclassic xsn nix lbry ravencoin hydra hydra_testnet xrhodium endif diff --git a/glyphs/blocx_64px.gif b/glyphs/blocx_64px.gif new file mode 100644 index 0000000000000000000000000000000000000000..9177ba5c77f12bff929c7f2bfa67ac63418ef761 GIT binary patch literal 403 zcmV;E0c`$9Nk%w1VL$*t0Du4h00030|NkNX3r_AJGkjoh?@s&$SB#H`DR>)CU~22_6SlqSy3Z>&8a9hFSOWlXmK#C< literal 0 HcmV?d00001 diff --git a/icons/blocx.png b/icons/blocx.png new file mode 100644 index 0000000000000000000000000000000000000000..8725dad6190def4dbb96f459967a29766a9af7db GIT binary patch literal 5253 zcmV;06ng84P)eM_Cqe-rrF$%eDpGrj zQN2inQYk{`^5Yb|MEffuloyLp9)HeUitL=*il7M8t7Lrz64S&J(f`}2!G)D8d#7O$TO>`jDP=LE|B8g(S-uW?Tv{}2vG#{!v>-k=bFb(sz!8AQ}y_XHbjS4 zrods`C2EHh1<%&PX54=Xg$fV6ACD1C7}k#HuuAIj(f=Uobs3cf_U)3mKq6GKWrD(^ zR}mc?pPscVFy&-+gQ!D;-3^f>YlIabzB- zGY4J#={FP_?A}APVY_(@_V3uk-0!>SWTI<$=H6LE!68DakZ~#nh%LL+Pgrpgb8feu zuXimBe2@ZRZGSGjtW+w;J~XVU?4S-td`dwh#WQ1gpkeeE%=B*dzV7qyiN-CXppg=Y zSvrqb)xR#H&;V|3`Z#toW7gN8Zu?In8g+~F{kZS(sZ=HiL?ADBCOY+K3Jo%6+6yCr z3CoG*d`EQ2Y4)$fZY=!CJcej~>t9rAlv-tBXM{-@zi%OWVUBqWjKV)Ena76Bu)n`> zFLPQSo5v2XLNu~71%gru^Y7Oa zz4E#Fnp2NrBCv&ej6~cq9`TD8k`_pHrWJZ!N}<7?BBCB2nr#QX+m|}2$HyJcc@M$l z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+(T zIm#65=H4!a0obzs1zC|%Y)>+%9A$#I-FP};%aFLT`PF*G1~B=ULFEVxabY|a8R+!7 zXL=>2XRLiBN^erRO(`u3SWR{3oiW<&BCUK^v7rb1pGxIO2Dxm&JJ{I_3111wauwzq z1+1b*xTz=!-x*=-7OF@C_{J_&4kyF~LCk&>v+3GMIz=BBOq98=3e+tUa3C30#1v~j zD;Yr~5J=6$KH)^EUR*elxUEU0{TBtrKe@<*^XJZ`-84Q~AsF#L_(*W-|JDH{00000 LNkvXXu0mjfu$|_5 literal 0 HcmV?d00001 diff --git a/icons/nanos_app_blocx.gif b/icons/nanos_app_blocx.gif new file mode 100644 index 0000000000000000000000000000000000000000..61210b0c961abe4969107b0426277e0684810d97 GIT binary patch literal 104 zcmZ?wbhEHb6krfwXkY+=|Ns9h{^#~{4GDI33~)8lGhk)}iYoqOVFAhNfC!Lc1}2@J z{>}ruA47aT??}_y!;^Qq_U|-SPHFSH9H!A8X!gaq)2RvNBi$0NrsS A4gdfE literal 0 HcmV?d00001 diff --git a/icons/nanox_app_blocx.gif b/icons/nanox_app_blocx.gif new file mode 100644 index 0000000000000000000000000000000000000000..89099f377d317922005223e2c8c9bdc9745016b6 GIT binary patch literal 3298 zcmZ?wbhEHbl^mD=EpgRrkzIOi#74 za;?Zr3(3#VQ7|;pGciyH8d8*!W)9*)yk4ojh^;*wG`04;?(Pf8X9cyLau}v3=XtEt@xO z+^~M#+BK_Jtz5Bu+0rG87cE>cf8N|VvuDkmF@4(9DU&BnoY3Fb+tc0E+0owC+S1(A z*ic_rTT@+CSy5hAT2fq8SdgEWo0FZDnUS8Bnv$H9m=GTq8xtKB84(^98WJ277~t>c z>*MX^>EZ6?>f-F==wNSWYh!I?X<=?=YGQ0;XrQmBtD~)@siCf>s-mo zDIqQHvVc8w{)|3sn13GUq*FS@W79H1*4w zVi$`ihqna^yDmDl*iprcWg@fFmK%&B{j5(ORzyf$Wpm-)U@FFPT8V+thN)x4H^z-2 qOkB+eF7nz;QU0}4alWOR3L6V=8Ur62w;=;Ba|fefgNBA8gEat_pm$jS literal 0 HcmV?d00001 diff --git a/icons/stax_app_blocx.gif b/icons/stax_app_blocx.gif new file mode 100644 index 0000000000000000000000000000000000000000..f695b452bf46d658e0aba78d250c3b63ea3dd60c GIT binary patch literal 3548 zcmZ?wbhEHbRA5kG_#(|9BqXGuprELzsIRYYU|?WpXJ>D3@9XOu6BCn_m6e^HU0GRK zRaMo|(b3u2Ieq%{88c=qTefV=mMvSiZas43$fZk{E?>U<@ZrNpj~;#a@ZsafkN^Mw zXFvjqKUu&$#sAz9z5xm@i6x0Z+Qz=3ATc>RwL~E)H9a%WR{j0%{pt#tDYok2roINg z16w1-Ypui3%0DIeEoa6}IY$DfvmMRzNmL zSYKTMtfVB{R^2lRbv?qf0W=5N78U>w%rBmz#&1L9iw7iFdb zEdd#4XJ`Xff+7aARUc#xlC?n3fQ5j*0WsmB12UBMVAK+l!gw^eMuUr_5FknMXzCgb zE|NlkB*mktYc#k>3IUQ752MtDXxFCZ0UNXBz*Z~c|9^k~{QmXx$MeX-RQWVL^UgZccVqW=48iYD#iaVnTde zY)o`iWJGvaXh?8SV1U1$uaCEvr-!?ntBbRfql3Mjt&O#nrG>efsfn?Xp@F`hu8y{r zriQwjs*19bqJq4ftcH-=R`T@i_Y#zr zWYV9MS+1H;HcecNpCN4$JA>f7-Z}a??zZ9#B4Vu4+{`J=+js2T8LH18#mZ0}(qXD{ zfMHV?1HbeV1}14<&dZILIVWAZ!aGfJO1a5`h0-Dh^(^{DPxQGZSzLHUZcm!@&h8w8 z_$!9`?_&Pzs{2d?CiqX{(9`d`Q_b}FM4Rs!y^tc0Bu1V#&h*$j0iH1yHL819Pj7hJ z$}(}QSKOr!X~&KnXVWm=bH^cpooSMSzszLg%aV@VmEUq3COFNPoc}Xn3y+fPQKwoC zGld-*mlC)-CC&F9;&Mn(6I1mr{CcW4fp=ojp