use crate::{algorithms::SNARKError, curves::constraint_field::ConstraintFieldError, parameters::ParametersError};
use std::io::Error as IoError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum PoswError {
#[error("could not load PoSW parameters: {0}")]
Parameters(#[from] ParametersError),
#[error("could not verify PoSW")]
PoswVerificationFailed,
#[error(transparent)]
SnarkError(#[from] SNARKError),
#[error(transparent)]
IoError(#[from] IoError),
#[error(transparent)]
ConstraintFieldError(#[from] ConstraintFieldError),
}