I have a frontend web application that creates a message and asks the user to sign it via, for example, metamask.
The user signs the message and now I have a signed message hash.
- Is there a common/correct workflow to check this message signature from a backend service ? (like php/node/python)
- It is possible to validate the signature by calling a contract that uses
ecrecover(hash, v, r, s);, but is this the correct approach ? call from the backend a deployed contract that validates it ?
ethers.utils.verifyMessage(message,signature)– Stormsson Oct 19 '21 at 08:42