ic_agent::hash_tree

Function pruned_from_hex

source
pub fn pruned_from_hex<Storage, C>(
    content: C,
) -> Result<HashTree<Storage>, FromHexError>
where Storage: AsRef<[u8]>, C: AsRef<str>,
Expand description

Create a pruned tree node, from a hex representation of the data. Useful for testing or hard coded values.