bulletproof/lib.rs
1/*
2
3Copyright 2018 by Kzen Networks
4
5This file is part of bulletproof library
6(https://github.com/KZen-networks/bulletproof)
7
8bulletproof is free software: you can redistribute
9it and/or modify it under the terms of the GNU General Public
10License as published by the Free Software Foundation, either
11version 3 of the License, or (at your option) any later version.
12
13@license GPL-3.0+ <https://github.com/KZen-networks/bulletproof/blob/master/LICENSE>
14*/
15
16#![allow(clippy::many_single_char_names, clippy::too_many_arguments)]
17
18// based on the paper: https://eprint.iacr.org/2017/1066.pdf
19#[macro_use]
20extern crate serde_derive;
21extern crate serde;
22
23extern crate curv;
24extern crate generic_array;
25extern crate itertools;
26extern crate sha2;
27
28pub mod proofs;
29
30#[derive(Copy, PartialEq, Eq, Clone, Debug)]
31pub enum Errors {
32 InnerProductError,
33 WeightedInnerProdError,
34 RangeProofError,
35}