Skip to content

Conversation

@jmg-duarte
Copy link
Contributor

Description

Start to set up the alloy signers etc, by removing the usage of SecretKey and SecretKeyRef

Changes

  • Replaces SecretKey/SecretKeyRef with PrivateKeySigner
  • Refactor the required tests
  • Replaces H256 with B256 where applicable

How to test

Existing tests

@jmg-duarte jmg-duarte requested a review from a team as a code owner December 17, 2025 14:31
@jmg-duarte jmg-duarte marked this pull request as draft December 17, 2025 14:31
@jmg-duarte jmg-duarte mentioned this pull request Dec 17, 2025
4 tasks
Base automatically changed from jmgd/alloy/rpc to main December 19, 2025 00:32
@jmg-duarte jmg-duarte marked this pull request as ready for review December 19, 2025 07:28
Copy link
Contributor

@MartinquaXD MartinquaXD left a comment

Choose a reason for hiding this comment

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

Mostly nits.

EcdsaSigningScheme::Eip712,
&onchain.contracts().domain_separator,
SecretKeyRef::from(&SecretKey::from_slice(trader_a.private_key()).unwrap()),
&PrivateKeySigner::from_slice(trader_a.private_key()).unwrap(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you consider adjusting the private_key() function to already return a PrivateKeySigner? Don't know if we ever need to use the raw bytes NOT for initializing that type.

Copy link
Contributor Author

@jmg-duarte jmg-duarte Dec 19, 2025

Choose a reason for hiding this comment

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

@jmg-duarte jmg-duarte enabled auto-merge December 19, 2025 09:13
@jmg-duarte jmg-duarte added this pull request to the merge queue Dec 19, 2025
Merged via the queue into main with commit 643cbfd Dec 19, 2025
19 checks passed
@jmg-duarte jmg-duarte deleted the jmgd/alloy/signer branch December 19, 2025 09:34
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2025
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.

4 participants