Skip to main content

decode_tree_node_by_cid

Function decode_tree_node_by_cid 

Source
pub fn decode_tree_node_by_cid(
    cid: &Cid,
    data: Vec<u8>,
) -> Result<Option<TreeNode>, HashTreeError>
Expand description

Decode already-loaded CID bytes without reading storage again. The caller remains responsible for verifying the stored content hash.