Skip to content

Instantly share code, notes, and snippets.

@qbig
Forked from dominiek/ethereum_web3_signing.js
Created September 16, 2018 14:47
Show Gist options
  • Save qbig/e882d7908882e7d8da7c0acd86c181b2 to your computer and use it in GitHub Desktop.
Save qbig/e882d7908882e7d8da7c0acd86c181b2 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