Module util

Source
Expand description

Utility helper functions.

Functions§

byte_vec_to_string_vec
Convert a ByteVector to a StringVector.
bytes_to_shard_image
Deserialize bytes into shard image structure.
generate_random_string
Generate a random string of variable length.
get_unix_timestamp
Get unix timestamp as string.
merge_shard_states
Merge two shard network states.
read_ini_file
Read an INI file containing bootstrap config information.
shard_image_to_bytes
Marshall the shard network image into a ByteVector.
string_to_peer_id
Convert a peer ID string to PeerId.
string_vec_to_byte_vec
Convert a StringVector to a ByteVector.
unmarshal_messages
Unmarshall data recieved as RPC during the execution of the eventual consistency algorithm to fill in missing messages in the node’s buffer.
write_config
Write value into config file.