diff --git a/CHANGELOG.md b/CHANGELOG.md index dfdb3468f7..65947cca22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* fix: rename y_cube_int to y_square_int in get_point_from_x [#2271](https://github.com/lambdaclass/cairo-vm/pull/2271) + #### [3.0.0] - 2025-11-19 #### [3.0.0-rc.5] - 2025-11-14 diff --git a/vm/src/hint_processor/builtin_hint_processor/secp/signature.rs b/vm/src/hint_processor/builtin_hint_processor/secp/signature.rs index b495ab073f..a56990be7b 100644 --- a/vm/src/hint_processor/builtin_hint_processor/secp/signature.rs +++ b/vm/src/hint_processor/builtin_hint_processor/secp/signature.rs @@ -117,10 +117,10 @@ pub fn get_point_from_x( let x_cube_int = Uint384::from_var_name("x_cube", vm, ids_data, ap_tracking)? .pack86() .mod_floor(&SECP_P); - let y_cube_int = (x_cube_int + beta).mod_floor(&SECP_P); - exec_scopes.insert_value("y_square_int", y_cube_int.clone()); + let y_square_int = (x_cube_int + beta).mod_floor(&SECP_P); + exec_scopes.insert_value("y_square_int", y_square_int.clone()); // Divide by 4 - let mut y = y_cube_int.modpow(&(&*SECP_P + 1_u32).shr(2_u32), &SECP_P); + let mut y = y_square_int.modpow(&(&*SECP_P + 1_u32).shr(2_u32), &SECP_P); exec_scopes.insert_value::("y", y.clone()); let v = get_integer_from_var_name("v", vm, ids_data, ap_tracking)?.to_bigint();