Keyring backend

Many Axeler CLI commands require an Quantum Portal account controlled by a secret key. Your secret key must be stored securely so as to minimize the risk of exposure to an attacker.

Like every Cosmos-based network, Quantum Portal nodes store secret keys in a keyring. The keyring can be configured with one of several backend implementations. Learn more about keyring backend configuration from the Cosmos keyring documentation.

Quantum Portal nodes use the file keyring backend by default. This means that your secret keys are stored in a password-encrypted file on disk. Under the file backend, you must provide your keyring password each time you execute certain Quantum Portal CLI commands.

⚠️

Protect your keyring password: There are several methods to provide your password for Quantum Portal CLI commands. Each method comes with its own security and convenience properties. Whichever method you choose, be sure to follow best practices to keep your keyring password safe.

Prerequisites

Manual password entry

A simple and highly-secure method for password entry is to type your password whenever an Quantum Portal CLI command prompts for it. For example, you can print the address of your account named my_account as follows:

$QPD_HOME/bin/QPd keys show my_account -a
Enter keyring passphrase: {TYPE_YOUR_PASSWORD_HERE}

Automatic password entry

It can be inconvenient to type your password for each Quantum Portal CLI command, especially if you wish to automate CLI commands.

Suppose your keyring password is stored in a shell environment variable called KEYRING_PASSWORD. You could prefix your CLI commands with echo $KEYRING_PASSWORD | . For example:

echo $KEYRING_PASSWORD | $QPD_HOME/bin/QPd keys show my_account -a
☠️

Danger: If an attacker were to gain access to your system then the attacker could read your keyring password from your shell environment and then use it to expose your secret keys.

QP Documentation elides password entry

For clarity, Quantum Portal CLI documentation elides password entry from CLI commands. You must amend CLI commands according to whichever method of password entry you choose.

Example: to print the address of your account named my_account we write only

$QPD_HOME/bin/QPd keys show my_account -a
Edit this page