-
Notifications
You must be signed in to change notification settings - Fork 10
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
PBH 4337 Module #87
PBH 4337 Module #87
Conversation
I have to disable |
contracts/src/PBH4337Module.sol
Outdated
// We need to remove the proof from the signature before validation | ||
if (isPBH && userOp.signature.length > expectedLength) { | ||
// 352 bytes is the size of the encoded proof | ||
require(userOp.signature.length - expectedLength == 352, "Invalid proof size in signature"); |
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.
Can we use a custom error here?
Co-authored-by: 0xKitsune <[email protected]>
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.
Nice work, LGTM
chore(contracts): Combine `PBHEntryPointImplV1` and `PBHVerifier` logic into a single contract
TODO: Fork safe-modules inside worldcoin GH and add
virtual
modifier to _validateSignaturesoriginal impl of
_validateSignatures
- https://github.com/safe-global/safe-modules/blob/main/modules/4337/contracts/Safe4337Module.sol#L275-L299