Network
Network
⚓︎
- symbolchain.Network.Network
-
Represents a network.
__init__(name, identifier, datetime_converter, address_class, network_timestamp_class)
⚓︎
- symbolchain.Network.Network.__init__
-
Creates a new network with the specified properties.
address_hasher()
abstractmethod
⚓︎
- symbolchain.Network.Network.address_hasher
-
Gets the primary hasher to use in the public key to address conversion.
create_address(address_without_checksum, checksum)
abstractmethod
⚓︎
- symbolchain.Network.Network.create_address
-
Creates an encoded address from an address without checksum and checksum bytes.
from_datetime(reference_datetime)
⚓︎
- symbolchain.Network.Network.from_datetime
-
Converts a datetime to a network timestamp.
is_valid_address(address)
⚓︎
- symbolchain.Network.Network.is_valid_address
-
Checks if an address is valid and belongs to this network.
is_valid_address_string(address_string)
⚓︎
- symbolchain.Network.Network.is_valid_address_string
-
Checks if an address string is valid and belongs to this network.
public_key_to_address(public_key)
⚓︎
- symbolchain.Network.Network.public_key_to_address
-
Converts a public key to an address.
to_datetime(reference_network_timestamp)
⚓︎
- symbolchain.Network.Network.to_datetime
-
Converts a network timestamp to a datetime.
NetworkLocator
⚓︎
- symbolchain.Network.NetworkLocator
-
Provides utility functions for finding a network.
find_by_identifier(networks, identifiers)
staticmethod
⚓︎
- symbolchain.Network.NetworkLocator.find_by_identifier
-
Finds a network with a specified identifier within a list of networks.
find_by_name(networks, names)
staticmethod
⚓︎
- symbolchain.Network.NetworkLocator.find_by_name
-
Finds a network with a specified name within a list of networks.