autobahn.xbr._eip712_channel_close


Module Contents

Functions

_create_eip712_channel_close(→ dict)

param chainId

sign_eip712_channel_close(→ bytes)

param eth_privkey

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

recover_eip712_channel_close(→ bytes)

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

autobahn.xbr._eip712_channel_close._create_eip712_channel_close(chainId: int, verifyingContract: bytes, closeAt: int, marketId: bytes, channelId: bytes, channelSeq: int, balance: int, isFinal: bool) dict[source]
Parameters
  • chainId

  • verifyingContract

  • marketId

  • channelId

  • channelSeq

  • balance

  • isFinal

Returns

autobahn.xbr._eip712_channel_close.sign_eip712_channel_close(eth_privkey: bytes, chainId: int, verifyingContract: bytes, closeAt: int, marketId: bytes, channelId: bytes, channelSeq: int, balance: int, isFinal: bool) 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_close.recover_eip712_channel_close(chainId: int, verifyingContract: bytes, closeAt: int, marketId: bytes, channelId: bytes, channelSeq: int, balance: int, isFinal: bool, 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