compute_private_functions_root

Function compute_private_functions_root 

Source
pub fn compute_private_functions_root(
    private_functions: &mut [(FunctionSelector, Fr)],
) -> Fr
Expand description

Compute the root of the private functions Merkle tree.

Each leaf = poseidon2_hash_with_separator([selector, vk_hash], PRIVATE_FUNCTION_LEAF). Tree height = FUNCTION_TREE_HEIGHT (7).