dusk-plonk 0.2.8

A pure-Rust implementation of the PLONK ZK-Proof algorithm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Errors related to the proof_system module.

use thiserror::Error;

/// Defines all of the possible ProofError types that we could have when
/// we are working with the `proof_system` module.
#[derive(Error, Debug)]
pub enum ProofErrors {
    /// This error occurs when the verification of a `Proof` fails.
    #[error("proof verification failed")]
    ProofVerificationError,
    /// This error occurrs when the Prover structure already contains a
    /// preprocessed circuit inside, but you call preprocess again.
    #[error("circuit already preprocessed")]
    CircuitAlreadyPreprocessed,
}