// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use super::ProofVerifier;
use crate::{PoStProof, Randomness, RegisteredPoStProof, SealVerifyInfo, SectorInfo};
use std::error::Error as StdError;

/// Verifier implementation
pub enum MockVerifier {}

impl ProofVerifier for MockVerifier {
    fn verify_seal(_: &SealVerifyInfo) -> Result<(), Box<dyn StdError>> {
        Ok(())
    }
    fn verify_winning_post(
        _: Randomness,
        _: &[PoStProof],
        _: &[SectorInfo],
        _: u64,
    ) -> Result<(), Box<dyn StdError>> {
        Ok(())
    }
    fn verify_window_post(
        _: Randomness,
        _: &[PoStProof],
        _: &[SectorInfo],
        _: u64,
    ) -> Result<(), Box<dyn StdError>> {
        Ok(())
    }
    fn generate_winning_post_sector_challenge(
        _: RegisteredPoStProof,
        _: u64,
        _: Randomness,
        _: u64,
    ) -> Result<Vec<u64>, Box<dyn StdError>> {
        Ok(vec![0])
    }
}
