LumiWave Protocol

Key Management

Key types and security management practices for validator operation

Key Types

LumiWave validators use several types of keys:

Key TypeFilePurposeSecurity Level
Node Keynode_key.jsonP2P network identificationMedium
Consensus Keypriv_validator_key.jsonBlock signingHighest
Operator KeyStored in keyringValidator management TXHigh
Relayer KeyHermes keyringIBC relay gas feesMedium

Key File Locations

~/.lumiwave-protocol/config/
├── node_key.json              # P2P identity key (all nodes)
├── priv_validator_key.json    # Consensus signing key (validator only!)
└── ...

Consensus Key Security

priv_validator_key.json is the most critical file for a validator.

Security Principles

  1. It must only exist on the validator server
  2. Never copy it to sentry or RPC nodes
  3. Store backups in a secure offline location
  4. Restrict file permissions:
chmod 600 ~/.lumiwave-protocol/config/priv_validator_key.json
chmod 600 ~/.lumiwave-protocol/data/priv_validator_state.json

Using the same priv_validator_key.json on two nodes simultaneously will cause double signing, resulting in severe slashing penalties.

Keyring Management

Keyring Backends

# file backend (encrypted with password, recommended for production)
lumiwave-protocold keys add validator --keyring-backend file

# os backend (uses OS keychain)
lumiwave-protocold keys add validator --keyring-backend os

# test backend (no password, development only)
lumiwave-protocold keys add validator --keyring-backend test

For production environments, use the file or os backend. The test backend stores keys without encryption.

Key Queries

# List all keys
lumiwave-protocold keys list --keyring-backend file

# Specific key info
lumiwave-protocold keys show validator --keyring-backend file

# Validator address (lumiwalop...)
lumiwave-protocold keys show validator --bech val --keyring-backend file

# Consensus public key
lumiwave-protocold tendermint show-validator

Key Recovery

Recover a key using the mnemonic (seed phrase):

lumiwave-protocold keys add validator --recover --keyring-backend file

Mnemonic Backup

Backup Checklist

  • Write down the 24-word mnemonic on paper
  • Store in 2 or more secure physical locations
  • Encrypt digital copies before storing
  • Do not store in plaintext on cloud storage
  • Periodically perform recovery tests

Backup Verification

# Test key recovery on a different machine
lumiwave-protocold keys add test-recover --recover --keyring-backend test
# After entering the mnemonic, verify that the address matches
lumiwave-protocold keys show test-recover -a --keyring-backend test
# Delete the test key after verification
lumiwave-protocold keys delete test-recover --keyring-backend test

Validator Key Migration

When migrating a validator to a new server:

1. Stop the Existing Node

sudo systemctl stop cosmovisor

2. Securely Copy Key Files

# From the old server (use a secure method such as SCP)
scp ~/.lumiwave-protocol/config/priv_validator_key.json \
  user@<NEW_SERVER>:~/.lumiwave-protocol/config/

scp ~/.lumiwave-protocol/data/priv_validator_state.json \
  user@<NEW_SERVER>:~/.lumiwave-protocol/data/

3. Remove Key from Old Server

# Securely remove the consensus key from the old server
rm ~/.lumiwave-protocol/config/priv_validator_key.json

4. Start the New Server

sudo systemctl start cosmovisor

During migration, always stop the old node first before starting the new one. If both nodes sign with the same key simultaneously, double signing will occur.

On this page