I want to sign a simple message on the frontend with metamask and verify it on the backend in order to sign user in.
So on the frontend I do:
const accounts = await web3.eth.getAccounts();
let sign = await web3.eth.personal.sign(`some message here`, accounts[0], '');
What is the best way to verify the signature on the backend written in Rust? And what crates are the best for such task? I would be really grateful for any real code since Im a total newbie in Rust.
Thank you