-
Notifications
You must be signed in to change notification settings - Fork 110
refactor(builder): replace custom Signer with Alloy's PrivateKeySigner #426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(builder): replace custom Signer with Alloy's PrivateKeySigner #426
Conversation
✅ Heimdall Review Status
|
crates/builder/op-rbuilder/src/builders/flashblocks/builder_tx.rs
Outdated
Show resolved
Hide resolved
refcell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, would appreciate a second pair of eyes though.
refcell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove clones
|
Review Error for refcell @ 2026-01-13 23:09:39 UTC |
1bd7a11 to
06fee44
Compare
06fee44 to
b5e5f2c
Compare
|
Hi @refcell , Force-pushed due to upstream conflicts. |
Nice work on the rebase, there were quite a few changes! Yes I think |
b5e5f2c to
3330aec
Compare
|
@refcell I am so sorry for force-update again :( That's mistake |
3330aec to
9f8a5e0
Compare
ae466ff to
f5edd69
Compare
|
|
||
| // Create a temporary signer for the deposit | ||
| let signer = self.signer.unwrap_or_else(Signer::random); | ||
| let signer = self.signer.clone().unwrap_or_else(Signer::random); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a light clone since the signer type is small
Replace the custom secp256k1-based Signer implementation with a wrapper around Alloy's PrivateKeySigner. This eliminates manual cryptographic operations and consolidates signing logic using battle-tested upstream code. Changes: - Replace secp256k1 usage with alloy-signer's SignerSync trait - Use PrivateKeySigner::from_bytes() for key construction - Use sign_hash_sync() for message signing - Add SignerRef (Arc<Signer>) type alias for cheap cloning - Update BuilderConfig and FlashblocksBuilderTx to use SignerRef Closes base#390
f5edd69 to
f1871d5
Compare
refcell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now
|
Review Error for refcell @ 2026-01-14 19:53:25 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thank you @Himess
Closes #390