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

feat: prepare reth Signature migration to alloy #732

Merged
merged 9 commits into from
Sep 9, 2024

Conversation

leruaa
Copy link
Contributor

@leruaa leruaa commented Sep 7, 2024

Motivation

To achieve paradigmxyz/reth#10750 and replace reth Signature type by alloy one,

Solution

The following is needed:

  • impl Default for Parity
  • impl Hash and Default for Signature
  • add as_hex_bytes() and size() to Signature

I also moved some unit tests from reth to alloy.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

crates/primitives/src/signature/parity.rs Outdated Show resolved Hide resolved
crates/primitives/src/signature/sig.rs Outdated Show resolved Hide resolved
crates/primitives/src/signature/sig.rs Outdated Show resolved Hide resolved
@DaniPopes DaniPopes requested a review from klkvr September 9, 2024 09:49
@klkvr klkvr merged commit 00076ee into alloy-rs:main Sep 9, 2024
31 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.

4 participants