Files
dusk_plonk
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
//! Errors related to the Constraint system

use failure::Error;

/// Represents an error on the Circuit preprocessing stage.
#[derive(Fail, Debug)]
pub enum PreProcessingError {
    /// This error occurs when an error triggers during the preprocessing
    /// stage.
    #[fail(display = "the length of the wires it's not the same")]
    MissmatchedPolyLen,
}

#[derive(Debug, Fail)]
#[fail(display = "Proving error")]
/// Represents an error on the Proving stage.
pub struct ProvingError(#[fail(cause)] Error);