Skip to content

coti-io/coti-ledger

Repository files navigation

COTI Ledger App

GitHub Stars GitHub Issues Current Version GitHub CI GitHub Lint GitHub Coverity Scan Coverity Discord Server

Overview

This is the Ledger Nano S/S+/X COTI app.

Building and Installing

Make sure that Docker is installed and build the ledger-app-builder:2.1.0 container image:

$ docker build -t ledger-app-builder:2.1.0 .

Make sure to install coreutils to have the realpath command available:

$ brew install coreutils

Compile the app:

$ docker run --rm -ti -v "$(realpath .):/coti" ledger-app-builder:2.1.0
root@d83f688268b3:/coti# cd app
root@d83f688268b3:/coti/app# make

After you've built the application, you can generate an installation script load.sh via:

root@d83f688268b3:/coti/app# make load-script
root@d83f688268b3:/coti/app# exit

Installing the Application

In order to install/uninstall the application, you need to install the ledgerblue python module and additional dependencies:

$ xcode-select --install

$ brew install python3 libusb
$ pip3 install ledgerblue hidapi

Afterwards, you can run the generated load.sh in order to install the application:

$ cd app
$ ./load.sh

You can uninstall the application via:

$ python3 -m ledgerblue.deleteApp --targetId 0x31100004 --appName "COTI"

Documentation

This follows the specification available in the api.md.