Function storage_proofs_core::merkle::create_base_lcmerkle_tree
source · pub fn create_base_lcmerkle_tree<H: Hasher, BaseTreeArity: 'static + PoseidonArity>(
config: StoreConfig,
size: usize,
data: &[u8],
replica_config: &ReplicaConfig,
) -> Result<LCTree<H, BaseTreeArity, U0, U0>>
Expand description
Construct a new level cache merkle tree, given the specified config.
Note that while we don’t need to pass both the data AND the replica path (since the replica file will contain the same data), we pass both since we have access from all callers and this avoids reading that data from the replica_config here.