Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
1.7 KiB
Markdown
44 lines
1.7 KiB
Markdown
# Multi-Chain Execution — Key Rotation
|
|
|
|
**Last Updated:** 2026-01-31
|
|
**Document Version:** 1.0
|
|
**Status:** Active Documentation
|
|
|
|
---
|
|
|
|
**Scope:** Hot keys (execution), warm keys (MirrorRegistry publisher), cold keys (contract admin).
|
|
|
|
## Key tiers
|
|
|
|
- **Hot:** Transaction execution per lane; high turnover; segment by chain/wallet/lane.
|
|
- **Warm:** Commitment publishing to MirrorRegistry on public mainnets; one per chain or shared.
|
|
- **Cold:** Contract admin (MirrorRegistry, TransactionMirror, etc.); multisig + timelock preferred.
|
|
|
|
## Rotation procedure
|
|
|
|
### Hot keys
|
|
|
|
1. Generate new key; add to wallet lane config (env or secrets manager).
|
|
2. Sync nonce: set next nonce for (chainId, newWallet, lane) from on-chain getTransactionCount.
|
|
3. Route new intents to new wallet; drain or retire old wallet once pending txs finalize.
|
|
4. Update EO/config to use new wallet for that lane; remove old key from config.
|
|
|
|
### Warm keys (MirrorRegistry publisher)
|
|
|
|
1. Deploy or use existing MirrorRegistry; add new address as publisher via `setPublisher(newAddress, true)` (admin).
|
|
2. Configure Mirroring Service to use new warm key for submitCommit.
|
|
3. After confirming new key can submit: call `setPublisher(oldAddress, false)` (admin).
|
|
4. Rotate secret in KMS/env; restart Mirroring Service.
|
|
|
|
### Cold keys (contract admin)
|
|
|
|
1. Use multisig/timelock to propose new admin (e.g. MirrorRegistry.setAdmin(newAdmin)).
|
|
2. Execute after timelock; verify new admin on-chain.
|
|
3. Revoke old admin if applicable (contract-dependent).
|
|
|
|
## Verification
|
|
|
|
- Hot: Submit a test intent and confirm execution from new wallet.
|
|
- Warm: Trigger a commit and confirm CommitSubmitted event from new publisher.
|
|
- Cold: Perform a single admin action (e.g. setPublisher) and confirm it succeeds.
|