Skip to content
New issue

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

Add sign hash #1124

Closed
wants to merge 1 commit into from
Closed

Add sign hash #1124

wants to merge 1 commit into from

Conversation

richmcateer
Copy link

This is useful when you want to sign a message of a soliditySha3 hash with multiple inputs (which can then be validated in a smart contract with ecrecover using the same inputs). In this case, you don't have the original "data" to pass into web3.eth.accounts.sign, so a separate method web3.eth.accounts.signHash makes things easier.

@coveralls
Copy link

coveralls commented Oct 19, 2017

Coverage Status

Coverage increased (+0.02%) to 85.581% when pulling 54d8adf on richmcateer:sign-hash into 2db8312 on ethereum:1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants