[][src]Function commcid::commitment_to_cid

pub fn commitment_to_cid(
    mc: Codec,
    mh: u64,
    commitment: &Commitment
) -> Result<Cid, &'static str>

CommitmentToCID converts a raw commitment hash to a CID by adding:

  • the given filecoin codec type
  • the given filecoin hash type