-
Notifications
You must be signed in to change notification settings - Fork 30
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(v2): use nested eip-712 approach for isValidSignature #36
feat(v2): use nested eip-712 approach for isValidSignature #36
Conversation
046b0bc
to
0c98b9d
Compare
1d1c48d
to
fa694c6
Compare
0c98b9d
to
4e8b9ae
Compare
fa694c6
to
9836dde
Compare
4e8b9ae
to
335cf09
Compare
9836dde
to
775df0e
Compare
335cf09
to
51523a2
Compare
775df0e
to
4774a7f
Compare
51523a2
to
d5dda60
Compare
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.
Looks good, will base the specialized signature features off of this branch.
result := iszero(and(eq(chainid(), cachedChainId), eq(address(), cachedThis))) | ||
} | ||
} | ||
} |
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.
newline for consistency
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.
The source files don't have it and these are ported untouched - I'll keep it this way but happy to revisit later!
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.4; | ||
|
||
/// @notice Contract for EIP-712 typed structured data hashing and signing. |
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.
Request to add the solady commit hash this was pulled from.
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.
Will probably track this in the readme or something upstack.
ab666c3
to
b4f2a46
Compare
d5dda60
to
04525d9
Compare
For transparent signing of messages (for the 712 case).
Inspired by:
Note that this removes the need for a typehash to be declared on the contract.