pub fn find_leaf_index(&self, hash: &[u8]) -> Result<Option<u32>, MerkleMountainRangeError> {
        let mut index = self.base_mmr.find_leaf_index(hash)?;
        if index.is_none() {
            index = self.curr_mmr.find_leaf_index(hash)?;
        }
        Ok(index)
    }
/// Search for the leaf index of the given hash in the nodes of the current and base MMR.
Search for the leaf index of the given hash in the nodes of the current and base MMR.
Search for the leaf index of the given hash in the nodes of the current and base MMR .
pub fn find_leaf_index(&self, hash: &[u8]) -> Result<Option<u32>, MerkleMountainRangeError> {
        let mut index = self.base_mmr.find_leaf_index(hash)?;
        if index.is_none() {
            index = self.curr_mmr.find_leaf_index(hash)?;
        }
        Ok(index)
    }
pub fn find_leaf_index ( & self , hash : & [ u8 ] ) -> Result < Option < u32 > , MerkleMountainRangeError > { let mut index = self . base_mmr . find_leaf_index ( hash ) ? ; if index . is_none ( ) { index = self . curr_mmr . find_leaf_index ( hash ) ? ; } Ok ( index ) }
Search for the leaf index of the given hash in the nodes of the current and base MMR.
Search for the leaf index of the given hash in the nodes of the current and base MMR .
&self
hash
&[u8]
&self
hash
&[u8]