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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
use noah_algebra::collections::BTreeMap;
#[cfg(not(feature = "no_urs"))]
pub static BULLETPROOF_CURVE25519_URS: Option<&'static [u8]> = Some(include_bytes!(
"../parameters/bulletproof-curve25519-urs.bin"
));
#[cfg(feature = "no_urs")]
pub static BULLETPROOF_CURVE25519_URS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_urs"))]
pub static BULLETPROOF_SECQ256K1_URS: Option<&'static [u8]> = Some(include_bytes!(
"../parameters/bulletproof-secq256k1-urs.bin"
));
#[cfg(feature = "no_urs")]
pub static BULLETPROOF_ZORRO_URS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_urs"))]
pub static BULLETPROOF_ZORRO_URS: Option<&'static [u8]> =
Some(include_bytes!("../parameters/bulletproof-zorro-urs.bin"));
#[cfg(feature = "no_urs")]
pub static BULLETPROOF_SECQ256K1_URS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_srs"))]
pub static SRS: Option<&'static [u8]> = Some(include_bytes!("../parameters/srs-padding.bin"));
#[cfg(feature = "no_srs")]
pub static SRS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_vk"))]
pub static VERIFIER_COMMON_PARAMS: Option<&'static [u8]> =
Some(include_bytes!("../parameters/transfer-vk-common.bin"));
#[cfg(feature = "no_vk")]
pub static VERIFIER_COMMON_PARAMS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_vk"))]
pub static VERIFIER_SPECIFIC_PARAMS: Option<&'static [u8]> =
Some(include_bytes!("../parameters/transfer-vk-specific.bin"));
#[cfg(feature = "no_vk")]
pub static VERIFIER_SPECIFIC_PARAMS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_vk"))]
pub static ABAR_TO_BAR_VERIFIER_PARAMS: Option<&'static [u8]> =
Some(include_bytes!("../parameters/abar-to-bar-vk.bin"));
#[cfg(feature = "no_vk")]
pub static ABAR_TO_BAR_VERIFIER_PARAMS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_vk"))]
pub static BAR_TO_ABAR_VERIFIER_PARAMS: Option<&'static [u8]> =
Some(include_bytes!("../parameters/bar-to-abar-vk.bin"));
#[cfg(feature = "no_vk")]
pub static BAR_TO_ABAR_VERIFIER_PARAMS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_vk"))]
pub static AR_TO_ABAR_VERIFIER_PARAMS: Option<&'static [u8]> =
Some(include_bytes!("../parameters/ar-to-abar-vk.bin"));
#[cfg(feature = "no_vk")]
pub static AR_TO_ABAR_VERIFIER_PARAMS: Option<&'static [u8]> = None;
#[cfg(not(feature = "no_vk"))]
pub static ABAR_TO_AR_VERIFIER_PARAMS: Option<&'static [u8]> =
Some(include_bytes!("../parameters/abar-to-ar-vk.bin"));
#[cfg(feature = "no_vk")]
pub static ABAR_TO_AR_VERIFIER_PARAMS: Option<&'static [u8]> = None;
#[cfg(feature = "no_srs")]
lazy_static! {
pub static ref LAGRANGE_BASES: BTreeMap<usize, &'static [u8]> = BTreeMap::default();
}
#[cfg(not(feature = "no_srs"))]
static LAGRANGE_BASE_4096: &'static [u8] = include_bytes!("../parameters/lagrange-srs-4096.bin");
#[cfg(all(not(feature = "no_srs"), not(feature = "lightweight")))]
static LAGRANGE_BASE_8192: &'static [u8] = include_bytes!("../parameters/lagrange-srs-8192.bin");
#[cfg(not(feature = "no_srs"))]
lazy_static! {
pub static ref LAGRANGE_BASES: BTreeMap<usize, &'static [u8]> = {
let mut m = BTreeMap::new();
m.insert(4096, LAGRANGE_BASE_4096);
#[cfg(not(feature = "lightweight"))]
{
m.insert(8192, LAGRANGE_BASE_8192);
}
m
};
}