Skip to content

Commit 7a2bdc6

Browse files
fix: bug in OS secp hint
Signed-off-by: Dori Medini <[email protected]>
1 parent df12864 commit 7a2bdc6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
* refactor: Limit ret opcode decodeing to Cairo0's standards. [#1925](https://github.com/lambdaclass/cairo-vm/pull/1925)
88

9+
* fix: bug in OS secp hint [#1949](https://github.com/lambdaclass/cairo-vm/pull/1949)
10+
911
#### [2.0.0-rc4] - 2025-01-23
1012

1113
* feat: implement `kzg` data availability hints [#1887](https://github.com/lambdaclass/cairo-vm/pull/1887)

vm/src/hint_processor/builtin_hint_processor/hint_code.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,8 @@ from starkware.cairo.common.cairo_secp.secp_utils import pack
699699
from starkware.python.math_utils import ec_double_slope
700700
701701
# Compute the slope.
702-
x = pack(ids.point.x, SECP256R1_P)
703-
y = pack(ids.point.y, SECP256R1_P)
702+
x = pack(ids.point.x, PRIME)
703+
y = pack(ids.point.y, PRIME)
704704
value = slope = ec_double_slope(point=(x, y), alpha=SECP256R1_ALPHA, p=SECP256R1_P)"#;
705705

706706
pub const EC_DOUBLE_SLOPE_EXTERNAL_CONSTS: &str = r#"from starkware.cairo.common.cairo_secp.secp_utils import pack

0 commit comments

Comments
 (0)