Recreate private keys

From ObolNetwork/charon-distributed-validator-node · View interactive version

Recreate private keys is an AI agent skill from the GitHub repository ObolNetwork/charon-distributed-validator-node. Recreate private key shares for a Charon cluster while keeping the same validator public keys

How to use this skill

Skill file

Recreate Private Keys

Warning: This is an alpha feature and is not yet recommended for production use.

Refresh private key shares held by operators while keeping the same validator public keys. Validators stay registered on the beacon chain - only the operator key shares change. All operators must participate simultaneously.

Use Cases

Prerequisites

Before running, verify:

  1. .env file exists with NETWORK and VC variables set
  2. .charon directory with cluster-lock.json and validator_keys
  3. Docker is running
  4. jq installed

Read scripts/edit/recreate-private-keys/README.md for full details if needed.

Execution

Ask the user whether they want to run with --dry-run first to preview the operation.

./scripts/edit/recreate-private-keys/recreate-private-keys.sh [--dry-run]

Set WORK_DIR env var to override the repository root directory if running from a custom location.

The script will:

  1. Validate prerequisites
  2. Stop the VC container and export the anti-slashing database
  3. Run a P2P ceremony (all operators must participate simultaneously)
  4. Update ASDB pubkeys to match new key shares
  5. Stop containers
  6. Backup .charon/ to ./backups/
  7. Install new key shares
  8. Import updated ASDB
  9. Print commands to start containers manually

After completion, remind the user to wait ~2 epochs before starting containers.

Remind the user that all operators must run this script at the same time for the P2P ceremony to succeed.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.