Function filecoin_proofs::get_sector_update_inputs

source ·
pub fn get_sector_update_inputs<Tree: 'static + MerkleTreeTrait<Hasher = TreeRHasher>>(
    porep_config: &PoRepConfig,
    comm_r_old: Commitment,
    comm_r_new: Commitment,
    comm_d_new: Commitment,
) -> Result<Vec<Vec<Scalar>>>
Expand description

Given the specified arguments, this method returns the inputs that were used to generate the sector update proof. This can be useful for proof aggregation, as verification requires these inputs.

This method allows them to be retrieved when needed, rather than storing them for some amount of time.

§Arguments

  • porep_config - this sector’s porep config that contains the number of bytes in the sector.
  • comm_r_old - a commitment to a sector’s previous replica.
  • comm_r_new - a commitment to a sector’s current replica.
  • comm_d_new - a commitment to a sector’s current data.