@@ -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 {
@@ -381,12 +375,6 @@ impl Circuit<Fr> for AggregationCircuit {
381
375
382
376
log:: trace!( "number of valid snarks: {:?}" , num_valid_snarks. value( ) ) ;
383
377
384
- layouter. constrain_instance (
385
- num_valid_snarks. cell ( ) ,
386
- config. instance ,
387
- DIGEST_LEN + ACC_LEN ,
388
- ) ?;
389
-
390
378
end_timer ! ( witness_time) ;
391
379
Ok ( ( ) )
392
380
}
@@ -396,13 +384,11 @@ impl CircuitExt<Fr> for AggregationCircuit {
396
384
fn num_instance ( & self ) -> Vec < usize > {
397
385
// 12 elements from accumulator
398
386
// 32 elements from batch's public_input_hash
399
- // 1 element for # of valid chunks
400
- vec ! [ ACC_LEN + DIGEST_LEN + 1 ]
387
+ vec ! [ ACC_LEN + DIGEST_LEN ]
401
388
}
402
389
403
390
// 12 elements from accumulator
404
391
// 32 elements from batch's public_input_hash
405
- // 1 element for # of valid chunks
406
392
fn instances ( & self ) -> Vec < Vec < Fr > > {
407
393
vec ! [ self . flattened_instances. clone( ) ]
408
394
}
0 commit comments