Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
signMessage = (userAddress, data) => {
const ethPersonal = new Personal(this._Web3Wrapper.getProvider())
return new Promise((resolve, reject) => {
ethPersonal.sign(data, userAddress, (error, result) => {
if (error) reject(error)
resolve(result)
})
})
}