php-metamask-user-login icon indicating copy to clipboard operation
php-metamask-user-login copied to clipboard

VerifySignature returns false

Open Razorholt opened this issue 3 years ago • 0 comments

The function verifySignature() receives all data correctly but at the end, pubKeyAddress gives the wrong address. Here are the data I get from inside that func:

$message: Sign this message to validate that you are the owner of the account. Random string: 6225645ede729
$signature: 0xf9ac42e2c7c2b0fb31064a454b2058147fc78d2c989cc509b33ba30f6cc493253337882c1f88fe464a2e6fe51edec12cab38fb63f480fa6f0192e49736c57c671b
$address: 0x6d364052fa694dc9******36aa8eb43490e23d
$recid: 0
$pubkey: 0x43430e3cba19dcb**********e8b1421b871a88
(I masked the addresses on purpose)

Of course, it could be that the signature sent is wrong, to begin with... Any idea on what the issue could be?

Thanks!

Razorholt avatar Mar 07 '22 17:03 Razorholt