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

"FQ12 (a finite field with 12 elements)." #7

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
3 changes: 2 additions & 1 deletion py_ecc/bn128/bn128_field_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See, it's prime!
assert pow(2, field_modulus, field_modulus) == 2

# The modulus of the polynomial in this representation of FQ12
# The modulus of the polynomial in this representation of FQ12 (which has elements which
# are vectors/coefficient lists of length 12 (13 if you count the leading 1)).
FQ12_modulus_coeffs = [82, 0, 0, 0, 0, 0, -18, 0, 0, 0, 0, 0] # Implied + [1]

# Extended euclidean algorithm to find modular inverses for
Expand Down