Support external signers in ethfinalizer - #218
Conversation
🧞 Codegenie ReviewTwo verified configuration-validation issues can defer invalid signer setup to a panic during transaction submission. CoverageReviewed 10/10 hunks.
|
|
just wondering where it the KMS part here..? |
Google KMS signer is only on relayer. ethkit only gets a generic signer interface so it doesn't acquire unnecessary dependencies. |
|
cool sounds good :) PR LGTM to merge |
ScreamingHawk
left a comment
There was a problem hiding this comment.
LGTM!
This feature is great even without the broader KMS context ❤️
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ethfinalizercurrently requires a concrete wallet, which prevents using a signer whose private key lives outside the process. Add a context-awareSignerinterface for initial transactions and fee replacements, plusNewWalletSignerfor local wallets.Local wallets remain a supported signing option for development, CI, testing, and other deployments. Existing callers can continue setting
FinalizerOptions.Wallet; callers using an external signer setSignerinstead. Construction requires exactly one. Persisted signed transactions are rebroadcast without signing again.Validation:
go test -race ./ethfinalizerpassed with Go 1.25.9. Added coverage for option compatibility, cancellation, signing failure before persistence, replacement signing, and rebroadcasting stored signatures.