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