Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
xbr 25.12.2
Logo
xbr 25.12.2
  • Introduction
  • Installation
  • Getting Started
  • Programming Guide
    • Application Development
      • Overview
      • Requirements
      • Connecting to the Network
      • Network Membership
      • Domains
      • Markets
      • Payment Channels
      • Other functions and services
    • Project Development
      • Quickstart
      • Initial Setup
      • Ganache
      • MetaMask
      • Truffle
      • Remix
      • IPFS
      • HD Wallets
    • Contracts Reference
    • XBR Programming
    • XBR Authentication
    • XBR Command line interface
  • Release Notes
  • Changelog
  • Contributing
  • WAMP Projects Overview
  • AI Policy
    • AI Contributors Policy
    • AI Assistants Policy
    • Disclosure of Use of AI Assistance
    • AI-Assisted Work Audit Log
    • AI Disclosure Process
    • AI Audit Process Review
  • API Reference
    • xbr
      • xbr._abi
      • xbr._blockchain
      • xbr._buyer
      • xbr._cli
      • xbr._config
      • xbr._dialog
      • xbr._eip712_api_publish
      • xbr._eip712_authority_certificate
      • xbr._eip712_base
      • xbr._eip712_catalog_create
      • xbr._eip712_certificate
      • xbr._eip712_certificate_chain
      • xbr._eip712_channel_close
      • xbr._eip712_channel_open
      • xbr._eip712_consent
      • xbr._eip712_delegate_certificate
      • xbr._eip712_domain_create
      • xbr._eip712_market_create
      • xbr._eip712_market_join
      • xbr._eip712_market_leave
      • xbr._eip712_market_member_login
      • xbr._eip712_member_login
      • xbr._eip712_member_register
      • xbr._eip712_member_unregister
      • xbr._eip712_node_pair
      • xbr._frealm
      • xbr._gui
      • xbr._interfaces
      • xbr._mnemonic
      • xbr._schema
      • xbr._secmod
      • xbr._seller
      • xbr._userkey
      • xbr._util
      • xbr._wallet
      • xbr.test
Back to top
View this page
Edit this page

xbr._eip712_consent¶

Functions¶

_create_eip712_consent(→ dict)

recover_eip712_consent(→ bytes)

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

sign_eip712_consent(→ bytes)

Module Contents¶

_create_eip712_consent(chainId: int, verifyingContract: bytes, member: bytes, updated: int, marketId: bytes, delegate: bytes, delegateType: int, apiCatalog: bytes, consent: bool, servicePrefix: str | None) → dict[source]¶
Parameters:
  • chainId

  • verifyingContract

  • member

  • updated

  • marketId

  • delegate

  • delegateType

  • apiCatalog

  • consent

  • servicePrefix

Returns:

recover_eip712_consent(chainId: int, verifyingContract: bytes, member: bytes, updated: int, marketId: bytes, delegate: bytes, delegateType: int, apiCatalog: bytes, consent: bool, servicePrefix: 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_consent(eth_privkey: bytes, chainId: int, verifyingContract: bytes, member: bytes, updated: int, marketId: bytes, delegate: bytes, delegateType: int, apiCatalog: bytes, consent: bool, servicePrefix: str) → bytes[source]¶
Parameters:

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

Returns:

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

Return type:

bytes

Next
xbr._eip712_delegate_certificate
Previous
xbr._eip712_channel_open
Copyright © 2017-2025, typedef int GmbH (Germany)
Made with Sphinx and @pradyunsg's Furo
On this page
  • xbr._eip712_consent
    • Functions
    • Module Contents
      • _create_eip712_consent()
      • recover_eip712_consent()
      • sign_eip712_consent()