@@ -115,8 +115,11 @@ fn permutation_layer(
115
115
mod test {
116
116
use acvm:: {
117
117
acir:: { circuit:: opcodes:: FunctionInput , native_types:: Witness , native_types:: WitnessMap } ,
118
- pwg:: { block:: Blocks , solve, OpcodeResolution , PartialWitnessGeneratorStatus } ,
119
- FieldElement , OpcodeResolutionError , PartialWitnessGenerator ,
118
+ pwg:: {
119
+ block:: Blocks , solve, OpcodeResolution , OpcodeResolutionError ,
120
+ PartialWitnessGeneratorStatus ,
121
+ } ,
122
+ FieldElement , PartialWitnessGenerator ,
120
123
} ;
121
124
122
125
use crate :: {
@@ -127,65 +130,6 @@ mod test {
127
130
128
131
struct MockBackend { }
129
132
impl PartialWitnessGenerator for MockBackend {
130
- fn aes (
131
- & self ,
132
- _initial_witness : & mut WitnessMap ,
133
- _inputs : & [ FunctionInput ] ,
134
- _outputs : & [ Witness ] ,
135
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
136
- panic ! ( "Path not trodden by this test" )
137
- }
138
- fn and (
139
- & self ,
140
- _initial_witness : & mut WitnessMap ,
141
- _lhs : & FunctionInput ,
142
- _rhs : & FunctionInput ,
143
- _output : & Witness ,
144
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
145
- panic ! ( "Path not trodden by this test" )
146
- }
147
- fn xor (
148
- & self ,
149
- _initial_witness : & mut WitnessMap ,
150
- _lhs : & FunctionInput ,
151
- _rhs : & FunctionInput ,
152
- _output : & Witness ,
153
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
154
- panic ! ( "Path not trodden by this test" )
155
- }
156
- fn range (
157
- & self ,
158
- _initial_witness : & mut WitnessMap ,
159
- _input : & FunctionInput ,
160
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
161
- panic ! ( "Path not trodden by this test" )
162
- }
163
- fn sha256 (
164
- & self ,
165
- _initial_witness : & mut WitnessMap ,
166
- _inputs : & [ FunctionInput ] ,
167
- _outputs : & [ Witness ] ,
168
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
169
- panic ! ( "Path not trodden by this test" )
170
- }
171
- fn blake2s (
172
- & self ,
173
- _initial_witness : & mut WitnessMap ,
174
- _inputs : & [ FunctionInput ] ,
175
- _outputs : & [ Witness ] ,
176
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
177
- panic ! ( "Path not trodden by this test" )
178
- }
179
- fn compute_merkle_root (
180
- & self ,
181
- _initial_witness : & mut WitnessMap ,
182
- _leaf : & FunctionInput ,
183
- _index : & FunctionInput ,
184
- _hash_path : & [ FunctionInput ] ,
185
- _output : & Witness ,
186
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
187
- panic ! ( "Path not trodden by this test" )
188
- }
189
133
fn schnorr_verify (
190
134
& self ,
191
135
_initial_witness : & mut WitnessMap ,
@@ -201,29 +145,11 @@ mod test {
201
145
& self ,
202
146
_initial_witness : & mut WitnessMap ,
203
147
_inputs : & [ FunctionInput ] ,
148
+ _domain_separator : u32 ,
204
149
_outputs : & [ Witness ] ,
205
150
) -> Result < OpcodeResolution , OpcodeResolutionError > {
206
151
panic ! ( "Path not trodden by this test" )
207
152
}
208
- fn hash_to_field_128_security (
209
- & self ,
210
- _initial_witness : & mut WitnessMap ,
211
- _inputs : & [ FunctionInput ] ,
212
- _output : & Witness ,
213
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
214
- panic ! ( "Path not trodden by this test" )
215
- }
216
- fn ecdsa_secp256k1 (
217
- & self ,
218
- _initial_witness : & mut WitnessMap ,
219
- _public_key_x : & [ FunctionInput ] ,
220
- _public_key_y : & [ FunctionInput ] ,
221
- _signature : & [ FunctionInput ] ,
222
- _message : & [ FunctionInput ] ,
223
- _output : & Witness ,
224
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
225
- panic ! ( "Path not trodden by this test" )
226
- }
227
153
fn fixed_base_scalar_mul (
228
154
& self ,
229
155
_initial_witness : & mut WitnessMap ,
@@ -232,14 +158,6 @@ mod test {
232
158
) -> Result < OpcodeResolution , OpcodeResolutionError > {
233
159
panic ! ( "Path not trodden by this test" )
234
160
}
235
- fn keccak256 (
236
- & self ,
237
- _initial_witness : & mut WitnessMap ,
238
- _inputs : & [ FunctionInput ] ,
239
- _outputs : & [ Witness ] ,
240
- ) -> Result < OpcodeResolution , OpcodeResolutionError > {
241
- panic ! ( "Path not trodden by this test" )
242
- }
243
161
}
244
162
245
163
// Check that a random network constrains its output to be a permutation of any random input
0 commit comments