@@ -28,11 +28,7 @@ use crate::{
28
28
operations:: field:: params:: FieldParameters ,
29
29
stark:: Indexed ,
30
30
syscall:: precompiles:: {
31
- bls12_381:: {
32
- g1_decompress:: { Bls12381G1DecompressChip , Bls12381G1DecompressEvent } ,
33
- g2_add:: { Bls12381G2AffineAddChip , Bls12381G2AffineAddEvent } ,
34
- g2_double:: { Bls12381G2AffineDoubleChip , Bls12381G2AffineDoubleEvent } ,
35
- } ,
31
+ bls12_381:: g1_decompress:: { Bls12381G1DecompressChip , Bls12381G1DecompressEvent } ,
36
32
field:: { FieldChip , FieldEvent } ,
37
33
quad_field:: { QuadFieldChip , QuadFieldEvent } ,
38
34
secp256k1:: decompress:: { Secp256k1DecompressChip , Secp256k1DecompressEvent } ,
@@ -131,8 +127,6 @@ pub struct ExecutionRecord {
131
127
pub bls12381_fp_events : Vec < FieldEvent < Bls12381BaseField > > ,
132
128
pub bls12381_fp2_events : Vec < QuadFieldEvent < Bls12381BaseField > > ,
133
129
pub bls12381_g1_decompress_events : Vec < Bls12381G1DecompressEvent > ,
134
- pub bls12381_g2_add_events : Vec < Bls12381G2AffineAddEvent > ,
135
- pub bls12381_g2_double_events : Vec < Bls12381G2AffineDoubleEvent > ,
136
130
137
131
// Blake2s
138
132
pub blake2s_round_events : Vec < Blake2sRoundEvent > ,
@@ -262,18 +256,6 @@ impl EventLens<Secp256k1DecompressChip> for ExecutionRecord {
262
256
}
263
257
}
264
258
265
- impl EventLens < Bls12381G2AffineAddChip > for ExecutionRecord {
266
- fn events ( & self ) -> <Bls12381G2AffineAddChip as crate :: air:: WithEvents < ' _ > >:: Events {
267
- & self . bls12381_g2_add_events
268
- }
269
- }
270
-
271
- impl EventLens < Bls12381G2AffineDoubleChip > for ExecutionRecord {
272
- fn events ( & self ) -> <Bls12381G2AffineDoubleChip as crate :: air:: WithEvents < ' _ > >:: Events {
273
- & self . bls12381_g2_double_events
274
- }
275
- }
276
-
277
259
impl EventLens < FieldChip < Bls12381BaseField > > for ExecutionRecord {
278
260
fn events ( & self ) -> <FieldChip < Bls12381BaseField > as crate :: air:: WithEvents < ' _ > >:: Events {
279
261
& self . bls12381_fp_events
@@ -495,14 +477,6 @@ impl MachineRecord for ExecutionRecord {
495
477
"bls12381_fp2_events" . to_string ( ) ,
496
478
self . bls12381_fp2_events . len ( ) ,
497
479
) ;
498
- stats. insert (
499
- "bls12381_g2_add_events" . to_string ( ) ,
500
- self . bls12381_g2_add_events . len ( ) ,
501
- ) ;
502
- stats. insert (
503
- "bls12381_g2_double_events" . to_string ( ) ,
504
- self . bls12381_g2_double_events . len ( ) ,
505
- ) ;
506
480
507
481
stats. insert (
508
482
"blake2s_round_events" . to_string ( ) ,
@@ -554,10 +528,6 @@ impl MachineRecord for ExecutionRecord {
554
528
. append ( & mut other. bls12381_fp2_events ) ;
555
529
self . bls12381_g1_decompress_events
556
530
. append ( & mut other. bls12381_g1_decompress_events ) ;
557
- self . bls12381_g2_add_events
558
- . append ( & mut other. bls12381_g2_add_events ) ;
559
- self . bls12381_g2_double_events
560
- . append ( & mut other. bls12381_g2_double_events ) ;
561
531
self . blake2s_round_events
562
532
. append ( & mut other. blake2s_round_events ) ;
563
533
@@ -887,18 +857,6 @@ impl MachineRecord for ExecutionRecord {
887
857
self . nonce_lookup . insert ( event. lookup_id , i as u32 ) ;
888
858
}
889
859
890
- // Bls12-381 G2Affine addition events.
891
- first. bls12381_g2_add_events = take ( & mut self . bls12381_g2_add_events ) ;
892
- for ( i, event) in first. bls12381_g2_add_events . iter ( ) . enumerate ( ) {
893
- self . nonce_lookup . insert ( event. lookup_id , i as u32 ) ;
894
- }
895
-
896
- // Bls12-381 G2Affine doubling events.
897
- first. bls12381_g2_double_events = take ( & mut self . bls12381_g2_double_events ) ;
898
- for ( i, event) in first. bls12381_g2_double_events . iter ( ) . enumerate ( ) {
899
- self . nonce_lookup . insert ( event. lookup_id , i as u32 ) ;
900
- }
901
-
902
860
// blake2s_round events
903
861
first. blake2s_round_events = take ( & mut self . blake2s_round_events ) ;
904
862
for ( i, event) in first. blake2s_round_events . iter ( ) . enumerate ( ) {
0 commit comments