Function filecoin_proofs_api::seal::seal_commit_phase2

source ·
pub fn seal_commit_phase2(
    phase1_output: SealCommitPhase1Output,
    prover_id: ProverId,
    sector_id: SectorId,
) -> Result<SealCommitPhase2Output>
Expand description

Generates zk-SNARK proof for sector replica. Must be called with output of seal_commit_phase1.

§Arguments

  • phase1_output - Struct returned from seal_commit_phase1 containing Merkle tree proof.
  • prover_id - Unique ID of the storage provider.
  • sector_id - ID of the sector, usually relative to the miner.

Returns SealCommitPhase2Output struct containing vector of zk-SNARK proofs.