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

Export hash_message [APE-1115] #37

Open
fubuloubu opened this issue Jun 20, 2023 · 0 comments
Open

Export hash_message [APE-1115] #37

fubuloubu opened this issue Jun 20, 2023 · 0 comments

Comments

@fubuloubu
Copy link
Member

Overview

Re-export the function for fully hashing an EIP712 message produced using this library into a 32 byte hash usable for signing

Specification

Export the function hash_message (hash_eip712_message would be preferable, but would be a breaking change since it currently exists as a re-export), which should take any subclass of a EIP712Message and product the full hash as a HexBytes value e.g.:

from eth_account.messages import _hash_eip191_message

...

def hash_message(msg: EIP712Message) -> HexBytes:
    return _hash_eip191_message(msg.signable_message)
@vany365 vany365 changed the title Export hash_message Export hash_message [APE-1115] Jun 20, 2023
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

No branches or pull requests

1 participant