hpl_toolkit::compression

Trait MerkleTreeUtils

source
pub trait MerkleTreeUtils {
    // Required methods
    fn get_latest_leaf_index(&self) -> u32;
    fn tree_capacity(&self) -> u32;
    fn tree_capacity_is_zero(&self) -> bool;
    fn tree_capacity_is_more_than(&self, val: u32) -> bool;
    fn get_hpl_info(&self) -> (u32, u32, u64);
}

Required Methods§

Implementations on Foreign Types§

source§

impl<const MAX_DEPTH: usize, const MAX_BUFFER_SIZE: usize> MerkleTreeUtils for ConcurrentMerkleTree<MAX_DEPTH, MAX_BUFFER_SIZE>

Implementors§