Skip to content

Using a Hardware Wallet

Bernardo Ramos edited this page Dec 21, 2020 · 4 revisions

Ledger Nano S

First you need to build and install the app on the device

Next you must install libaergo on your computer

Then:

  • Connect the Ledger device to the computer you will use
  • Open the AergoLite app on the Ledger device
  • Open a database with blockchain enabled (on the SQLite shell):
.open "file:test.db?blockchain=on"
  • Get the public key from the Ledger device:
pragma ledger=on
  • Reopen the db using the returned public key (in hex format):
.open "file:test.db?blockchain=on&admin=<pubkey>&...(other parameters here)..."

You must use the same admin public key on all nodes from your blockchain network.

Signing admin transactions

Connect the Ledger device to the computer and execute the following command:

pragma ledger=on

Now you can execute the commands that are reserved to the blockchain administrator.

The library will check if the device is connected and send the transaction to the device to be signed.

As this check can take a while, you can use the command bellow when you disconnect the device:

pragma ledger=off
Clone this wiki locally