Hello fam
Can anyone help me with the signatures on one of my smart contracts?
I want to implement gas-less transactions in one of my contracts.
But struggling with the implementation of this.
Any help or resources will be of great help.

Jun 10, 2023, 8:13 PM
Smart Contract Programmer has some videos on it on youtube
I like his channel very gud straight to the point
Jun 11, 2023, 3:08 AM
The solidity part is not the problem actually
I am confused regarding the signing process.
I tried to sign a message via ethers and then I tried to recover the signer address via smart contract, but the came out was different from what I used to sign.
Jun 11, 2023, 5:05 AM
Try first with some simple example code you find online. Then expand to fulfill your specific needs.
Developing signature code is a real pain in the ass, since you can't really debug it - either the result is the right address or it simply isn't.
Jun 11, 2023, 9:42 AM
Yeah thanks
What I am currently trying to do is simply sign a string via ethers and then trying to recover the address via a contract.
But there's a lot of confusion around this.
1. What should the user sign? The message or the message hash or the bytes array of the message hash.
2. Do I need to use any EIP for this?
It's pretty confusing for me tbh
Jun 11, 2023, 11:57 AM
eip712 is needed when you want to sign a structured data, like a struct
to do a normal sign + recover you don't need any eip
https://solidity-by-example.org/signature/
https://medium.com/coinmonks/eip712-a-full-stack-example-e12185b03d54
Jun 11, 2023, 12:08 PM
Thanks
So in my case, I am trying to implement it in a multi-sig wallet, this wallet only works with funds and no other thing.
So what is the message that needs to be signed, and how will I ensure that the sign is used only once?
Can I dm you ?
Jun 11, 2023, 1:42 PM
for multi-sig wallets, i don't suggest to even write those from scratch but use directly safe.global
Jun 11, 2023, 1:51 PM
It's for learning purposes
I wanted to know the whole mechanism of sign based transactions
Jun 11, 2023, 5:12 PM

© 2024 Draquery.com All rights reserved.