Function filecoin_proofs_api::seal::seal_pre_commit_phase2

source ·
pub fn seal_pre_commit_phase2<R, S>(
    phase1_output: SealPreCommitPhase1Output,
    cache_path: R,
    out_path: S,
) -> Result<SealPreCommitPhase2Output>
where R: AsRef<Path>, S: AsRef<Path>,
Expand description

Second phase of seal precommit operation, must be called with output of seal_pre_commit_phase1. Generates comm_r replica commitment from outputs of previous step.

§Arguments

  • phase1_output - Struct returned from seal_pre_commit_phase1.
  • cache_path - Directory path to use for generation of Merkle tree on disk.
  • out_path - File path of the sealed sector replica.

Returns data and replica commitments required for seal_commit_phase1.