Boilertalk / Web3.swift

A pure swift Ethereum Web3 library
MIT License
636 stars 187 forks source link

Can signtypeddata be supported?eip712 signatures problem #123

Open xhzth70911 opened 2 years ago

xhzth70911 commented 2 years ago

Signtypeddata doesn't have this method. Can it be implemented like web3.js? Can eip712 signatures be like Web3.js? Is there a demo for eip712 signature ?thank you

koraykoska commented 1 year ago

@xhzth70911 No, this is not supported. You are open to implementing it and opening a PR.

danijelTxFusion commented 1 year ago

What the current status of this issue. Has someone implemented on some forked repo?

koraykoska commented 1 year ago

@danijelTxFusion I am not aware of any but it's pretty easy to implement. I am using custom implementations on top of Web3.swift in several projects. You can utilize EthereumPrivateKey and write a custom extension function and call it signText or something similar.