Skip to main content

Module utils

Module utils 

Source

Functions§

are_bytes_valid_ed25519_pubkey
Checks if the given public_key is a valid ed25519 key.
get_ss58_format
Returns the SS58 format of the given address string.
is_string_valid_ed25519_pubkey
Checks if the given public_key is a valid ed25519 key.
is_valid_bittensor_address_or_public_key
Checks if the given address is a valid destination address.
is_valid_ss58_address
Checks if the given address is a valid ss58 address.
print
When running inside a Python process, output must go through Python’s sys.stdout to stay synchronized with Python-level I/O (e.g. Jupyter, logging redirects). In pure Rust mode, standard stdout is used directly.
prompt
Prompts the user and returns the response, if any.
prompt_password
Prompts the user with a password entry and returns the response, if any.