@@ -29,7 +29,7 @@ use mina_poseidon::{
29
29
sponge:: { DefaultFqSponge , DefaultFrSponge } ,
30
30
} ;
31
31
use poly_commitment:: commitment:: { CommitmentCurve , PolyComm } ;
32
- use poly_commitment:: evaluation_proof :: OpeningProof ;
32
+ use poly_commitment:: ipa :: OpeningProof ;
33
33
use std:: array;
34
34
use std:: convert:: TryInto ;
35
35
@@ -66,7 +66,7 @@ pub fn caml_pasta_fp_plonk_proof_create(
66
66
. iter ( )
67
67
. map ( Into :: < Fp > :: into)
68
68
. collect ( ) ;
69
- let comm = PolyComm :: < Vesta > { elems : vec ! [ sg] } ;
69
+ let comm = PolyComm :: < Vesta > { chunks : vec ! [ sg] } ;
70
70
RecursionChallenge { chals, comm }
71
71
} )
72
72
. collect ( )
@@ -134,7 +134,7 @@ pub fn caml_pasta_fp_plonk_proof_create_and_verify(
134
134
. iter ( )
135
135
. map ( Into :: < Fp > :: into)
136
136
. collect ( ) ;
137
- let comm = PolyComm :: < Vesta > { elems : vec ! [ sg] } ;
137
+ let comm = PolyComm :: < Vesta > { chunks : vec ! [ sg] } ;
138
138
RecursionChallenge { chals, comm }
139
139
} )
140
140
. collect ( )
@@ -204,7 +204,7 @@ pub fn caml_pasta_fp_plonk_proof_example_with_lookup(
204
204
polynomial:: COLUMNS ,
205
205
wires:: Wire ,
206
206
} ;
207
- use poly_commitment:: srs :: endos;
207
+ use poly_commitment:: ipa :: endos;
208
208
209
209
let num_gates = 1000 ;
210
210
let num_tables: usize = 5 ;
@@ -319,13 +319,13 @@ pub fn caml_pasta_fp_plonk_proof_example_with_foreign_field_mul(
319
319
use kimchi:: circuits:: {
320
320
constraints:: ConstraintSystem ,
321
321
gate:: { CircuitGate , Connect } ,
322
- polynomials:: foreign_field_mul,
322
+ polynomials:: { foreign_field_mul, foreign_field_common :: BigUintForeignFieldHelpers } ,
323
323
wires:: Wire ,
324
324
} ;
325
325
use num_bigint:: BigUint ;
326
326
use num_bigint:: RandBigInt ;
327
- use o1_utils:: { foreign_field :: BigUintForeignFieldHelpers , FieldHelpers } ;
328
- use poly_commitment:: srs :: endos;
327
+ use o1_utils:: FieldHelpers ;
328
+ use poly_commitment:: ipa :: endos;
329
329
use rand:: { rngs:: StdRng , SeedableRng } ;
330
330
331
331
let foreign_field_modulus = Fq :: modulus_biguint ( ) ;
@@ -476,12 +476,14 @@ pub fn caml_pasta_fp_plonk_proof_example_with_range_check(
476
476
) {
477
477
use ark_ff:: Zero ;
478
478
use kimchi:: circuits:: {
479
- constraints:: ConstraintSystem , gate:: CircuitGate , polynomials:: range_check, wires:: Wire ,
479
+ constraints:: ConstraintSystem , gate:: CircuitGate ,
480
+ polynomials:: { range_check, foreign_field_common:: BigUintForeignFieldHelpers } ,
481
+ wires:: Wire ,
480
482
} ;
481
483
use num_bigint:: BigUint ;
482
484
use num_bigint:: RandBigInt ;
483
- use o1_utils:: { foreign_field :: BigUintForeignFieldHelpers , BigUintFieldHelpers } ;
484
- use poly_commitment:: srs :: endos;
485
+ use o1_utils:: { BigUintFieldHelpers } ;
486
+ use poly_commitment:: ipa :: endos;
485
487
use rand:: { rngs:: StdRng , SeedableRng } ;
486
488
487
489
let rng = & mut StdRng :: from_seed ( [ 255u8 ; 32 ] ) ;
@@ -548,7 +550,7 @@ pub fn caml_pasta_fp_plonk_proof_example_with_range_check0(
548
550
polynomials:: { generic:: GenericGateSpec , range_check} ,
549
551
wires:: Wire ,
550
552
} ;
551
- use poly_commitment:: srs :: endos;
553
+ use poly_commitment:: ipa :: endos;
552
554
553
555
let gates = {
554
556
// Public input row with value 0
@@ -626,7 +628,7 @@ pub fn caml_pasta_fp_plonk_proof_example_with_ffadd(
626
628
wires:: Wire ,
627
629
} ;
628
630
use num_bigint:: BigUint ;
629
- use poly_commitment:: srs :: endos;
631
+ use poly_commitment:: ipa :: endos;
630
632
631
633
// Includes a row to store value 1
632
634
let num_public_inputs = 1 ;
@@ -749,7 +751,7 @@ pub fn caml_pasta_fp_plonk_proof_example_with_xor(
749
751
polynomials:: { generic:: GenericGateSpec , xor} ,
750
752
wires:: Wire ,
751
753
} ;
752
- use poly_commitment:: srs :: endos;
754
+ use poly_commitment:: ipa :: endos;
753
755
754
756
let num_public_inputs = 2 ;
755
757
@@ -842,7 +844,7 @@ pub fn caml_pasta_fp_plonk_proof_example_with_rot(
842
844
} ,
843
845
wires:: Wire ,
844
846
} ;
845
- use poly_commitment:: srs :: endos;
847
+ use poly_commitment:: ipa :: endos;
846
848
847
849
// Includes the actual input of the rotation and a row with the zero value
848
850
let num_public_inputs = 2 ;
@@ -982,7 +984,7 @@ pub fn caml_pasta_fp_plonk_proof_dummy() -> CamlProofWithPublic<CamlGVesta, Caml
982
984
fn comm ( ) -> PolyComm < Vesta > {
983
985
let g = Vesta :: generator ( ) ;
984
986
PolyComm {
985
- elems : vec ! [ g, g, g] ,
987
+ chunks : vec ! [ g, g, g] ,
986
988
}
987
989
}
988
990
0 commit comments