Skip to content

feat: sequencer multi key support - #50

Open
tomatoishealthy wants to merge 3 commits into
mainfrom
feat/multi_key_support
Open

tomatoishealthy wants to merge 3 commits into
mainfrom
feat/multi_key_support

Conversation

@tomatoishealthy

Copy link
Copy Markdown

PR checklist

  • Tests written/updated, or no tests needed
  • CHANGELOG_PENDING.md updated, or no changelog entry needed
  • Updated relevant documentation (docs/) and code comments, or no
    documentation updates needed

allen.wu and others added 3 commits November 17, 2026 07:01
…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>>
@tomatoishealthy
tomatoishealthy marked this pull request as ready for review November 23, 2026 03:07
@tomatoishealthy
tomatoishealthy requested review from a team and freefu-sec November 23, 2026 03:07

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant