Function filecoin_proofs_api::post::verify_winning_post

source ·
pub fn verify_winning_post(
    randomness: &ChallengeSeed,
    proof: &[u8],
    replicas: &BTreeMap<SectorId, PublicReplicaInfo>,
    prover_id: ProverId,
) -> Result<bool>
Expand description

Verifies a winning Proof-of-Spacetime.

The provided replicas must be the same ones as passed to generate_winning_post, and be based on the indices generated by generate_winning_post_sector_challenge. It is the responsibility of the caller to ensure this.

§Arguments

  • randomness - Random seed value for PoSt challenge.
  • proof - Proof to verify.
  • replicas - Replica to generate proof for.
  • prover_id - Unique ID of the storage provider.

Returns result of proof verification.