mirror of
https://github.com/logos-storage/constantine.git
synced 2026-01-05 22:53:12 +00:00
glv filename -> endomorphisms
This commit is contained in:
parent
bea798e27c
commit
86a67013dd
@ -10,11 +10,11 @@ import
|
|||||||
std/macros,
|
std/macros,
|
||||||
../config/[curves, type_ff],
|
../config/[curves, type_ff],
|
||||||
../towers,
|
../towers,
|
||||||
./bls12_377_glv,
|
./bls12_377_endomorphisms,
|
||||||
./bls12_381_glv,
|
./bls12_381_endomorphisms,
|
||||||
./bn254_nogami_glv,
|
./bn254_nogami_endomorphisms,
|
||||||
./bn254_snarks_glv,
|
./bn254_snarks_endomorphisms,
|
||||||
./bw6_761_glv
|
./bw6_761_endomorphisms
|
||||||
|
|
||||||
{.experimental: "dynamicBindSym".}
|
{.experimental: "dynamicBindSym".}
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ import
|
|||||||
# Internal
|
# Internal
|
||||||
../primitives,
|
../primitives,
|
||||||
../config/[common, curves, type_bigint],
|
../config/[common, curves, type_bigint],
|
||||||
../curves/zoo_glv,
|
../curves/zoo_endomorphisms,
|
||||||
../arithmetic,
|
../arithmetic,
|
||||||
../towers,
|
../towers,
|
||||||
../isogeny/frobenius,
|
../isogeny/frobenius,
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import
|
|||||||
../arithmetic,
|
../arithmetic,
|
||||||
../towers,
|
../towers,
|
||||||
../io/io_bigints,
|
../io/io_bigints,
|
||||||
../curves/zoo_glv,
|
../curves/zoo_endomorphisms,
|
||||||
./ec_endomorphism_accel
|
./ec_endomorphism_accel
|
||||||
|
|
||||||
# ############################################################
|
# ############################################################
|
||||||
|
|||||||
@ -237,7 +237,7 @@ def dumpConst(name, inner):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Usage
|
# Usage
|
||||||
# BLS12-381
|
# BLS12-381
|
||||||
# sage sage/derive_pairing.sage BLS12_381
|
# sage sage/derive_endomorphisms.sage BLS12_381
|
||||||
|
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
|
||||||
@ -261,7 +261,7 @@ if __name__ == "__main__":
|
|||||||
print('----------------------------------------------------\n')
|
print('----------------------------------------------------\n')
|
||||||
g2lat, g2babai = genPsiEndo(curve, Curves)
|
g2lat, g2babai = genPsiEndo(curve, Curves)
|
||||||
|
|
||||||
with open(f'{curve.lower()}_glv.nim', 'w') as f:
|
with open(f'{curve.lower()}_endomorphisms.nim', 'w') as f:
|
||||||
f.write(copyright())
|
f.write(copyright())
|
||||||
f.write('\n\n')
|
f.write('\n\n')
|
||||||
f.write(inspect.cleandoc(f"""
|
f.write(inspect.cleandoc(f"""
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import std/unittest,
|
|||||||
../constantine/config/common,
|
../constantine/config/common,
|
||||||
../constantine/arithmetic,
|
../constantine/arithmetic,
|
||||||
../constantine/config/curves,
|
../constantine/config/curves,
|
||||||
../constantine/curves/zoo_glv
|
../constantine/curves/zoo_endomorphisms
|
||||||
|
|
||||||
echo "\n------------------------------------------------------\n"
|
echo "\n------------------------------------------------------\n"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user