Function filecoin_proofs_api::seal::get_seal_inputs

source ·
pub fn get_seal_inputs(
    registered_proof: RegisteredSealProof,
    comm_r: Commitment,
    comm_d: Commitment,
    prover_id: ProverId,
    sector_id: SectorId,
    ticket: Ticket,
    seed: Ticket,
) -> Result<Vec<Vec<Scalar>>>
Expand description

Given the specified arguments, this method returns the inputs that were used to generate the seal 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

  • registered_proof - Selected seal operation.
  • comm_r - A commitment to a sector’s replica.
  • comm_d - A commitment to a sector’s data.
  • prover_id - Unique ID of the storage provider.
  • sector_id - ID of the sector, usually relative to the miner.
  • ticket - The ticket used to generate this sector’s replica-id.
  • seed - The seed used to derive the porep challenges.

Returns the inputs that were used to generate seal proof.