As you all know real hardware keys with protected secure element is the only safe way to store anything private these days, that’s why I’ve worked hard to make peercoin application for Ledger hardware wallets.
This is a short guide on how to get your Ledger device working with Peercoin.
#Preparation:
- Install Ledger Manager chrome application:
https://chrome.google.com/webstore/detail/ledger-manager/beimhnaefocolcplfimocfiaiefpkgbf
- Update your ledger to latest firmware using Ledger Manager (application works for firmware 1.4.2+)
UPDATE As of 28th of May 2018, Ledger officially supports Peercoin as one of supported cryptocurrencies. You can install Peercoin application in the Ledger Manager after installing Bitcoin application and skip to Operation section.
- Install necessary python modules that work with Ledger, you can use pip:
pip3 install ledgerblue
or clone and process requisites by hand:
git clone GitHub - LedgerHQ/ledger-blue: Ledger Blue, a personal security device from Ledger (blockchain / bitcoin / ethereum / FIDO)
-
If you want to build application yourself, install development kit following instructions here:
GitHub - LedgerHQ/ledger-blue: Ledger Blue, a personal security device from Ledger (blockchain / bitcoin / ethereum / FIDO) -
Clone and build official repo: GitHub - LedgerHQ/app-bitcoin: Bitcoin wallet application for Ledger Blue and Nano S or just use this hex:
app.hex (2.3 KB)
(make sure sha256 of app.hex equals to 62e7f161469b987288d8bc88fb92a76c261e0f60a9700b7b418d3fb2939c9c22)
#Installation
To load the application you have to first install bitcoin app (1.2.5) from the ledger manager and then issue these commands in your favourite terminal. Importing my public developer key is optional, it will allow you to bypass “non genuine app” warning.
to import my public developer key to your ledger hardware
Boot your ledger into recovery mode (press and hold the right button before inserting the connected USB cable to power on the device. The right button is the one far away from the USB connector, closest to the swivel hole. The Ledger Nano S will enter recovery mode)
python3 -m ledgerblue.setupCustomCA --targetId 0x31100003 --name “backpacker69” --public 04300986d41d30de87eea1c33b8783f6ddb9c26df5278818a464b3fd2ba5026df16510628fb8ada3033fc605ebf409070b408fa49423c2b1f543fa542e098947a2
to transfer application to your ledger hardware
Boot your ledger normally and unlock it, make sure Ledger Manager is not running on your computer and then type:
python3 -m ledgerblue.loadApp --curve secp256k1 --tlv --targetId 0x31100003 --delete --fileName app.hex --appName “Peercoin” --appVersion 1.2.5 --dataSize 0x00000000 --icon 0100000000ffffff00ffffffffffffffff0fff0ffc0ff88ff80ff11ff21ffa7ffeffffffffffffffff --path “” --appFlags 0x50 --dep Bitcoin --signature 304502205ddf68949eb3856193be284bbd080d5f63582f009ab437ee5f65c8af96dfd588022100abba7ea6f6fcc466b1ef1a752238c3394f638f6e78f7503af26abd9cea075e1c
If you have not installed customCA certificate, you may have to remove --signature hex from the command, so it will be:
python3 -m ledgerblue.loadApp --curve secp256k1 --tlv --targetId 0x31100003 --delete --fileName app.hex --appName “Peercoin” --appVersion 1.2.5 --dataSize 0x00000000 --icon 0100000000ffffff00ffffffffffffffff0fff0ffc0ff88ff80ff11ff21ffa7ffeffffffffffffffff --path “” --appFlags 0x50 --dep Bitcoin
in case you need to delete application from ledger hardware:
Boot your ledger normally and unlock it, make sure Ledger Manager is not running on your computer and then type:
python3 -m ledgerblue.deleteApp --appName Peercoin --targetId 0x31100003
You will have to confirm these operations on actual device, pay attention to signatures.
Operation
Now you can use official Ledger Wallet chrome application:
https://chrome.google.com/webstore/detail/ledger-wallet-bitcoin/kkdpmhnladdopljabkgpacgpliggeeaf
Open Peercoin application on your ledger device and after short setup, this chrome application will display your PPC balance, addresses and other tools.
I have made cointoolkit work with Ledger wallet, you can access it here:
FAQ
Q: Why do I get error 6d00 when trying to install the application?
A: Shut down Ledger Manager on the computer and try again
Q: Why do I get error 6985 when trying to install the application or customCA?
A: Boot into recovery mode to install customCA, boot ledger normally to install application
Q: Why doesn’t Ledger include Peercoin in their Ledger Manager applications?
A: Not sure, but you can ask Ledger [support] (https://support.ledgerwallet.com/hc/en-us).
Donations are accepted: PAyzZ8vjZX8nU3gmyp3NFHuRo6jbDSMhEr