Function fil_actors_shared::abi::commp::compute_unsealed_sector_cid_v2

source ยท
pub fn compute_unsealed_sector_cid_v2(
    proof_type: RegisteredSealProof,
    pieces: &[PieceInfo],
) -> Result<Cid>
Expand description

Computes an unsealed sector CID (CommD) from its constituent piece CIDs (CommPs) and sizes.

Ported from https://github.com/filecoin-project/go-commp-utils/blob/62059082a8378046f27a01d62777ae539a2d1feb/nonffi/commd.go#L20