From 01328a794b12be3ad2eedfbd2d8bdd2be67bea03 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Mon, 26 Feb 2024 11:08:40 +0100 Subject: [PATCH] New legacy app that retains support for the internal Starkware plugin that has been dropped from the main app in the newer versions --- Makefile | 4 ++-- icons/nanos_app_eth_starkex.gif | 1 + icons/nanox_app_eth_starkex.gif | 1 + icons/stax_app_eth_starkex.gif | 1 + makefile_conf/chain/eth_starkex.mk | 13 +++++++++++++ 5 files changed, 18 insertions(+), 2 deletions(-) create mode 120000 icons/nanos_app_eth_starkex.gif create mode 120000 icons/nanox_app_eth_starkex.gif create mode 120000 icons/stax_app_eth_starkex.gif create mode 100644 makefile_conf/chain/eth_starkex.mk diff --git a/Makefile b/Makefile index 4715da52a..d71101db1 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ APP_LOAD_FLAGS= --appFlags 0xa40 --dep Ethereum:$(APPVERSION) ########################### ifeq ($(CHAIN),) -CHAIN=ethereum +CHAIN=eth_starkex endif SUPPORTED_CHAINS=$(shell find makefile_conf/chain/ -type f -name '*.mk'| sed 's/.*\/\(.*\).mk/\1/g' | sort) @@ -286,4 +286,4 @@ include $(BOLOS_SDK)/Makefile.rules dep/%.d: %.c Makefile listvariants: - @echo VARIANTS CHAIN $(SUPPORTED_CHAINS) + @echo VARIANTS CHAIN $(CHAIN) diff --git a/icons/nanos_app_eth_starkex.gif b/icons/nanos_app_eth_starkex.gif new file mode 120000 index 000000000..6e2d655fc --- /dev/null +++ b/icons/nanos_app_eth_starkex.gif @@ -0,0 +1 @@ +nanos_app_ethereum.gif \ No newline at end of file diff --git a/icons/nanox_app_eth_starkex.gif b/icons/nanox_app_eth_starkex.gif new file mode 120000 index 000000000..e0e06ebda --- /dev/null +++ b/icons/nanox_app_eth_starkex.gif @@ -0,0 +1 @@ +nanox_app_ethereum.gif \ No newline at end of file diff --git a/icons/stax_app_eth_starkex.gif b/icons/stax_app_eth_starkex.gif new file mode 120000 index 000000000..2fe2d5543 --- /dev/null +++ b/icons/stax_app_eth_starkex.gif @@ -0,0 +1 @@ +stax_app_ethereum.gif \ No newline at end of file diff --git a/makefile_conf/chain/eth_starkex.mk b/makefile_conf/chain/eth_starkex.mk new file mode 100644 index 000000000..91e58a78c --- /dev/null +++ b/makefile_conf/chain/eth_starkex.mk @@ -0,0 +1,13 @@ +# Lock the application on its standard path for 1.5. Please complain if non compliant +APP_LOAD_PARAMS += --path "44'/60'" +DEFINES += CHAINID_UPCASE=\"ETHEREUM\" CHAINID_COINNAME=\"ETH\" CHAIN_KIND=CHAIN_KIND_ETHEREUM CHAIN_ID=1 +# Starkware integration +APP_LOAD_PARAMS += --path "2645'/579218131'" +DEFINES += HAVE_STARKWARE +DEFINES += STARK_BIP32_PATH_0=0x80000A55 STARK_BIP32_PATH_1=0xA2862AD3 +# Allow to derive ETH 2 public keys +APP_LOAD_PARAMS += --path "12381/3600" --curve bls12381g1 +DEFINES += HAVE_ETH2 +APPNAME = "Ethereum StarkEx" +DEFINES_LIB= +APP_LOAD_FLAGS=--appFlags 0xa40