rhinestonewtf / modulekit

Development Kit for building Smart Account Modules
https://docs.rhinestone.wtf/modulekit/
45 stars 26 forks source link

Account/safe7579 fix1271 #87

Closed zeroknots closed 4 months ago

zeroknots commented 4 months ago

Added code for ERC1271, that can validate with safe's signedMessage and checkSignature features.

using CoW's domain hash encoding from here: https://github.com/rndlabs/safe-contracts/blob/merged-efh-sigmuxer/contracts/handler/extensible/SignatureVerifierMuxer.sol#L154-L170