Skip to main content

cid_from_merkle

Function cid_from_merkle 

Source
pub fn cid_from_merkle(
    algorithm: HashAlgo,
    merkle_hex: &str,
) -> Result<String, CasError>
Expand description

Encode a legacy XET merkle hex digest as a canonical CIDv1 for the given algorithm, using the reconstruction-shard codec.