Key Management
Key types and security management practices for validator operation
Key Types
LumiWave validators use several types of keys:
| Key Type | File | Purpose | Security Level |
|---|---|---|---|
| Node Key | node_key.json | P2P network identification | Medium |
| Consensus Key | priv_validator_key.json | Block signing | Highest |
| Operator Key | Stored in keyring | Validator management TX | High |
| Relayer Key | Hermes keyring | IBC relay gas fees | Medium |
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
- It must only exist on the validator server
- Never copy it to sentry or RPC nodes
- Store backups in a secure offline location
- Restrict file permissions:
chmod 600 ~/.lumiwave-protocol/config/priv_validator_key.json
chmod 600 ~/.lumiwave-protocol/data/priv_validator_state.jsonUsing 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 testFor 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-validatorKey Recovery
Recover a key using the mnemonic (seed phrase):
lumiwave-protocold keys add validator --recover --keyring-backend fileMnemonic 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 testValidator Key Migration
When migrating a validator to a new server:
1. Stop the Existing Node
sudo systemctl stop cosmovisor2. 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.json4. Start the New Server
sudo systemctl start cosmovisorDuring 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.
Related Documents
- Become a Validator — Validator creation
- Slashing — Double signing penalties
- Firewall Configuration — Server security