We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using eth.personal.ecRecover, it should return an address when provided with signed data. noticed it was checking the signed data as an input address.
The function seems to be verifying the signed data as an address
function EcRecoverMethod(utils, formatters) { _classCallCheck(this, EcRecoverMethod); return _possibleConstructorReturn(this, _getPrototypeOf(EcRecoverMethod).call(this, 'personal_ecRecover', 3, utils, formatters)); } _createClass(EcRecoverMethod, [{ key: "beforeExecution", value: function beforeExecution(moduleInstance) { this.parameters[0] = this.formatters.inputSignFormatter(this.parameters[0]); this.parameters[1] = this.formatters.inputAddressFormatter(this.parameters[1]); } }]);
const sig = await web3.eth.personal.sign(data)
const addr = await web3.eth.personal.ecRecover(data, sig)
Mac OS, Node 11.3, web3 version beta-46
The text was updated successfully, but these errors were encountered:
Thanks for submitting this issue! I will fix and release it asap.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected behavior
Using eth.personal.ecRecover, it should return an address when provided with signed data. noticed it was checking the signed data as an input address.
Actual behavior
The function seems to be verifying the signed data as an address
Steps to reproduce the behavior
const sig = await web3.eth.personal.sign(data)
const addr = await web3.eth.personal.ecRecover(data, sig)
Error Logs
Versions
Mac OS, Node 11.3, web3 version beta-46
The text was updated successfully, but these errors were encountered: