xmtp / libxmtp

MIT License
33 stars 13 forks source link

Support ERC-6492 #757

Closed 37ng closed 3 weeks ago

37ng commented 1 month ago

Implemented erc6492_is_valid_signature function that does an eth_call that deploys a ValidateSigOffchain contract, during its construction it deploys a UniversalSigValidator and validates the address, hash, signature inputs.

closes #756

37ng commented 1 month ago

Made the change to use the offchain validation, run it through Ethereum mainnet and it worked. Adding more tests...

37ng commented 3 weeks ago

Added tests that supersede Viem's test coverage.

Will do full support(bindings, replacement of ERC1271 for ERC6492) in a follow-up PR.