-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Sergey Tolmachev edited this page May 18, 2018
·
15 revisions
I think this can be repeated under the Mac OS X or linux.
You must install docker and python 2.7 for debug script.
Then start the ledger docker container at host with attached working directory:
docker run -t -v ~/Documents/ledger:/home/ledger -i tolsi/ledger-devenv
Then go to project path (for example /home/ledger/nanos-app-waves
) and build it:
make BOLOS_ENV=/opt/ledger-blue/ BOLOS_SDK=/home/nanos-secure-sdk
That's all!
Now install it to your ledger (you need to connect it to pc, unlock and be on the main menu screen, not in the app and python 2.7 with ledgerblue
package also):
virtualenv env
source env/bin/activate
pip install ledgerblue
and then
python -m ledgerblue.loadApp --appFlags 0x40 --path "44'/5741564'" --curve secp256k1 --curve ed25519 --targetId 0x31100003 --delete --tlv --apdu --fileName bin/app.hex --appName Waves --icon 0100000000ffffff00ffffffff7ffe3ffc1ff80ff007e003c003c007e00ff01ff83ffc7ffeffffffff --dataSize `cat debug/app.map |grep _nvram_data_size | tr -s ' ' | cut -f2 -d' ' `
or if you build it on your local machine
make delete
make load
Now you can try to communicate with it using python script, you need to install the dependencies:
pip install -r python2.7-dependencies.txt --no-index
Then enter the Waves app on your ledger and start python/ledger-waves.py
script.
python python/ledger-waves.py