@@ -49,7 +49,6 @@ pub struct AggregationCircuit {
49
49
// the public instance for this circuit consists of
50
50
// - an accumulator (12 elements)
51
51
// - the batch's public_input_hash (32 elements)
52
- // - the number of snarks that is aggregated (1 element)
53
52
pub flattened_instances : Vec < Fr > ,
54
53
// accumulation scheme proof, private input
55
54
pub as_proof : Value < Vec < u8 > > ,
@@ -107,13 +106,8 @@ impl AggregationCircuit {
107
106
// the public instance for this circuit consists of
108
107
// - an accumulator (12 elements)
109
108
// - the batch's public_input_hash (32 elements)
110
- // - the number of snarks that is aggregated (1 element)
111
- let flattened_instances: Vec < Fr > = [
112
- acc_instances. as_slice ( ) ,
113
- public_input_hash. as_slice ( ) ,
114
- & [ Fr :: from ( batch_hash. number_of_valid_chunks as u64 ) ] ,
115
- ]
116
- . concat ( ) ;
109
+ let flattened_instances: Vec < Fr > =
110
+ [ acc_instances. as_slice ( ) , public_input_hash. as_slice ( ) ] . concat ( ) ;
117
111
118
112
end_timer ! ( timer) ;
119
113
Ok ( Self {
@@ -379,12 +373,6 @@ impl Circuit<Fr> for AggregationCircuit {
379
373
380
374
log:: trace!( "number of valid snarks: {:?}" , num_valid_snarks. value( ) ) ;
381
375
382
- layouter. constrain_instance (
383
- num_valid_snarks. cell ( ) ,
384
- config. instance ,
385
- DIGEST_LEN + ACC_LEN ,
386
- ) ?;
387
-
388
376
end_timer ! ( witness_time) ;
389
377
Ok ( ( ) )
390
378
}
@@ -394,13 +382,11 @@ impl CircuitExt<Fr> for AggregationCircuit {
394
382
fn num_instance ( & self ) -> Vec < usize > {
395
383
// 12 elements from accumulator
396
384
// 32 elements from batch's public_input_hash
397
- // 1 element for # of valid chunks
398
- vec ! [ ACC_LEN + DIGEST_LEN + 1 ]
385
+ vec ! [ ACC_LEN + DIGEST_LEN ]
399
386
}
400
387
401
388
// 12 elements from accumulator
402
389
// 32 elements from batch's public_input_hash
403
- // 1 element for # of valid chunks
404
390
fn instances ( & self ) -> Vec < Vec < Fr > > {
405
391
vec ! [ self . flattened_instances. clone( ) ]
406
392
}
0 commit comments