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

[Feature] Provide code to convert from alloy_primitives::Signature to alloy_rpc_types::Signature #890

Open
ufoscout opened this issue Jun 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ufoscout
Copy link

Component

rpc

Describe the feature you would like

The rpc crate provides code to convert from alloy_rpc_types::Signature to alloy_primitives::Signature; however, it is not clear how to perform the conversion in the opposite direction. Could you please provide an example to perform such a conversion or implement the try_from code directly in the rpc crate?

    let rpc_sig: alloy_rpc_types::Signature = ....;
    let primitives_sig = alloy_primitives::Signature::try_from(rpc_sig).unwrap();
    let rpc_sig2: alloy_rpc_types::Signature = ??? // <---- how to build it from primitives_sig?

Additional context

No response

@ufoscout ufoscout added the enhancement New feature or request label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant