Skip to content

Commit

Permalink
New legacy app that retains support for the internal Starkware plugin…
Browse files Browse the repository at this point in the history
… that has been dropped from the main app in the newer versions
  • Loading branch information
apaillier-ledger committed Feb 27, 2024
1 parent 5de8726 commit 01328a7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -286,4 +286,4 @@ include $(BOLOS_SDK)/Makefile.rules
dep/%.d: %.c Makefile

listvariants:
@echo VARIANTS CHAIN $(SUPPORTED_CHAINS)
@echo VARIANTS CHAIN $(CHAIN)
1 change: 1 addition & 0 deletions icons/nanos_app_eth_starkex.gif
1 change: 1 addition & 0 deletions icons/nanox_app_eth_starkex.gif
1 change: 1 addition & 0 deletions icons/stax_app_eth_starkex.gif
13 changes: 13 additions & 0 deletions makefile_conf/chain/eth_starkex.mk
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 01328a7

Please sign in to comment.