@@ -11,7 +11,6 @@ use crate::{
11
11
} ;
12
12
13
13
use itertools:: chain;
14
- use kimchi:: { mina_curves:: pasta:: { Vesta , VestaParameters } , poly_commitment:: SRS as _} ;
15
14
use kimchi:: mina_poseidon:: constants:: PlonkSpongeConstantsKimchi ;
16
15
use kimchi:: mina_poseidon:: sponge:: { DefaultFqSponge , DefaultFrSponge } ;
17
16
use kimchi:: poly_commitment:: commitment:: CommitmentCurve ;
@@ -21,6 +20,10 @@ use kimchi::{
21
20
circuits:: constraints:: ConstraintSystem , groupmap:: GroupMap , mina_curves:: pasta:: Pallas ,
22
21
poly_commitment:: ipa:: SRS ,
23
22
} ;
23
+ use kimchi:: {
24
+ mina_curves:: pasta:: { Vesta , VestaParameters } ,
25
+ poly_commitment:: SRS as _,
26
+ } ;
24
27
25
28
use miette:: { Context , IntoDiagnostic } ;
26
29
use once_cell:: sync:: Lazy ;
@@ -107,7 +110,7 @@ impl KimchiVesta {
107
110
. wrap_err ( "kimchi: could not create a constraint system with the given circuit and public input size" ) ?;
108
111
109
112
// create SRS (for vesta, as the circuit is in Fp)
110
- let mut srs = SRS :: < Curve > :: create ( cs. domain . d1 . size as usize ) ;
113
+ let srs = SRS :: < Curve > :: create ( cs. domain . d1 . size as usize ) ;
111
114
srs. get_lagrange_basis ( cs. domain . d1 ) ;
112
115
let srs = std:: sync:: Arc :: new ( srs) ;
113
116
@@ -198,12 +201,15 @@ impl ProverIndex {
198
201
}
199
202
200
203
// create proof
201
- let proof =
202
- ProverProof :: create :: < BaseSponge , ScalarSponge , _ > ( & GROUP_MAP , witness, & [ ] , & self . index , & mut rand:: rngs:: OsRng )
203
- //.map_err(|e| miette!(e))
204
- . into_diagnostic ( )
205
- . wrap_err ( "kimchi: could not create a proof with the given inputs" ) ?;
206
-
204
+ let proof = ProverProof :: create :: < BaseSponge , ScalarSponge , _ > (
205
+ & GROUP_MAP ,
206
+ witness,
207
+ & [ ] ,
208
+ & self . index ,
209
+ & mut rand:: rngs:: OsRng ,
210
+ )
211
+ . into_diagnostic ( )
212
+ . wrap_err ( "kimchi: could not create a proof with the given inputs" ) ?;
207
213
208
214
// return proof + public output
209
215
Ok ( (
0 commit comments