How to sign Typed Data struct in golang? #62
-
To preface this, I am pretty new to crypto, both as a consumer and a developer. So please be gentle. I am trying to work through the lazy minting process in Go. The Rarible Protocol docs only show handling it with the web3 NPM package. I am looking to create an ERC 1155 token. How might I handle the signing step with golang? I looked through the geth docs, and it isn't mentioned at all in there. It seems like I need to make a JRPC request, but I'm not sure where I need to make that request, or what the request should look like. Any help or guidance would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry for the late reply. Do you really need to sign EIP-712 on the server side? Why do you need this? Then you need to have private key on the server (which is usually on the client, inside the wallet) If you know what you are doing, then you have some options
Then you just need to sign this hash using private key Let me know if you need more information on this |
Beta Was this translation helpful? Give feedback.
@GV14982
Sorry for the late reply.
First I will ask some questions :)
Do you really need to sign EIP-712 on the server side? Why do you need this? Then you need to have private key on the server (which is usually on the client, inside the wallet)
If you know what you are doing, then you have some options
Then you just need to sign this hash using private key
Let me know if you need more information on this