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.

6
  • 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
    Commented Aug 31, 2017 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
    Commented Aug 31, 2017 at 17:19
  • 1
    Possible duplicate of How can I sign a piece of data with the private key of an Ethereum address?
    – Ismael
    Commented Aug 31, 2017 at 17:44
  • @Ismael that answer is about signing data using full node, I am looking for signing locally without the use of full node.
    – user652061
    Commented Aug 31, 2017 at 18:16
  • The second answer has an example of signing using crypto-js, no geth required. ethereum.stackexchange.com/a/696.
    – Ismael
    Commented Aug 31, 2017 at 18:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.