[][src]Function commcid::cid_to_commitment

pub fn cid_to_commitment(
    c: &Cid
) -> Result<(Codec, u64, Commitment), &'static str>

CIDToCommitment extracts the raw commitment bytes, the FilMultiCodec and FilMultiHash from a CID, after validating that the codec and hash type are consistent