Function fvm_shared::commcid::commitment_to_cid

source ยท
pub fn commitment_to_cid(
    mc: u64,
    mh: u64,
    commitment: &Commitment,
) -> Result<Cid, &'static str>
Expand description

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

  • the given filecoin codec type
  • the given filecoin e