xbr._eip712_domain_create

Functions

_create_eip712_domain_create(→ dict)

recover_eip712_domain_create(→ bytes)

Recover the signer address the given EIP712 signature was signed with.

sign_eip712_domain_create(→ bytes)

Module Contents

_create_eip712_domain_create(chainId: int, verifyingContract: bytes, member: bytes, created: int, domainId: bytes, domainKey: bytes, license: str, terms: str, meta: str | None) dict[source]
Parameters:
  • chainId

  • verifyingContract

  • member

  • created

  • domainId

  • domainKey

  • license

  • terms

  • meta

Returns:

recover_eip712_domain_create(chainId: int, verifyingContract: bytes, member: bytes, created: int, domainId: bytes, domainKey: bytes, license: str, terms: str, meta: str, signature: bytes) bytes[source]

Recover the signer address the given EIP712 signature was signed with.

Returns:

The (computed) signer address the signature was signed with.

Return type:

bytes

sign_eip712_domain_create(eth_privkey: bytes, chainId: int, verifyingContract: bytes, member: bytes, created: int, domainId: bytes, domainKey: bytes, license: str, terms: str, meta: str) bytes[source]
Parameters:

eth_privkey (bytes) – Ethereum address of member (a raw 20 bytes Ethereum address).

Returns:

The signature according to EIP712 (32+32+1 raw bytes).

Return type:

bytes