pub fn aggregate_seal_commit_proofs<Tree: 'static + MerkleTreeTrait>(
    porep_config: PoRepConfig,
    comm_rs: &[[u8; 32]],
    seeds: &[[u8; 32]],
    commit_outputs: &[SealCommitOutput],
    aggregate_version: AggregateVersion
) -> Result<AggregateSnarkProof>
Expand description

Given a porep_config and a list of seal commit outputs, this method aggregates those proofs (naively padding the count if necessary up to a power of 2) and returns the aggregate proof bytes.

Arguments

  • porep_config - this sector’s porep config that contains the number of bytes in the sector.
  • seeds - an ordered list of seeds used to derive the PoRep challenges.
  • commit_outputs - an ordered list of seal proof outputs returned from ‘seal_commit_phase2’.