@@ -164,12 +164,12 @@ impl<F: Field, const BYTES_IN_FIELD: usize> ToHashBlockCircuitConfig<F, BYTES_IN
164
164
) ;
165
165
} ) ;
166
166
167
- cb. condition ( not :: expr ( q_byte_in_field_not_last ( meta ) ) , |cb|{
167
+ cb. condition ( meta . query_advice ( is_field_border , Rotation :: prev ( ) ) , |cb|{
168
168
169
169
cb. require_equal (
170
- "if !q_byte_in_field_not_last padding_shift := 1 " ,
170
+ "if is_field_border_prev padding_shift := 256^(BYTES_IN_FIELD-1) " ,
171
171
meta. query_advice ( padding_shift, Rotation :: cur ( ) ) ,
172
- 1 . expr ( ) ,
172
+ Expression :: Constant ( F :: from ( 256 as u64 ) . pow_vartime ( [ BYTES_IN_FIELD as u64 - 1 ] ) ) ,
173
173
) ;
174
174
} ) ;
175
175
@@ -497,13 +497,13 @@ impl<F: Field, const BYTES_IN_FIELD: usize> ToHashBlockCircuitConfig<F, BYTES_IN
497
497
offset : usize ,
498
498
) -> Result < ( ) , Error > {
499
499
for ( name, column) in [
500
- ( "control length header" , self . control_length ) ,
500
+ // ("control length header", self.control_length),
501
501
( "field input header" , self . field_input ) ,
502
502
( "bytes in field header" , self . bytes_in_field_index ) ,
503
503
( "bytes in field inv header" , self . bytes_in_field_inv ) ,
504
504
( "field border header" , self . is_field_border ) ,
505
- ( "padding shift header" , self . padding_shift ) ,
506
- ( "field index header" , self . field_index ) ,
505
+ // ("padding shift header", self.padding_shift),
506
+ // ("field index header", self.field_index),
507
507
( "field index inv header" , self . field_index_inv ) ,
508
508
] {
509
509
region. assign_advice (
0 commit comments