@@ -167,6 +167,7 @@ fn stwo_verify(circuit_proof: CircuitProof, preprocessed_circuit: &PreprocessedC
167167#[ test]
168168fn test_prove_and_stark_verify_blake_gate_context ( ) {
169169 let mut blake_gate_context = build_blake_gate_context ( ) ;
170+ circuits:: finalize_constants:: finalize_constants ( & mut blake_gate_context) ;
170171 blake_gate_context. finalize_guessed_vars ( ) ;
171172 blake_gate_context. validate_circuit ( ) ;
172173
@@ -183,6 +184,7 @@ fn test_prove_and_stark_verify_blake_gate_context() {
183184#[ test]
184185fn test_prove_and_stark_verify_permutation_context ( ) {
185186 let mut permutation_context = build_permutation_context ( ) ;
187+ circuits:: finalize_constants:: finalize_constants ( & mut permutation_context) ;
186188 permutation_context. finalize_guessed_vars ( ) ;
187189 permutation_context. validate_circuit ( ) ;
188190
@@ -199,6 +201,7 @@ fn test_prove_and_stark_verify_permutation_context() {
199201#[ test]
200202fn test_prove_and_stark_verify_fibonacci_context ( ) {
201203 let mut fibonacci_context = build_fibonacci_context ( ) ;
204+ circuits:: finalize_constants:: finalize_constants ( & mut fibonacci_context) ;
202205 fibonacci_context. finalize_guessed_vars ( ) ;
203206 fibonacci_context. validate_circuit ( ) ;
204207
@@ -215,6 +218,7 @@ fn test_prove_and_stark_verify_fibonacci_context() {
215218#[ test]
216219fn test_prove_and_stark_verify_m31_to_u32_context ( ) {
217220 let mut m31_to_u32_context = build_m31_to_u32_context ( ) ;
221+ circuits:: finalize_constants:: finalize_constants ( & mut m31_to_u32_context) ;
218222 m31_to_u32_context. finalize_guessed_vars ( ) ;
219223 m31_to_u32_context. validate_circuit ( ) ;
220224
@@ -258,11 +262,12 @@ fn circuit_verify(
258262}
259263
260264const FIBONACCI_CIRCUIT_PREPROCESSED_ROOT : [ u32 ; 8 ] =
261- [ 579827647 , 460015323 , 2072233139 , 709693420 , 371952288 , 1355707807 , 1645091261 , 2144587918 ] ;
265+ [ 609397099 , 1756617193 , 1941377268 , 2080039112 , 2095406638 , 3084915 , 101776927 , 1547274111 ] ;
262266
263267#[ test]
264268fn test_prove_and_circuit_verify_fibonacci_context ( ) {
265269 let mut fibonacci_context = build_fibonacci_context ( ) ;
270+ circuits:: finalize_constants:: finalize_constants ( & mut fibonacci_context) ;
266271 fibonacci_context. finalize_guessed_vars ( ) ;
267272 fibonacci_context. validate_circuit ( ) ;
268273
@@ -277,11 +282,12 @@ fn test_prove_and_circuit_verify_fibonacci_context() {
277282}
278283
279284const M31_TO_U32_CIRCUIT_PREPROCESSED_ROOT : [ u32 ; 8 ] =
280- [ 270075619 , 790063164 , 183255611 , 43064901 , 229280056 , 1717043326 , 341216832 , 2011011748 ] ;
285+ [ 2057150194 , 1287539556 , 348840330 , 1316644708 , 1932016463 , 1332646262 , 1451210563 , 700919965 ] ;
281286
282287#[ test]
283288fn test_prove_and_circuit_verify_m31_to_u32_context ( ) {
284289 let mut m31_to_u32_context = build_m31_to_u32_context ( ) ;
290+ circuits:: finalize_constants:: finalize_constants ( & mut m31_to_u32_context) ;
285291 m31_to_u32_context. finalize_guessed_vars ( ) ;
286292 m31_to_u32_context. validate_circuit ( ) ;
287293
0 commit comments