autobahn.xbr._eip712_node_pair


Module Contents

Functions

_create_eip712_node_pair(→ dict)

param chainId

sign_eip712_node_pair(→ bytes)

param eth_privkey

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

recover_eip712_node_pair(→ bytes)

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

autobahn.xbr._eip712_node_pair._create_eip712_node_pair(chainId: int, verifyingContract: bytes, member: bytes, paired: int, nodeId: bytes, domainId: bytes, nodeType: int, nodeKey: bytes, amount: int, config: Optional[str]) dict[source]
Parameters
  • chainId

  • verifyingContract

  • member

  • paired

  • nodeId

  • domainId

  • nodeKey

  • amount

  • config

Returns

autobahn.xbr._eip712_node_pair.sign_eip712_node_pair(eth_privkey: bytes, chainId: int, verifyingContract: bytes, member: bytes, paired: int, nodeId: bytes, domainId: bytes, nodeType: int, nodeKey: bytes, amount: int, config: Optional[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

autobahn.xbr._eip712_node_pair.recover_eip712_node_pair(chainId: int, verifyingContract: bytes, member: bytes, paired: int, nodeId: bytes, domainId: bytes, nodeType: int, nodeKey: bytes, amount: int, config: 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