curv/cryptographic_primitives/proofs/
mod.rs

1/*
2    This file is part of Curv library
3    Copyright 2018 by Kzen Networks
4    (https://github.com/KZen-networks/curv)
5    License MIT: https://github.com/KZen-networks/curv/blob/master/LICENSE
6*/
7
8use std::error::Error;
9use std::fmt;
10
11pub mod low_degree_exponent_interpolation;
12pub mod sigma_correct_homomorphic_elgamal_enc;
13pub mod sigma_correct_homomorphic_elgamal_encryption_of_dlog;
14pub mod sigma_dlog;
15pub mod sigma_ec_ddh;
16pub mod sigma_valid_pedersen;
17pub mod sigma_valid_pedersen_blind;
18
19#[derive(Debug, Clone, Copy)]
20pub struct ProofError;
21
22impl fmt::Display for ProofError {
23    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24        write!(f, "ProofError")
25    }
26}
27
28impl Error for ProofError {
29    fn description(&self) -> &str {
30        "Error while verifying"
31    }
32}