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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add isValidSignatureAndData
to Bouncer to verify method calls.
#891
Comments
I can grab this issue if no one else is working on it. For the method signature should we just add a bool to determine if it should validate the arguments and methodId or just the methodId ? Also I can't think of any alternative to:
so I'll just implement that |
@aflesher do you think it's worth two different methods/modifiers instead of the boolean switch? |
Good point. I think it does make sense to separate them. |
馃帀 Description
Add the ability for
Bouncer.sol
to check the method signature and/or arguments to a method, to allow a bouncer to sign a message for a very specific function call.The naive approach of
won't work because the signature is part of the data and you need the data to sign and you need the signature to get the data and you need the data to sign you get the point.
One option is to enforce that the signature is always at the end of the msg.data and then ignore the last 32 bytes.
The text was updated successfully, but these errors were encountered: