xbr._eip712_base¶
Attributes¶
Functions¶
|
keccak256(abi.encode( |
|
Check if the value is a proper Ethereum address. |
|
Check if the value is a proper Ethereum block number. |
|
Check if the value is a proper (binary) UUID. |
|
Check if the value is of type bytes and length 32. |
|
Check if the value is a proper Ethereum chain ID. |
|
Check if the value is a proper WAMP-cryptosign public key. |
|
Check if the value is a proper Ethereum private key (seed). |
|
Check if the value is a proper Ethereum signature. |
|
Recover the Ethereum address of the signer, given the data and signature. |
|
Sign the given data using the given Ethereum private key. |
Module Contents¶
- _hash(data) bytes[source]¶
- keccak256(abi.encode(
EIP712_MEMBER_REGISTER_TYPEHASH, obj.chainId, obj.verifyingContract, obj.member, obj.registered, keccak256(bytes(obj.eula)), keccak256(bytes(obj.profile))
));
- Parameters:
data
- Returns:
- is_address(provided: Any) bool[source]¶
Check if the value is a proper Ethereum address.
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.
- is_block_number(provided: Any) bool[source]¶
Check if the value is a proper Ethereum block number.
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.
- is_bytes16(provided: Any) bool[source]¶
Check if the value is a proper (binary) UUID.
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.
- is_bytes32(provided: Any) bool[source]¶
Check if the value is of type bytes and length 32.
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.
- is_chain_id(provided: Any) bool[source]¶
Check if the value is a proper Ethereum chain ID.
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.
- is_cs_pubkey(provided: Any) bool[source]¶
Check if the value is a proper WAMP-cryptosign public key.
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.
- is_eth_privkey(provided: Any) bool[source]¶
Check if the value is a proper Ethereum private key (seed).
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.
- is_signature(provided: Any) bool[source]¶
Check if the value is a proper Ethereum signature.
- Parameters:
provided – The value to check.
- Returns:
True iff the value is of correct type.