Elixium Core v0.6.3 Elixium.Utilities View Source

Various functions that don’t need their own module, since theyre used in multiple places for different things

Link to this section Summary

Functions

The merkle root lets us represent a large dataset using only one string. We can be confident that if any of the data changes, the merkle root will be different, which invalidates the dataset

Gets an option that was passed in as a command line argument

Link to this section Functions

Link to this function calculate_merkle_root(list) View Source
calculate_merkle_root(list()) :: String.t()

The merkle root lets us represent a large dataset using only one string. We can be confident that if any of the data changes, the merkle root will be different, which invalidates the dataset

Link to this function calculate_merkle_root(list, bool) View Source
Link to this function get_arg(arg, not_found \\ nil) View Source
get_arg(atom(), any()) :: String.t()

Gets an option that was passed in as a command line argument