Skip to main content

path_to_node_num

Function path_to_node_num 

Source
pub fn path_to_node_num(path: &[u8], l: u8) -> Result<u128, PixelError>
Expand description

Convert path of node to node number (prefix). Path is from root to the node and l = depth + 1 where depth is the depth of the tree.