fn fetch_mmr_proof(&self, tree: MmrTree, leaf_pos: usize) -> Result<MerkleProof, ChainStorageError> {
        let db = self.db_access()?;
        let pruned_mmr = get_pruned_mmr(&db, &tree)?;
        let proof = match tree {
            MmrTree::Utxo => MerkleProof::for_leaf_node(&pruned_mmr.mmr(), leaf_pos)?,
            MmrTree::Kernel => MerkleProof::for_leaf_node(&pruned_mmr.mmr(), leaf_pos)?,
            MmrTree::RangeProof => MerkleProof::for_leaf_node(&pruned_mmr.mmr(), leaf_pos)?,
        };
        Ok(proof)
    }
/// Returns an MMR proof extracted from the full Merkle mountain range without trimming the MMR using the roaring
/// bitmap
Returns an MMR proof extracted from the full Merkle mountain range without trimming the MMR using the roaring
bitmap
Returns an MMR proof extracted from the full Merkle mountain range without trimming the MMR using the roaring bitmap
fn fetch_mmr_proof(&self, tree: MmrTree, leaf_pos: usize) -> Result<MerkleProof, ChainStorageError> {
        let db = self.db_access()?;
        let pruned_mmr = get_pruned_mmr(&db, &tree)?;
        let proof = match tree {
            MmrTree::Utxo => MerkleProof::for_leaf_node(&pruned_mmr.mmr(), leaf_pos)?,
            MmrTree::Kernel => MerkleProof::for_leaf_node(&pruned_mmr.mmr(), leaf_pos)?,
            MmrTree::RangeProof => MerkleProof::for_leaf_node(&pruned_mmr.mmr(), leaf_pos)?,
        };
        Ok(proof)
    }
fn fetch_mmr_proof ( & self , tree : MmrTree , leaf_pos : usize ) -> Result < MerkleProof , ChainStorageError > { let db = self . db_access ( ) ? ; let pruned_mmr = get_pruned_mmr ( & db , & tree ) ? ; let proof = match tree { MmrTree :: Utxo => MerkleProof :: for_leaf_node ( & pruned_mmr . mmr ( ) , leaf_pos ) ? , MmrTree :: Kernel => MerkleProof :: for_leaf_node ( & pruned_mmr . mmr ( ) , leaf_pos ) ? , MmrTree :: RangeProof => MerkleProof :: for_leaf_node ( & pruned_mmr . mmr ( ) , leaf_pos ) ? , } ; Ok ( proof ) }
Returns an MMR proof extracted from the full Merkle mountain range without trimming the MMR using the roaring
bitmap
Returns an MMR proof extracted from the full Merkle mountain range without trimming the MMR using the roaring bitmap
&self
tree
MmrTree
leaf_pos
usize
&self
tree
MmrTree
leaf_pos
usize