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

FinalExp tests and estimated benchmarks #109

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 4 additions & 5 deletions archive_tmp/bn254/pairing_final_exp.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from algebra import Polynomial
from algebra import PyFelt, BaseField
from src.algebra import Polynomial
from src.algebra import PyFelt, BaseField
from tools.extension_trick import (
gnark_to_v,
gnark_to_v_bigint3,
flatten,
neg_e6,
v_to_gnark,
Expand Down Expand Up @@ -294,10 +293,10 @@ def frobenius_torus(x: list):
5722266937896532885780051958958348231143373700109372999374820235121374419868,
) # 1 / v^((p-1)/2)
res = flatten(mul_e6((t0, t1, t2), (v0, (0, 0), (0, 0))))
res_bigint3 = gnark_to_v_bigint3([split(x) for x in res])
# res_bigint3 = gnark_to_v_bigint3([split(x) for x in res])

res = gnark_to_v(res)
return res, res_bigint3
return res


def frobenius_cube_torus(x: list):
Expand Down
326 changes: 0 additions & 326 deletions archive_tmp/bn254/pairing_final_exp_circuit_generation.py

This file was deleted.

Loading