Skip to content
This repository was archived by the owner on Nov 11, 2021. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

233 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPChain ledger app

Overview

CPChain wallet application framework for Ledger Nano S.

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 ledger official document.

  • Compile and load the app onto the device:
make load
  • Remove the app from the device:
make delete

Examples of Ledger wallet functionality

Following packages maybe needed

sudo apt install python3-pip libssl-dev -y
sudo apt install libudev-dev libusb-1.0-0-dev -y
pip3 install ledgerblue cpc_fusion rlp ethereum
pip install Pillow
  • Test functionality:
# sign transactions
./examples/signTx.py --nonce 2  --gasprice 18000000000 --amount 1 --to 0x4d90553e566b67e593059f9aba02941f025578cd --txtype 0

# sign message
./examples/signMessage.py --message "Test message"

# get publickey
./examples/getPublicKey.py

Documentation

This follows the specification available in the api.asc.

Releases

Packages

Contributors

Languages