@@ -129,7 +129,7 @@ impl CustomHint {
129129
130130 pub fn n_args ( & self ) -> usize {
131131 match self {
132- Self :: DecomposeBitsXMSS => 5 ,
132+ Self :: DecomposeBitsXMSS => 4 ,
133133 Self :: DecomposeBitsMerkleWhir => 3 ,
134134 Self :: DecomposeBits => 4 ,
135135 Self :: LessThan => 3 ,
@@ -145,13 +145,11 @@ impl CustomHint {
145145 match self {
146146 Self :: DecomposeBitsXMSS => {
147147 let decomposed_ptr = args[ 0 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
148- let remaining_ptr = args[ 1 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
149- let to_decompose_ptr = args[ 2 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
150- let num_to_decompose = args[ 3 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
151- let chunk_size = args[ 4 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
148+ let to_decompose_ptr = args[ 1 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
149+ let num_to_decompose = args[ 2 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
150+ let chunk_size = args[ 3 ] . read_value ( ctx. memory , ctx. fp ) ?. to_usize ( ) ;
152151 assert ! ( 24_usize . is_multiple_of( chunk_size) ) ;
153152 let mut memory_index_decomposed = decomposed_ptr;
154- let mut memory_index_remaining = remaining_ptr;
155153 #[ allow( clippy:: explicit_counter_loop) ]
156154 for i in 0 ..num_to_decompose {
157155 let value = ctx. memory . get ( to_decompose_ptr + i) ?. to_usize ( ) ;
@@ -160,8 +158,6 @@ impl CustomHint {
160158 ctx. memory . set ( memory_index_decomposed, value) ?;
161159 memory_index_decomposed += 1 ;
162160 }
163- ctx. memory . set ( memory_index_remaining, F :: from_usize ( value >> 24 ) ) ?;
164- memory_index_remaining += 1 ;
165161 }
166162 }
167163 Self :: DecomposeBitsMerkleWhir => {
0 commit comments