Skip to main content

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


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.6.tar.gz (64.1 kB view details)

Uploaded Source

Built Distribution

eip712-0.1.6-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file eip712-0.1.6.tar.gz.

File metadata

  • Download URL: eip712-0.1.6.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

Hashes for eip712-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3ebb05d42ea29c28e01818cf1b06c6527f886b4ee1f1d4ae813dfdcbaaa2f932
MD5 c966c63fc5c9bc88c4265737255f2686
BLAKE2b-256 9c036cc302b2a4cdc4263293d763e579477fd6dd33c0c8307d52b581d06d4b8f

See more details on using hashes here.

File details

Details for the file eip712-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: eip712-0.1.6-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

Hashes for eip712-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b65c449d3fa0006f6123d9e70d55b82c8d28b29652b2bea97c020285ad4208bf
MD5 6f33c1b04d78e00ce13f4afbbfb47a6a
BLAKE2b-256 75ae422e32030d747f95f295cf3bc1ad6e513eabc5b39570f7e566bdd0749618

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page