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: erc2098 signature representation #874

Merged
merged 3 commits into from
Feb 25, 2025
Merged

feat: erc2098 signature representation #874

merged 3 commits into from
Feb 25, 2025

Conversation

onbjerg
Copy link
Contributor

@onbjerg onbjerg commented Feb 14, 2025

Motivation

This representation of the signature is slightly more compact and can be useful for on-chain signature verification as it saves calldata.

Closes #873

Solution

Add a helper to generate such a representation

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@onbjerg onbjerg added the enhancement New feature or request label Feb 14, 2025
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

should we add a constructor from_erc2098 as well?

@onbjerg onbjerg enabled auto-merge (squash) February 25, 2025 15:29
@onbjerg onbjerg merged commit d0a0be4 into main Feb 25, 2025
30 checks passed
@onbjerg onbjerg deleted the onbjerg/erc2098 branch February 25, 2025 15:36
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

Successfully merging this pull request may close these issues.

[Feature] Add compact signature representation for PrimitiveSignature
3 participants