Skip to content
New issue

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

pairing_g2_g1 always returns 0 #2

Open
Genya-Z opened this issue Mar 29, 2024 · 1 comment
Open

pairing_g2_g1 always returns 0 #2

Genya-Z opened this issue Mar 29, 2024 · 1 comment

Comments

@Genya-Z
Copy link
Contributor

Genya-Z commented Mar 29, 2024

The function pairing_g2_g1 always returns 0.
In any case, the function couldn't even work since the Ate pairing maps into GF(p,12) and that can't fit inside a u256.

@Genya-Z
Copy link
Contributor Author

Genya-Z commented Apr 19, 2024

The problem is that the function relied on precompiles::ec_pairing which doesn't return the pairing, merely checks whether it's trivial.

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

No branches or pull requests

1 participant