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

Update ECDSA signature length check #496

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

YanhuiJessica
Copy link

recover(bytes32,bytes) no longer accepts compact signatures (i.e. 64-byte signatures) since 4.7.3.
Because package.json uses Openzeppelin ^5.0.0, consider only checking if the signature is 65 bytes long.

@drortirosh
Copy link
Contributor

actually, the entire signature length check should be removed from here... the only reason it was added, was to have an error reason starting with "VerifyingPaymaster" rather than "ECDSA".
But with the latest version, the inner exception is typed error anyway, and we use FailedOpWithRevert, to carry both AA error and actual inner revert reason

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