pub fn empty_sector_update_encode_into<R, S, T, U, V>(
    registered_proof: RegisteredUpdateProof,
    new_replica_path: R,
    new_cache_path: S,
    sector_key_path: T,
    sector_key_cache_path: U,
    staged_data_path: V,
    piece_infos: &[PieceInfo],
) -> Result<EmptySectorUpdateEncoded>
where R: AsRef<Path>, S: AsRef<Path>, T: AsRef<Path>, U: AsRef<Path>, V: AsRef<Path>,
Expand description

Encodes data into an existing replica.

§Arguments

  • registered_proof - Selected sector update proof.
  • new_replica_path - Output path of new updated replica.
  • new_cache_path - Output path of new cache.
  • sector_key_path - Path to sector key originally used to seal sector.
  • staged_data_path - Path to staged data to encode into existing replica.
  • piece_infos - The piece info (commitment and byte length) for each piece in the sector.

Returns new commitments in EmptySectorUpdateEncoded struct.