poly-eip712-structs
A python library for EIP712 objects
Decision gist · record as of 2026-08-14
Yes, if you need EIP-712 struct construction for Ethereum signing and can tolerate dormant maintenance. The library is stable with no known vulnerabilities, but expect no active updates or bug fixes. Suitable for production use in mature workflows; less suitable if you need ongoing support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.9.10; runtime dependencies are eth-utils, pycryptodome, and pytest.
- Low friction install with a pure-Python wheel.
- Dormant maintenance status (last commit 2024-07-18) means no active bug fixes or security updates, though the codebase is stable.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) allows commercial and private use with minimal restrictions.
last release 2024-07-18 (757 days) · last repo commit 2024-07-18 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,252,427 downloads/mo, #4,159 on PyPI
Alternatives
Verify before relying
pip install poly-eip712-structs
from poly_eip712_structs import EIP712Struct, String, Uint, make_domain
class MyStruct(EIP712Struct):
some_string = String()
some_number = Uint(256)
domain = make_domain(name='Example', version='1.0.0')
mine = MyStruct(some_string='hello', some_number=1234)
my_bytes = mine.signable_bytes(domain)- Whether this is a maintained fork or a distinct implementation with active development plans.
- Compatibility with current Ethereum tooling and whether EIP-712 spec changes since 2024-07-18 affect usage.
- Whether pytest is a runtime dependency or a development-only artifact.
What it is and what it does
poly-eip712-structs provides a Python interface for building EIP-712 structured data objects that can be signed for Ethereum transactions. It maps Solidity-like types (Address, Boolean, Bytes, Int, String, Uint, and nested structs) to Python class definitions, then serializes them into signable message bytes with domain separation. The library handles type encoding, message serialization to JSON, and dictionary-style access to struct fields.
Typical use is defining a struct class with typed fields, instantiating it with values, optionally setting a default domain, then converting to signable bytes or a message dict for cryptographic signing. It supports nested structs and arrays, dynamic attribute assignment for reserved keywords, and both static and dynamic array lengths.
Use it for
- Sign typed Ethereum messages for wallet interactions or contract function calls requiring EIP-712 compliance.
- Build structured data objects that map to Solidity struct definitions for off-chain signing before on-chain submission.
- Encode domain-separated messages to prevent replay attacks across different Ethereum chains or contracts.
- Construct complex nested struct hierarchies with arrays and multiple field types for multi-signature workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need EIP-712 struct construction for Ethereum signing and can tolerate dormant maintenance.
The library is stable with no known vulnerabilities, but expect no active updates or bug fixes. Suitable for production use in mature workflows; less suitable if you need ongoing support.
Install
poly-eip712-structs on PyPI
Before you install
Low friction install with a pure-Python wheel. Dormant maintenance status (last commit 2024-07-18) means no active bug fixes or security updates, though the codebase is stable.
Requires Python >=3.9.10; runtime dependencies are eth-utils, pycryptodome, and pytest.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions.
Quickstart
pip install poly-eip712-structs
from poly_eip712_structs import EIP712Struct, String, Uint, make_domain
class MyStruct(EIP712Struct):
some_string = String()
some_number = Uint(256)
domain = make_domain(name='Example', version='1.0.0')
mine = MyStruct(some_string='hello', some_number=1234)
my_bytes = mine.signable_bytes(domain)
Verify before relying
- Whether this is a maintained fork or a distinct implementation with active development plans.
- Compatibility with current Ethereum tooling and whether EIP-712 spec changes since 2024-07-18 affect usage.
- Whether pytest is a runtime dependency or a development-only artifact.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageseth-utilspycryptodomepytest |
| Maintenance | Dormant 757 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,252,427 / month, #4,159 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: poly_eip712_structs-0.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “EIP-712 struct construction”
- poly-eip712-structsConstructs and serializes EIP-712 structured data for Ethereum…
- eip712Provides Python message classes for EIP-712 typed structured data…
- pycstructConverts binary data to and from Python dictionaries or objects using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Cryptography packages
Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.
cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.
Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
Provides Microsoft Entra ID token-based authentication for Azure SDK clients through a set of TokenCredential implementations that handle OAuth flows and managed identity support.
PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.
See also canoser · eip712 · pycstruct · siwe · eth-rlp · rlp · construct-classes · faster-eth-abi · eth-brownie