stdlib¶
- class StdLib¶
Bases:
object
A class used to represent StdLib native contract
- classmethod base58_check_decode(key: str) → bytes¶
Converts the specified str, which encodes binary data as base-58 digits, to an equivalent bytes value. The encoded str contains the checksum of the binary data.
- classmethod base58_check_encode(key: bytes) → str¶
Converts a bytes value to its equivalent str representation that is encoded with base-58 digits. The encoded str contains the checksum of the binary data.
- classmethod itoa(value: int, base: int = 10) → str¶
Converts the specific type of value to a decimal or hexadecimal string. The default is decimal.
- classmethod atoi(value: str, base: int = 10) → int¶
Converts a character string to a specific base value, decimal or hexadecimal. The default is decimal.
- classmethod memory_compare(mem1: Union[bytes, str], mem2: Union[bytes, str]) → int¶
Compares a memory with another one.