Skip to content

Commit 96c3dc0

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)