We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement the remaining hints in ec_bigint.json
Assigned: Status: todo
from starkware.cairo.common.cairo_secp.secp_utils import pack from starkware.cairo.common.math_utils import as_int from starkware.python.math_utils import div_mod, safe_div p = pack(ids.P, PRIME) x = pack(ids.x, PRIME) + as_int(ids.x.d3, PRIME) * ids.BASE ** 3 + as_int(ids.x.d4, PRIME) * ids.BASE ** 4 y = pack(ids.y, PRIME) value = res = div_mod(x, y, p)
k = safe_div(res * y - x, p) value = k if k > 0 else 0 - k ids.flag = 1 if k > 0 else 0
The text was updated successfully, but these errors were encountered:
Corporate needs you to find the differences between hint 35 and hint 36.
Sorry, something went wrong.
I fixed the issue description with the correct value for the NewHint#36. Got confirmation from @pefontana
jpcenteno
No branches or pull requests
Implement the remaining hints in ec_bigint.json
NewHint#35
Assigned:
Status: todo
NewHint#36
Assigned:
Status: todo
The text was updated successfully, but these errors were encountered: