Skip to content

Enable contract signers #58

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Enable contract signers #58

wants to merge 7 commits into from

Conversation

robriks
Copy link
Contributor

@robriks robriks commented Dec 15, 2023

Added support for smart contract signers in both isValidSignature() and validateUserOp() for all contracts inheriting from AccountRails

Improved readability and gas optimization by converting isValidSignature() parameter to calldata, which allows for slicing rather than memory operations in assembly. This is not strictly outlined by the spec which defines the signature parameter in memory but more modern implementations use calldata for better efficiency and no tradeoff in usability since the function isn't called internally.

Also added test cases to show smart contract signers. Will add one last commit to handle the offset introduced by the validator flag and then should be good to merge after review

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.

1 participant