rrozek / ledger-app-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ledger boilerplate app

Overview

This app is a boilerplate for a Nano S/X app. It does very little, and just expose a minimal API (get_app_config, get_address).

Building and installing

To build and install the app on your Ledger Nano S you must set up the Ledger Nano S build environments. Please follow the Getting Started instructions at here.

If you don't want to setup a global environnment, you can also setup one just for this app by sourcing prepare-devenv.sh with the right target (s or x).

install prerequisite and switch to a Nano X dev-env:

sudo apt install python3-venv python3-dev libudev-dev libusb-1.0-0-dev

# (x or s, depending on your device)
source prepare-devenv.sh x 

Compile and load the app onto the device:

make load

Refresh the repo (required after Makefile edits):

make clean

Remove the app from the device:

make delete

Example of Ledger wallet functionality

Test functionality:

# (x or s, depending on your device)
source prepare-devenv.sh x
python test_example.py --account_number 12345

Documentation

This follows the specification available in the api.asc.

About

License:Apache License 2.0


Languages

Language:C 71.1%Language:Makefile 14.6%Language:Shell 8.8%Language:Python 5.5%