Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function signMessage(hash) {
- return new Promise((resolve, reject) => {
- web3.personal.sign(hash, web3.eth.defaultAccount, (err, result) => {
- if(err) return reject(err)
- resolve(result)
- })
- })
- }
Add Comment
Please, Sign In to add comment