Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Truffle web3.js add prefix to message hash for signing example
let hash = web3.utils.soliditySha3('abc')
let prefixedHash = web3.utils.soliditySha3('\x19Ethereum Signed Message:\n32', hash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.