problems trying to verify on chain with wagmi signature #246
Unanswered
morandalex
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I deployed the following contract
So , I use the method getHash in order to retrieve the hash for the word "ciao".
And then I retrieve the eth signed from getEthSignedHash function.
I connect with Metamask with wagmi and with the hook useSignMessage I can get the signature.
But, when I put the signature string inside the contract method verify , I cannot get back the address connected with wagmi, but another unknown.
It seems that I am not signing with my address but with another.
But if I use the console ( so not wagmi lbrary ) , I can get a different signature tha if I use it inside verify function then I get my address.
The script in the remix console is the following:
Beta Was this translation helpful? Give feedback.
All reactions