Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

feat(node): add sequencer key file loading support#2871

Merged
theochap merged 4 commits intoop-rs:mainfrom
mikemillaa:p2pkeypair
Dec 4, 2025
Merged

feat(node): add sequencer key file loading support#2871
theochap merged 4 commits intoop-rs:mainfrom
mikemillaa:p2pkeypair

Conversation

@mikemillaa
Copy link
Contributor

Fixes design inconsistency where sequencer keys could only be passed via CLI args while regular P2P keys support file loading.

This adds --p2p.sequencer.key.path parameter to match the existing --p2p.priv.path pattern.

This resolves the TODO mentioned in optimism's devstack where they noted the missing file support for sequencer keys.

@codecov
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

❌ Patch coverage is 41.17647% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.2%. Comparing base (e800861) to head (737b8fa).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
bin/node/src/flags/signer.rs 41.1% 10 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@theochap
Copy link
Member

@mikemillaa this looks good to me. Feel free to fix the tests and I will put that in the merge queue

@mikemillaa
Copy link
Contributor Author

@mikemillaa this looks good to me. Feel free to fix the tests and I will put that in the merge queue

Hi I found some fmt and fix it, but I can't find the test you are mentioned above @theochap

@mikemillaa mikemillaa requested a review from theochap September 27, 2025 14:58
@wiz-b4c72f16a4
Copy link

wiz-b4c72f16a4 bot commented Oct 7, 2025

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 1 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
Total 1 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@mikemillaa mikemillaa requested a review from emhane October 7, 2025 15:06
@mikemillaa
Copy link
Contributor Author

Hi @theochap let me know if this need more fix. :)

Copy link
Contributor

@emhane emhane left a comment

Choose a reason for hiding this comment

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

lgtm

@theochap
Copy link
Member

@mikemillaa would you mind rebasing on main and fixing the lint-native + test CI jobs?

Add --p2p.sequencer.key.path parameter to load sequencer keys from files,
matching the pattern used by --p2p.priv.path for regular P2P keys.

- Add sequencer_key_path field to SignerArgs struct
- Implement resolve_sequencer_key() method with file loading
- Add ConflictingSequencerKeyInputs error for input validation
- Add tests for file loading and conflict detection
- Fix unreachable!() with proper error handling in conflict check
@mikemillaa
Copy link
Contributor Author

mikemillaa commented Nov 17, 2025

@mikemillaa would you mind rebasing on main and fixing the lint-native + test CI jobs?

Should I clean codecov? how should it solved?

@theochap theochap enabled auto-merge December 3, 2025 18:04
@theochap theochap added this pull request to the merge queue Dec 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 3, 2025
@theochap theochap enabled auto-merge December 3, 2025 20:20
@theochap theochap added this pull request to the merge queue Dec 3, 2025
Merged via the queue into op-rs:main with commit 6af74a2 Dec 4, 2025
41 of 46 checks passed
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
Fixes design inconsistency where sequencer keys could only be passed via
CLI args while regular P2P keys support file loading.

This adds `--p2p.sequencer.key.path` parameter to match the existing
`--p2p.priv.path` pattern.

This resolves the[ TODO
mentioned](https://github.com/ethereum-optimism/optimism/blob/44d3429d2913c8c90fbb0848e14c1022b8ca2267/op-devstack/sysgo/l2_cl_kona.go#L196)
in optimism's devstack where they noted the missing file support for
sequencer keys.

---------

Co-authored-by: theo <80177219+theochap@users.noreply.github.com>
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
Fixes design inconsistency where sequencer keys could only be passed via
CLI args while regular P2P keys support file loading.

This adds `--p2p.sequencer.key.path` parameter to match the existing
`--p2p.priv.path` pattern.

This resolves the[ TODO
mentioned](https://github.com/ethereum-optimism/optimism/blob/44d3429d2913c8c90fbb0848e14c1022b8ca2267/op-devstack/sysgo/l2_cl_kona.go#L196)
in optimism's devstack where they noted the missing file support for
sequencer keys.

---------

Co-authored-by: theo <80177219+theochap@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants