pub fn empty_node_cached<const N: usize>(level: u32, cache: &[Node; N]) -> Node
Calculates and caches the hash of empty nodes up to level i