1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#[macro_use]
extern crate serde_derive;
extern crate serde;
extern crate serde_json;
extern crate num_bigint;
extern crate num_integer;
extern crate num_traits;
extern crate rand;
extern crate zeroize;
extern crate cryptoxide;
pub mod curv;
pub mod gg_2018;
pub mod paillier;
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
pub enum Error {
InvalidKey,
InvalidSS,
InvalidCom,
InvalidSig,
}
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
pub enum ErrorKey {
InvalidPublicKey,
}
pub enum ErrorSS {
VerifyShareError,
}