Signature verification failure on wallet connection
Summary
Signatures are being rejected by the engine on production when connecting a wallet. Testing the params passed to engine locally against MW3, this SHOULD work fine.
node index.js verifyMessage --message="{\"user_guid\":\"1033785333306630163\",\"unix_ts\":1663270583}" --signature="~my signed message~"
Two possibilities
- Something is messed up with our signer in prod - maybe it's not up to date with what my local stack has or has uncommited changes
- The message is being escaped server side and passed in wrong - I did this accidentally when copying and it will result in incorrect output
Steps to reproduce
Try to connect a wallet for rewards - DO NOT DO THIS ON YOUR MAIN ACCOUNT / AN ACCOUNT YOU ARE COLLECTING REWARDS ON
Platform information
Web
What is the current bug behavior?
Cannot connect wallet
What is the expected correct behavior?
Should be able to connect wallet
Relevant logs and/or screenshots
{"errors":[],"status":"error","message":"Signature could not be verified","errorId":"Minds::Exceptions::UserErrorException"}
Thrown from here https://gitlab.com/minds/engine/-/blob/a0f6924941c3f8454694c833efddbf16d94f5d2c/Core/Blockchain/Wallets/OnChain/UniqueOnChain/Manager.php
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)