File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1310,6 +1310,7 @@ impl<F: FieldWitness> InnerCurve<F> {
1310
1310
}
1311
1311
}
1312
1312
1313
+ use poly_commitment:: SRS ;
1313
1314
use std:: cell:: RefCell ;
1314
1315
1315
1316
thread_local ! {
@@ -3902,8 +3903,7 @@ pub fn make_prover_index<C: ProofConstants, F: FieldWitness>(
3902
3903
let srs: poly_commitment:: ipa:: SRS < F :: OtherCurve > = {
3903
3904
let srs = get_srs_mut :: < F > ( ) ;
3904
3905
let srs = srs. lock ( ) . unwrap ( ) . clone ( ) ;
3905
- // srs.add_lagrange_basis(cs.domain.d1);
3906
- // srs.with_lagrange_basis(cs.domain.d1);
3906
+ srs. get_lagrange_basis ( cs. domain . d1 ) ;
3907
3907
srs
3908
3908
} ;
3909
3909
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use kimchi::{
22
22
mina_curves:: pasta:: Pallas ,
23
23
} ;
24
24
use mina_curves:: pasta:: { Fp , Fq } ;
25
- use poly_commitment:: { ipa:: SRS , lagrange_basis :: WithLagrangeBasis , SRS as _} ;
25
+ use poly_commitment:: { ipa:: SRS , SRS as _} ;
26
26
27
27
use crate :: { proofs:: BACKEND_TOCK_ROUNDS_N , VerificationKey } ;
28
28
@@ -338,7 +338,7 @@ fn make_verifier_index(index: VerifierIndex<Fq>) -> VerifierIndex<Fq> {
338
338
// <https://github.com/o1-labs/proof-systems/blob/2702b09063c7a48131173d78b6cf9408674fd67e/kimchi/src/verifier_index.rs#L310-L314>
339
339
let srs = {
340
340
let srs = SRS :: create ( max_poly_size) ;
341
- srs. with_lagrange_basis ( domain) ;
341
+ srs. get_lagrange_basis ( domain) ;
342
342
Arc :: new ( srs)
343
343
} ;
344
344
@@ -397,7 +397,7 @@ pub fn make_zkapp_verifier_index(vk: &VerificationKey) -> VerifierIndex<Fq> {
397
397
let srs = {
398
398
let degree = 1 << BACKEND_TOCK_ROUNDS_N ;
399
399
let srs = SRS :: < Pallas > :: create ( degree) ;
400
- srs. with_lagrange_basis ( domain) ;
400
+ srs. get_lagrange_basis ( domain) ;
401
401
srs
402
402
} ;
403
403
Original file line number Diff line number Diff line change @@ -266,7 +266,6 @@ fn make_lagrange<F: FieldWitness>(
266
266
267
267
let x_domain = EvaluationDomain :: < F > :: new ( domain_size) . expect ( "invalid argument" ) ;
268
268
269
- // srs.with_lagrange_basis(x_domain);
270
269
271
270
let lagrange_bases = srs. get_lagrange_basis ( x_domain) [ ..domain_size] . to_vec ( ) ;
272
271
// lagrange_bases[..domain_size].to_vec()
@@ -1826,8 +1825,6 @@ pub mod wrap_verifier {
1826
1825
EvaluationDomain :: < <F as crate :: proofs:: field:: FieldWitness >:: Scalar > :: new ( d)
1827
1826
. expect ( "invalid argument" ) ;
1828
1827
1829
- // srs.with_lagrange_basis(x_domain);
1830
-
1831
1828
let lagrange_bases = & srs. get_lagrange_basis ( x_domain) ;
1832
1829
lagrange_bases[ i] . clone ( )
1833
1830
}
You can’t perform that action at this time.
0 commit comments