Function filecoin_proofs_api::seal::generate_synth_proofs

source ·
pub fn generate_synth_proofs<T: AsRef<Path>>(
    cache_path: T,
    replica_path: T,
    prover_id: ProverId,
    sector_id: SectorId,
    ticket: Ticket,
    pre_commit: SealPreCommitPhase2Output,
    piece_infos: &[PieceInfo],
) -> Result<()>
Expand description

Generate and persist synthetic Merkle tree proofs for sector replica. Must be called with output from seal_pre_commit_phase2.

§Arguments

  • cache_path - Directory path to use for generation of Merkle tree on disk.
  • replica_path - out_path from seal_pre_commit_phase2, which points to generated sector replica.
  • 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 - Interactive randomnessthe seed used to derive the Proof-of-Replication (PoRep) challenges.
  • piece_infos - The piece info (commitment and byte length) for each piece in the sector.

Returns vanilla Merkle tree proof for use by seal_commit_phase2.