Skip to content
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

Alloy signing integration #970

Open
wants to merge 1 commit into
base: l-monninger/signing-api
Choose a base branch
from

Conversation

musitdev
Copy link
Contributor

Summary

  • RFCs: Link to RFC, Link to RFC, or $\emptyset$.
  • Categories: any of protocol-units, networks, scripts, util, cicd, or misc.

First version of Alloy crate integration for signing with the API. Inspired from the Alloy AWS implementation alloy_signer_aws::AwsSigner

Changelog

Testing

Outstanding issues

}

#[async_trait::async_trait]
impl alloy_network::TxSigner<AlloySignature> for HsmSigner {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you already worked on the code for how this gets integrated? I think it's still probably easier for us to change the usage s.t. we are producing a raw transaction and signing that rather than tightly coupling with a target API.

/// Instantiate a new signer from an existing `Client` and key ID.
///
/// Retrieves the public key from HMS and calculates the Ethereum address.
pub async fn new(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Because this returns a result, I would call it try_new

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.

2 participants