eip712 0.2.11
pip install eip712
Latest version
Released:
eip712: Message classes for typed structured data hashing and signing in Ethereum
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (Apache-2.0)
- Author: ApeWorX Ltd.
- Tags ethereum
- Requires: Python <4, >=3.9
-
Provides-Extra:
test
,lint
,release
,doc
,dev
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
Project description
Quick Start
Message classes for typed structured data hashing and signing in Ethereum. See EIP-712 for details.
Dependencies
- python3 version 3.9 up to 3.12.
Installation
via pip
You can install the latest release via pip
:
pip install eip712
via setuptools
You can clone the repository and use setuptools
for the most up-to-date version:
git clone https://github.com/ApeWorX/eip712.git
cd eip712
python3 setup.py install
Quick Usage
Define EIP-712 models:
from eip712.messages import EIP712Message, EIP712Type
class Person(EIP712Type):
name: "string"
wallet: "address"
class Mail(EIP712Message):
_chainId_ = 1
_name_ = "Ether Mail"
_verifyingContract_ = "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
_version_ = "1"
sender: Person
receiver: Person
Initialize a Person object as you would normally
person = Person(name="Joe", wallet="0xa27CEF8aF2B6575903b676e5644657FAe96F491F")
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (Apache-2.0)
- Author: ApeWorX Ltd.
- Tags ethereum
- Requires: Python <4, >=3.9
-
Provides-Extra:
test
,lint
,release
,doc
,dev
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file eip712-0.2.11.tar.gz
.
File metadata
- Download URL: eip712-0.2.11.tar.gz
- Upload date:
- Size: 63.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe439c6bc3a1587c8980d648185bc891484b2d35206c9b43ca027741de1bc8e0 |
|
MD5 | cce0791ccefc12dfe693ea36a09a3a93 |
|
BLAKE2b-256 | aabf50f6f5e20f3c9916e521faa0580857f83546f55cd014bea485658bb0dd0b |
File details
Details for the file eip712-0.2.11-py3-none-any.whl
.
File metadata
- Download URL: eip712-0.2.11-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f6b478944de21d192456c48d9439558564a7e370cbda2f03ba5bb3cf77339ac |
|
MD5 | 353f19aa2b320c14a122e61a48b705e2 |
|
BLAKE2b-256 | 3a8c74f4c77865c2840a6a68c617b95be4dacd537351b4ecaf6d270cfd53ec49 |