I'm new to blockchain development and looking for some directions.
I have an existing single page application that uses Metamask to login (i.e. sign a custom message). The APP needs to call an API (written in c# on .net 6) and the API must authorize the user based wallet ID.
The idea is:
- the user signs a message containing the wallet ID + a nonce generated by the API
- the client APP sends the message to the API
- the API validates that the signed message has not been tampered, extracts the nonce + wallet ID and compares the nonce value with the previously sent one
Does it makes sense? What sdk/libraries can I use to implement the API portion of this scenario?