eip712: Message classes for typed structured data hashing and signing in Ethereum
Project description
Quick Start
Message classes for typed structured data hashing and signing in Ethereum. See EIP-712 for details.
Dependencies
- python3 version 3.7.2 or greater, python3-dev
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_: "uint256" = 1
_name_: "string" = "Ether Mail"
_verifyingContract_: "address" = "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
_version_: "string" = "1"
sender: Person
receiver: Person
Project details
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
eip712-0.1.7.tar.gz
(64.1 kB
view details)
Built Distribution
eip712-0.1.7-py3-none-any.whl
(13.8 kB
view details)
File details
Details for the file eip712-0.1.7.tar.gz
.
File metadata
- Download URL: eip712-0.1.7.tar.gz
- Upload date:
- Size: 64.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 478ffd839daeb921d508055e063315080aaa112ec8aa1621ef858a7f249469cc |
|
MD5 | b96741d34c4d34ad92c26e5be10983cf |
|
BLAKE2b-256 | e26e7dcfdba43e6da19eee559e2f6b4c320540eae2efbba1b1ee639de90423e2 |
File details
Details for the file eip712-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: eip712-0.1.7-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0407b0dc6116afbf8111dee0749df8ecea55fb3ae79e596c3e019defa36d1099 |
|
MD5 | 7c82e13ecf01647573b876cc24caa6bf |
|
BLAKE2b-256 | 9ac477663b451eb848446dad31749b5bcc9c0dec211e598c5ec3912349fc456e |