Function filecoin_proofs_api::seal::fauxrep2

source ·
pub fn fauxrep2<R: AsRef<Path>, S: AsRef<Path>>(
    registered_proof: RegisteredSealProof,
    cache_path: R,
    existing_p_aux_path: S,
) -> Result<Commitment>
Expand description

fauxrep2 is a faster way to generate sectors for network genesis setup by reusing data from a previously generated sector.

§Arguments

  • registered_proof - Selected seal operation.
  • cache_path - Directory path to use for generation of Merkle tree on disk.
  • existing_p_aux_path - p_aux file path from previously generated sector.

Returns Commitment data for the faux replica.