Created
October 16, 2018 22:09
-
-
Save merlox/4b04e79c939a86294af0cc8772333ed9 to your computer and use it in GitHub Desktop.
This file contains 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
function signMessage(hash) { | |
return new Promise((resolve, reject) => { | |
web3.personal.sign(hash, web3.eth.defaultAccount, (err, result) => { | |
if(err) return reject(err) | |
resolve(result) | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment