Repository navigation
feat: sequencer multi key support - #50
tomatoishealthy wants to merge 3 commits into
Conversation
…ated key Let a sequencer hold several signing keys so that a planned key rotation needs no leader change: at the activation height the leader simply starts signing with the new key. - Signer: replace Sign/Address with Addresses/HasAddress/SignWith. - SequencerVerifier: add SequencerAtHeight. - StateV2: before each block, look up the address the L1 contract designates for the next height (signingAddrFor) and produce only if the signer holds that key. The address is chosen once in isActiveSequencer and passed through commitBlock to signBlock, so the eligibility check and the signature always use the same key. Breaking change for Signer / SequencerVerifier implementers (morph node). Co-authored-by: Cursor <cursoragent@cursor.com>
A Raft leader that holds no key for the address the L1 contract designates for the next block cannot produce it. Instead of stalling, it now asks the HA layer to move leadership to a member that does. - SequencerHA: add TransferLeaderToEligible(designated). - StateV2: signingAddrFor calls handOffLeader when the signer lacks the designated key. It is retried on every production tick for as long as the node stays leader, and is not triggered on followers, while the L1 tracker halts production, or when the verifier cannot tell who is designated. Breaking change for SequencerHA implementers (morph node hakeeper). Co-authored-by: Cursor <cursoragent@cursor.com>
The signer is built and logged by the node (morph) before it is handed to StateV2, and its addresses do not change for the life of the process, so logging them again on StateV2 start adds nothing. Remove the log and the now-unused addrHexes helper. Co-Authored-By: Claude Opus 5.5 <<EMAIL_ADDRESS>>
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
PR checklist
CHANGELOG_PENDING.mdupdated, or no changelog entry neededdocs/) and code comments, or nodocumentation updates needed