Skip to content

Conversation

@nikeshnazareth
Copy link

The pairing functions use precompile 0x8, defined in EIP-197.

The EIP states:
Elements a * i + b of F_p^2 are encoded as two elements of F_p, (a, b)
So the imaginary component should be specified first.

Additionally, it checks whether e(a1, b1) * ... * e(ak, bk) = 1

The docstrings currently list real components first and invert the
first pairing term. This PR corrects them.

The pairing functions use precompile 0x8, defined in EIP-197.

The EIP states:
Elements a * i + b of F_p^2 are encoded as two elements of F_p, (a, b)
So the imaginary component should be specified first.

Additionally, it checks whether e(a1, b1) * ... * e(ak, bk) = 1

The docstrings currently list real components first and invert the
first pairing term. This commit corrects them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant