Skip to content

Commit

Permalink
fix(hints): Fix hint code EC_RECOVER_SUB_A_B (lambdaclass#1085)
Browse files Browse the repository at this point in the history
* Fix hint EC_RECOVER_SUB_A_B

* Fix changelog entry
  • Loading branch information
fmoletta authored and kariy committed Jun 23, 2023
1 parent 8885ed9 commit f552f7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@

a = pack(ids.a, PRIME)
b = pack(ids.b, PRIME)

value = res = a - b
%}

Expand Down
1 change: 1 addition & 0 deletions cairo_programs/ec_recover.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func test_sub_a_b_hint{range_check_ptr: felt}() {
a = pack(ids.a, PRIME)
b = pack(ids.b, PRIME)
value = res = a - b
%}

Expand Down
1 change: 1 addition & 0 deletions src/hint_processor/builtin_hint_processor/hint_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,7 @@ from starkware.python.math_utils import div_mod, safe_div
a = pack(ids.a, PRIME)
b = pack(ids.b, PRIME)
value = res = a - b"#;

pub const A_B_BITAND_1: &str = "ids.a_lsb = ids.a & 1
Expand Down

0 comments on commit f552f7b

Please sign in to comment.