@@ -3,12 +3,12 @@ use alloc::vec::Vec;
33use alloc:: { format, vec} ;
44use core:: marker:: PhantomData ;
55
6+ use p3_batch_stark:: BatchProof ;
67use p3_circuit:: CircuitBuilder ;
78use p3_circuit:: op:: { NonPrimitiveOpConfig , NonPrimitiveOpType } ;
89use p3_circuit:: utils:: ColumnsTargets ;
910use p3_commit:: { Pcs , PolynomialSpace } ;
1011use p3_field:: { BasedVectorSpace , Field , PrimeCharacteristicRing } ;
11- use p3_batch_stark:: BatchProof ;
1212use p3_uni_stark:: { OpenedValues , StarkGenericConfig } ;
1313use p3_util:: zip_eq:: zip_eq;
1414
@@ -31,7 +31,7 @@ type PcsVerifierParams<SC, InputProof, OpeningProof, Comm> =
3131 > >:: Domain ,
3232 > >:: VerifierParams ;
3333
34- /// Opened values for a single STARK instance within the multi -proof.
34+ /// Opened values for a single STARK instance within the batch -proof.
3535#[ derive( Clone ) ]
3636pub struct InstanceOpenedValuesTargets < SC : StarkGenericConfig > {
3737 pub trace_local : Vec < Target > ,
@@ -40,7 +40,7 @@ pub struct InstanceOpenedValuesTargets<SC: StarkGenericConfig> {
4040 _phantom : PhantomData < SC > ,
4141}
4242
43- /// Recursive targets for a multi -STARK proof.
43+ /// Recursive targets for a batch -STARK proof.
4444///
4545/// The `flattened` field stores the aggregated commitments, opened values, and opening proof in the
4646/// same layout expected by single-instance PCS logic. The `instances` field retains per-instance
@@ -159,7 +159,7 @@ impl<
159159 }
160160}
161161
162- /// Verify a multi -STARK proof inside a recursive circuit.
162+ /// Verify a batch -STARK proof inside a recursive circuit.
163163pub fn verify_batch_circuit <
164164 A ,
165165 SC : StarkGenericConfig ,
@@ -191,16 +191,16 @@ where
191191 SC :: Challenge : PrimeCharacteristicRing ,
192192 <<SC as StarkGenericConfig >:: Pcs as Pcs < SC :: Challenge , SC :: Challenger > >:: Domain : Clone ,
193193{
194- debug_assert_eq ! ( config. is_zk( ) , 0 , "batch/multi recursion assumes non-ZK" ) ;
194+ debug_assert_eq ! ( config. is_zk( ) , 0 , "batch recursion assumes non-ZK" ) ;
195195 if airs. is_empty ( ) {
196196 return Err ( VerificationError :: InvalidProofShape (
197- "multi -STARK verification requires at least one instance" . to_string ( ) ,
197+ "batch -STARK verification requires at least one instance" . to_string ( ) ,
198198 ) ) ;
199199 }
200200
201201 if SC :: Pcs :: ZK {
202202 return Err ( VerificationError :: InvalidProofShape (
203- "ZK mode is not supported for multi -STARK recursion" . to_string ( ) ,
203+ "ZK mode is not supported for batch -STARK recursion" . to_string ( ) ,
204204 ) ) ;
205205 }
206206
@@ -231,7 +231,7 @@ where
231231
232232 if commitments_targets. random_commit . is_some ( ) {
233233 return Err ( VerificationError :: InvalidProofShape (
234- "Multi -STARK verifier does not support random commitments" . to_string ( ) ,
234+ "Batch -STARK verifier does not support random commitments" . to_string ( ) ,
235235 ) ) ;
236236 }
237237
@@ -277,7 +277,7 @@ where
277277 quotient_degrees. push ( quotient_degree) ;
278278 }
279279
280- // Challenger initialisation mirrors the native multi -STARK verifier transcript.
280+ // Challenger initialisation mirrors the native batch -STARK verifier transcript.
281281 let mut challenger = CircuitChallenger :: < RATE > :: new ( ) ;
282282 let inst_count_target = circuit. alloc_const (
283283 SC :: Challenge :: from_usize ( n_instances) ,
0 commit comments