ERC-712 typed hash signatures in Sway

Does Sway support ERC-712 typed hash signatures?

This allows a user to know what they are signing, instead signing a byte string.

When you use 1inch or UniswapX you are signing typed signatures.

Does a basic implementation of ERC-712 exist for Sway, or do I need to implement this?

Also will the fuel wallet need to support this? Metamask has for quite some time with eth_signtypeddata_v4

Hey @partylikeits1983, we don’t have an implementation for typed signatures yet though it is in discussions, I will get back to you with more details on the same at the earliest.

Hey @partylikeits1983, we dont have it officially as of now, but if you want you can always create a custon sway implementation of eip 712