diff --git a/Makefile b/Makefile index 4715da52..d71101db 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 00000000..6e2d655f --- /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 00000000..e0e06ebd --- /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 00000000..2fe2d554 --- /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 00000000..91e58a78 --- /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