web3dart icon indicating copy to clipboard operation
web3dart copied to clipboard

Support for signing typed data (EIP712)

Open oberstet opened this issue 4 years ago • 3 comments

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

oberstet avatar Mar 19 '21 23:03 oberstet

Thanks for opening an issue and linking the relevant specification and implementations. A PR for this would definitely be appreciated!

simolus3 avatar Mar 21 '21 15:03 simolus3

+1 Also in need of 712 for signing TypedData.

danielnordh avatar Jun 17 '21 14:06 danielnordh

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

ludowkm avatar Aug 19 '21 10:08 ludowkm