autobahn.xbr._eip712_market_create


Module Contents

Functions

_create_eip712_market_create(→ dict)

param chainId

sign_eip712_market_create(→ bytes)

param eth_privkey

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

recover_eip712_market_create(→ bytes)

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

autobahn.xbr._eip712_market_create._create_eip712_market_create(chainId: int, verifyingContract: bytes, member: bytes, created: int, marketId: bytes, coin: bytes, terms: str, meta: Optional[str], maker: bytes, providerSecurity: int, consumerSecurity: int, marketFee: int) dict[source]
Parameters
  • chainId

  • verifyingContract

  • member

  • created

  • marketId

  • coin

  • terms

  • meta

  • maker

  • providerSecurity

  • consumerSecurity

  • marketFee

Returns

autobahn.xbr._eip712_market_create.sign_eip712_market_create(eth_privkey: bytes, chainId: int, verifyingContract: bytes, member: bytes, created: int, marketId: bytes, coin: bytes, terms: str, meta: str, maker: bytes, providerSecurity: int, consumerSecurity: int, marketFee: int) 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

autobahn.xbr._eip712_market_create.recover_eip712_market_create(chainId: int, verifyingContract: bytes, member: bytes, created: int, marketId: bytes, coin: bytes, terms: str, meta: str, maker: bytes, providerSecurity: int, consumerSecurity: int, marketFee: int, 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