helium_py.crypto.utils

Utility methods for cryptography.

Functions

bs58_check_encode(version, binary)

Return endoed Base58 address from version and bytes.

bs58_key_type(bs58_address)

Return key type from bs58 address.

bs58_net_type(bs58_address)

Return network type from bs58 address.

bs58_public_key(bs58_address)

Return public key from bs58 address.

bs58_to_bin(bs58_address)

Return decoded bytes from Base58 address bytes.

bs58_version(bs58_address)

Return version from bs58 address.

byte_to_key_type(byte_val)

Return key type from byte value.

byte_to_net_type(byte_val)

Return network type from byte value.

byte_to_net_type_and_key_type(byte_val)

Return network type and key type in a tuple from byte value.

bytes_to_binary(byte_array)

Return binary from provided bytes.

derive_checksum_bits(entropy)

Return checksum bits from entropy bytes.

random_bytes(n)

Return random bytes of size n.