Support for signing typed data (EIP712)
Does web3dart support EIP712 or are there plans to do so or would you accept a PR?
Intro:
- https://medium.com/metamask/scaling-web3-with-signtypeddata-91d6efc8b290
Spec:
- https://eips.ethereum.org/EIPS/eip-712
Client library implementations (this is what I am looking for in Dart):
- https://github.com/MetaMask/eth-sig-util
- https://github.com/rmeissner/py-eth-sig-utils
RPC based implementation (needs an Ethereum node):
- https://web3py.readthedocs.io/en/stable/web3.eth.html#web3.eth.Eth.signTypedData
Example use in an app library:
- https://github.com/crossbario/autobahn-js/blob/master/packages/autobahn-xbr/lib/eip712.js
- https://github.com/crossbario/autobahn-python/blob/master/autobahn/xbr/_eip712_base.py / https://github.com/crossbario/autobahn-python/blob/master/autobahn/xbr/_eip712_member_register.py
Thanks for opening an issue and linking the relevant specification and implementations. A PR for this would definitely be appreciated!
+1 Also in need of 712 for signing TypedData.
Hi @oberstet @simolus3 @mundhrakeshav @danielnordh I have just finished porting eth-sig-util from js to dart that mainly focus on signing typed data EIP712 In JS side, Metamask separated package for eth-sig-util so i did it too Let's use it to resolve your problem at https://pub.dev/packages/eth_sig_util