A Python library providing a robust interface for constructing EIP-712 typed data structures. It simplifies the creation of structured messages that can be signed off-chain and verified on-chain, adhering to the Ethereum EIP-712 standard. The library is currently at version `0.0.1` and aims to streamline secure off-chain data signing.
pip install poly-eip712-structsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define an EIP-712 domain, create a custom struct, instantiate it with data, and convert it into a signable EIP-712 message dictionary and its corresponding byte hash.
Always use `from eip712_structs import ...` for imports.
Ensure only one EIP-712 struct implementation is installed in your environment, or manage import paths carefully if multiple are needed.
Always provide at least one parameter when calling `make_domain()`.
Use Python 3.9.10 or newer for full compatibility as indicated by PyPI metadata.
Pin your dependency to a specific `0.0.x` version and review changelogs carefully when upgrading.