Skip to content

Conversation

@Himess
Copy link
Contributor

@Himess Himess commented Jan 13, 2026

Closes #390

@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Jan 13, 2026

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Copy link
Contributor

@refcell refcell left a 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.

Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Remove clones

@cb-heimdall
Copy link
Collaborator

Review Error for refcell @ 2026-01-13 23:09:39 UTC
User failed mfa authentication, see go/mfa-help

@Himess Himess force-pushed the refactor/replace-custom-signer-with-alloy branch from 1bd7a11 to 06fee44 Compare January 14, 2026 13:33
@Himess Himess marked this pull request as draft January 14, 2026 16:32
@Himess Himess force-pushed the refactor/replace-custom-signer-with-alloy branch from 06fee44 to b5e5f2c Compare January 14, 2026 16:48
@Himess
Copy link
Contributor Author

Himess commented Jan 14, 2026

Hi @refcell , Force-pushed due to upstream conflicts.
Clone : 44 → 31 (used &Signer references). Clones are mostly in tests.
Want me to use Arc<Signer> instead for zero clones?

@Himess Himess marked this pull request as ready for review January 14, 2026 16:48
@Himess Himess requested a review from refcell January 14, 2026 16:50
haardikk21
haardikk21 previously approved these changes Jan 14, 2026
@refcell
Copy link
Contributor

refcell commented Jan 14, 2026

Hi @refcell , Force-pushed due to upstream conflicts. Clone : 44 → 31 (used &Signer references). Clones are mostly in tests. Want me to use Arc<Signer> instead for zero clones?

Nice work on the rebase, there were quite a few changes!

Yes I think Arc should work here nicely. We shouldn't need to ever modify the Signer so an atomic reference makes sense to me.

@Himess Himess force-pushed the refactor/replace-custom-signer-with-alloy branch from b5e5f2c to 3330aec Compare January 14, 2026 17:17
@Himess
Copy link
Contributor Author

Himess commented Jan 14, 2026

@refcell I am so sorry for force-update again :( That's mistake
I think it's ready

@Himess Himess force-pushed the refactor/replace-custom-signer-with-alloy branch from 3330aec to 9f8a5e0 Compare January 14, 2026 18:27
@refcell refcell force-pushed the refactor/replace-custom-signer-with-alloy branch from ae466ff to f5edd69 Compare January 14, 2026 19:34

// 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);
Copy link
Contributor

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
@refcell refcell force-pushed the refactor/replace-custom-signer-with-alloy branch from f5edd69 to f1871d5 Compare January 14, 2026 19:51
Copy link
Contributor

@refcell refcell left a 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

@refcell refcell requested a review from haardikk21 January 14, 2026 19:53
@cb-heimdall
Copy link
Collaborator

Review Error for refcell @ 2026-01-14 19:53:25 UTC
User cannot review their own commit

Copy link
Collaborator

@danyalprout danyalprout left a 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

@danyalprout danyalprout added this pull request to the merge queue Jan 14, 2026
Merged via the queue into base:main with commit 3ad2e03 Jan 14, 2026
12 checks passed
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.

refactor(op-rbuilder): Replace Custom Signer with Alloy's PrivateKeySigner

5 participants