feat(node): add sequencer key file loading support#2871
Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. |
|
@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 |
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension. |
|
Hi @theochap let me know if this need more fix. :) |
|
@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
809e2b1 to
f4a651b
Compare
Should I clean codecov? how should it solved? |
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>
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>
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.pathparameter to match the existing--p2p.priv.pathpattern.This resolves the TODO mentioned in optimism's devstack where they noted the missing file support for sequencer keys.