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

Implement EIP-712 #20

Merged
merged 2 commits into from
Jul 13, 2018
Merged

Implement EIP-712 #20

merged 2 commits into from
Jul 13, 2018

Conversation

bitpshr
Copy link
Contributor

@bitpshr bitpshr commented Jul 13, 2018

This PR introduces a new signTypedData method that conforms to the latest version of EIP-712. The previous signTypedData implementation was renamed to signTypedDataLegacy and wasn't removed for backwards compatibility.

Note: The included test cases and the known values were lifted from the EIP itself for maximum verification.

Copy link
Contributor

@danfinlay danfinlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you so much for it!

@danfinlay danfinlay merged commit b415399 into master Jul 13, 2018
@danfinlay
Copy link
Contributor

Published as eth-sig-util@2.0.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.

None yet

2 participants