1
1
use crate :: passport_info:: { PersonalInfo , PersonalInfoVar } ;
2
2
3
3
use zkcreds:: proof_data_structures:: {
4
- ForestProof as ZeronymForestProof , ForestProvingKey as ZeronymForestPk ,
5
- ForestVerifyingKey as ZeronymForestVk , PredProof as ZeronymPredProof ,
6
- PredProvingKey as ZeronymPredPk , PredVerifyingKey as ZeronymPredVk ,
7
- TreeProof as ZeronymTreeProof , TreeProvingKey as ZeronymTreePk ,
8
- TreeVerifyingKey as ZeronymTreeVk ,
4
+ PredProof as ZeronymPredProof , PredProvingKey as ZeronymPredPk ,
5
+ PredVerifyingKey as ZeronymPredVk ,
9
6
} ;
10
7
11
8
use ark_bls12_381:: Bls12_381 ;
@@ -84,12 +81,9 @@ pub(crate) type PassportComSchemeG =
84
81
zkcreds:: compressed_pedersen:: constraints:: CommGadget < EdwardsParameters , FqVar , Window9x128 > ;
85
82
86
83
pub ( crate ) type ComTree = zkcreds:: com_tree:: ComTree < Fr , H , PassportComScheme > ;
87
- pub ( crate ) type ComForest = zkcreds:: com_forest:: ComForest < Fr , H , PassportComScheme > ;
88
- pub ( crate ) type ComTreePath = zkcreds:: com_tree:: ComTreePath < Fr , H , PassportComScheme > ;
89
- pub ( crate ) type ComForestRoots = zkcreds:: com_forest:: ComForestRoots < Fr , H > ;
90
84
91
85
/// Type aliases for Groth16 stuff
92
- pub ( crate ) type PredProvingKey = ZeronymPredPk <
86
+ pub ( crate ) type PredProof = ZeronymPredProof <
93
87
Bls12_381 ,
94
88
PersonalInfo ,
95
89
PersonalInfoVar ,
@@ -98,7 +92,7 @@ pub(crate) type PredProvingKey = ZeronymPredPk<
98
92
H ,
99
93
HG ,
100
94
> ;
101
- pub ( crate ) type PredVerifyingKey = ZeronymPredVk <
95
+ pub ( crate ) type PredProvingKey = ZeronymPredPk <
102
96
Bls12_381 ,
103
97
PersonalInfo ,
104
98
PersonalInfoVar ,
@@ -107,15 +101,7 @@ pub(crate) type PredVerifyingKey = ZeronymPredVk<
107
101
H ,
108
102
HG ,
109
103
> ;
110
- pub ( crate ) type TreeProvingKey =
111
- ZeronymTreePk < Bls12_381 , PersonalInfo , PassportComScheme , PassportComSchemeG , H , HG > ;
112
- pub ( crate ) type TreeVerifyingKey =
113
- ZeronymTreeVk < Bls12_381 , PersonalInfo , PassportComScheme , PassportComSchemeG , H , HG > ;
114
- pub ( crate ) type ForestProvingKey =
115
- ZeronymForestPk < Bls12_381 , PersonalInfo , PassportComScheme , PassportComSchemeG , H , HG > ;
116
- pub ( crate ) type ForestVerifyingKey =
117
- ZeronymForestVk < Bls12_381 , PersonalInfo , PassportComScheme , PassportComSchemeG , H , HG > ;
118
- pub ( crate ) type PredProof = ZeronymPredProof <
104
+ pub ( crate ) type PredVerifyingKey = ZeronymPredVk <
119
105
Bls12_381 ,
120
106
PersonalInfo ,
121
107
PersonalInfoVar ,
@@ -124,10 +110,6 @@ pub(crate) type PredProof = ZeronymPredProof<
124
110
H ,
125
111
HG ,
126
112
> ;
127
- pub ( crate ) type TreeProof =
128
- ZeronymTreeProof < Bls12_381 , PersonalInfo , PassportComScheme , PassportComSchemeG , H , HG > ;
129
- pub ( crate ) type ForestProof =
130
- ZeronymForestProof < Bls12_381 , PersonalInfo , PassportComScheme , PassportComSchemeG , H , HG > ;
131
113
132
114
// Set params
133
115
lazy_static ! {
0 commit comments