[][src]Function commcid::piece_commitment_v1_to_cid

pub fn piece_commitment_v1_to_cid(
    comm_p: &Commitment
) -> Result<Cid, &'static str>

piece_commitment_v1_to_cid converts a comm_p to a CID -- it is just a helper function that is equivalent to data_commitment_v1_to_cid.