pub fn compute_comm_d(
    sector_size: SectorSize,
    piece_infos: &[PieceInfo]
) -> Result<Commitment>
Expand description

Computes a sectors’s comm_d given its pieces.

Arguments

  • porep_config - this sector’s porep config that contains the number of bytes in the sector.
  • piece_infos - the piece info (commitment and byte length) for each piece in this sector.