Skip to content

Instantly share code, notes, and snippets.

@dominiek
Created February 16, 2018 02:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dominiek/737bee95638c16e10ee186efeed016fc to your computer and use it in GitHub Desktop.
Save dominiek/737bee95638c16e10ee186efeed016fc to your computer and use it in GitHub Desktop.
Ethereum Web3 Signing
const message = web3.sha3('Hello World');
const signature = await web3.eth.sign(account, message);
const { v, r, s } = ethUtil.fromRpcSig(signature);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment