I need to sign locally, on a client (preferably in a browser) a message using my Ethereum private key. How can it be done without running full node locally? Message does not need to be sent to blockchain.
I have found this answer, but I am looking for more details and best practices. For example, what function of web3.js is the best to use? I have also asked more specific question about web3.js functions here.