When to rotate keys
- Suspected compromise of
priv_validator_key.json - Migrating to a new host with a remote signer (tmkms)
- Hardware failure requiring a new consensus key
Preparation
- Ensure your operator key and Sovereign license are unaffected — key rotation only changes the consensus key
- Have a maintenance window scheduled
- Notify delegators if possible
Rotation procedure
1
Generate a new consensus key on the new/target setup
On the new host or remote signer:Note the new public key value.
2
Stop signing on the old key
Stop the validator or remote signer that holds the old consensus key:Verify the node has stopped completely before proceeding.
3
Submit MsgEditValidator with the new public key
4
Copy the new consensus key to the validator host
5
Reset priv_validator_state.json
The state file must be reset for a fresh key — do NOT copy an old state file for a new key:
6
Start the node
Verify the new key is active
priv_validator_key.json public key.