Skip to main content
added 175 characters in body
Source Link
n1c01a5
  • 294
  • 1
  • 9

DoAccording to the documentation, it’s web3.eth.sign(data, address). I think you inversed the parameters. See https://web3js.readthedocs.io/en/1.0/web3-eth.html#sign.

Also, do you send the good hash in the call_ecover function? I think you need to send the hash of msg (in your case, a hash of a hash: web3.sha3(msg)).

Do you send the good hash in the call_ecover function? I think you need to send the hash of msg (web3.sha3(msg)).

According to the documentation, it’s web3.eth.sign(data, address). I think you inversed the parameters. See https://web3js.readthedocs.io/en/1.0/web3-eth.html#sign.

Also, do you send the good hash in the call_ecover function? I think you need to send the hash of msg (in your case, a hash of a hash: web3.sha3(msg)).

Source Link
n1c01a5
  • 294
  • 1
  • 9

Do you send the good hash in the call_ecover function? I think you need to send the hash of msg (web3.sha3(msg)).