Created
February 16, 2018 02:51
-
-
Save dominiek/737bee95638c16e10ee186efeed016fc to your computer and use it in GitHub Desktop.
Ethereum Web3 Signing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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