autobahn.xbr._eip712_channel_open


Module Contents

Functions

_create_eip712_channel_open(→ dict)

param chainId

sign_eip712_channel_open(→ bytes)

param eth_privkey

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

recover_eip712_channel_open(→ bytes)

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

autobahn.xbr._eip712_channel_open._create_eip712_channel_open(chainId: int, verifyingContract: bytes, ctype: int, openedAt: int, marketId: bytes, channelId: bytes, actor: bytes, delegate: bytes, marketmaker: bytes, recipient: bytes, amount: int) dict[source]
Parameters
  • chainId

  • verifyingContract

  • ctype

  • openedAt

  • marketId

  • channelId

  • actor

  • delegate

  • marketmaker

  • recipient

  • amount

Returns

autobahn.xbr._eip712_channel_open.sign_eip712_channel_open(eth_privkey: bytes, chainId: int, verifyingContract: bytes, ctype: int, openedAt: int, marketId: bytes, channelId: bytes, actor: bytes, delegate: bytes, marketmaker: bytes, recipient: bytes, amount: 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_channel_open.recover_eip712_channel_open(chainId: int, verifyingContract: bytes, ctype: int, openedAt: int, marketId: bytes, channelId: bytes, actor: bytes, delegate: bytes, marketmaker: bytes, recipient: bytes, amount: 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