Skip to content

Commit 7c41550

Browse files
committed
Review fixes
1 parent 0896e89 commit 7c41550

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

ledger/src/proofs/transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,7 @@ impl<F: FieldWitness> InnerCurve<F> {
13101310
}
13111311
}
13121312

1313+
use poly_commitment::SRS;
13131314
use std::cell::RefCell;
13141315

13151316
thread_local! {
@@ -3902,8 +3903,7 @@ pub fn make_prover_index<C: ProofConstants, F: FieldWitness>(
39023903
let srs: poly_commitment::ipa::SRS<F::OtherCurve> = {
39033904
let srs = get_srs_mut::<F>();
39043905
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);
39073907
srs
39083908
};
39093909

ledger/src/proofs/verifiers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use kimchi::{
2222
mina_curves::pasta::Pallas,
2323
};
2424
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 _};
2626

2727
use crate::{proofs::BACKEND_TOCK_ROUNDS_N, VerificationKey};
2828

@@ -338,7 +338,7 @@ fn make_verifier_index(index: VerifierIndex<Fq>) -> VerifierIndex<Fq> {
338338
// <https://github.com/o1-labs/proof-systems/blob/2702b09063c7a48131173d78b6cf9408674fd67e/kimchi/src/verifier_index.rs#L310-L314>
339339
let srs = {
340340
let srs = SRS::create(max_poly_size);
341-
srs.with_lagrange_basis(domain);
341+
srs.get_lagrange_basis(domain);
342342
Arc::new(srs)
343343
};
344344

@@ -397,7 +397,7 @@ pub fn make_zkapp_verifier_index(vk: &VerificationKey) -> VerifierIndex<Fq> {
397397
let srs = {
398398
let degree = 1 << BACKEND_TOCK_ROUNDS_N;
399399
let srs = SRS::<Pallas>::create(degree);
400-
srs.with_lagrange_basis(domain);
400+
srs.get_lagrange_basis(domain);
401401
srs
402402
};
403403

ledger/src/proofs/wrap.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ fn make_lagrange<F: FieldWitness>(
266266

267267
let x_domain = EvaluationDomain::<F>::new(domain_size).expect("invalid argument");
268268

269-
// srs.with_lagrange_basis(x_domain);
270269

271270
let lagrange_bases = srs.get_lagrange_basis(x_domain)[..domain_size].to_vec();
272271
// lagrange_bases[..domain_size].to_vec()
@@ -1826,8 +1825,6 @@ pub mod wrap_verifier {
18261825
EvaluationDomain::<<F as crate::proofs::field::FieldWitness>::Scalar>::new(d)
18271826
.expect("invalid argument");
18281827

1829-
// srs.with_lagrange_basis(x_domain);
1830-
18311828
let lagrange_bases = &srs.get_lagrange_basis(x_domain);
18321829
lagrange_bases[i].clone()
18331830
}

0 commit comments

Comments
 (0)