2

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.

  • Welcome to the Ethereum StackExchange! The accepted answer in the question you linked doesn't require geth, actually. You could use any client, like Metamask. I'm on the fence about whether that makes this question a duplicate. – carver Aug 31 '17 at 17:09
  • I have updated the title and body of the question, to make it more specific and to solicit more details then provided here. – user652061 Aug 31 '17 at 17:19
  • 1
  • @Ismael that answer is about signing data using full node, I am looking for signing locally without the use of full node. – user652061 Aug 31 '17 at 18:16
  • The second answer has an example of signing using crypto-js, no geth required. ethereum.stackexchange.com/a/696. – Ismael Aug 31 '17 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.