Skip to content

commerceblock/ledger-app-boilerplate

 
 

Repository files navigation

Ledger DGLD app

This is a build system for the DGLD Nano S app, based on the Ledger boilerplate app (see below).

To build the app and load it onto the ledger:

./build.sh

Wait for the docker image to build, then

./load_dgld.sh

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 67.0%
  • Makefile 13.8%
  • Shell 12.2%
  • Dockerfile 4.2%
  • Python 2.8%