Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Comment on return value of inv(a, n) #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion py_ecc/bn128/bn128_field_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def inv(a, n):
r = high//low
nm, new = hm-lm*r, high-low*r
lm, low, hm, high = nm, new, lm, low
return lm % n
return lm % n # The quotient of the second input by the greatest common divisor of the two inputs.

# A class for field elements in FQ. Wrap a number in this class,
# and it becomes a field element.
Expand Down