Trying to figure out the best approach to this. Working on a web3j/ethereum app, I need a way to verify an address is generated and in use by the app user by a server. My approach idea:
- Use the private ethereum key the sign/encrypt a message
- Send encrypted message ("abc" for example) and ethereum address to server
- Server decrypts message using ethereum address sent
- Checks the message is same as"abc" and if so validates address
Is this possible in web3j or web3js (which could be used for server side). Or is there a better approach?