-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Minimal support for ERC2771 (GSNv2) #2508
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to evaluate whether this TrustedForwarder
implementation is compliant with the GSNv2 ERCs. I could only find a PR for an EIP that has been closed due to inactivity: ethereum/EIPs#2770. In this draft there is something weird about extending the ForwardRequest
type that I don't understand where it fits in the GSNv2 picture. The signature for the verify
and execute
functions are different from what we have here.
Do you know if these two functions got changed at some point?
Co-authored-by: Francisco Giordano <[email protected]>
AFAIK, there is no requierements about what the forwarder should or should not do. I went with a ERC712 metatx relayer, but anything is possible. My understanding is that the standard focus on the data encoding between the forwarder and the recipient. How the forwarder works, and how it verifies ownership before encoding data is not specified. |
There is at least a requirement for the |
Actually, there is no EIP but I suppose the current de facto spec is the OpenGSN repo and it seems we're implementing a different |
We will get a verification audit of GSN v2 smart contracts, including Forwarder, in a very short time. I don't expect Forwarder to be affected, but still, after that I will update the ERCs with current interfaces. In the meanwhile we accepted a proposal to add optional expiration date to the base |
Co-authored-by: Francisco Giordano <[email protected]>
…s into feature/GSNv2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
This PR includes a ERC2771 compatible BaseRelayRecipient and a compatible, ERC712 based, relayer.
Fixes #2258
PR Checklist