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.5.tar.gz
(63.3 kB
view details)
Built Distribution
eip712-0.1.5-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file eip712-0.1.5.tar.gz
.
File metadata
- Download URL: eip712-0.1.5.tar.gz
- Upload date:
- Size: 63.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 550d0531ced02b193f01b27176f7f71852032b97e2fd79ee2e5a4c0988f513ab |
|
MD5 | 0d49a6a8e8582b221222d5bff8c1e87b |
|
BLAKE2b-256 | 4cbb0df34deebcc51d2f22d7dc8224ca7c806bf63fb9878b4fb51f9884857778 |
File details
Details for the file eip712-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: eip712-0.1.5-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fedbc6af5f3f6d4ead1d91b82ef39bf34666fd9780a1444c1d4ab7359c8e76eb |
|
MD5 | 791175188996a25611a3d6778321262c |
|
BLAKE2b-256 | d1d592bf0e050d7f4983e086a8bf65559ada3110b3ae9f6e1ef9e46de79680e0 |