[][src]Function storage_proofs::vde::create_key_from_tree

pub fn create_key_from_tree<H: Hasher>(
    id: &H::Domain,
    node: usize,
    parents: &[usize],
    tree: &MerkleTree<H::Domain, H::Function>
) -> Result<H::Domain>

Creates the encoding key from a MerkleTree. The algorithm for that is Blake2s(id | encodedParentNode1 | encodedParentNode1 | ...). It is only public so that it can be used for benchmarking