Skip to content

Comments

feat: Adding an ECDSA verify#3595

Merged
mattsse merged 2 commits intoalloy-rs:mainfrom
hecmas:feat/crypto-verify
Jan 26, 2026
Merged

feat: Adding an ECDSA verify#3595
mattsse merged 2 commits intoalloy-rs:mainfrom
hecmas:feat/crypto-verify

Conversation

@hecmas
Copy link
Contributor

@hecmas hecmas commented Jan 26, 2026

Motivation

Following #2634, I've added a method for being able to inject an ECDSA verification.

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@kevaundray
Copy link
Contributor

Comment on lines 55 to 57
/// Serialized uncompressed public key
#[derive(Debug, Clone)]
pub struct UncompressedPublicKey(pub [u8; 65]);
Copy link
Member

Choose a reason for hiding this comment

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

do we even need this type?

rn the called would need to copy the 64bytes into this for

pubkey: &UncompressedPublicKey,

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can make it a type alias or use [u8;65] -- we needed it in reth-stateless for serialization reasons though it should be easy to convert in that crate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree with @kevaundray, I think a type alias would be the cleanest solution as for now.

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Jan 26, 2026
@mattsse mattsse merged commit fc337d2 into alloy-rs:main Jan 26, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants