2020-09-22 23:21:35 +00:00
|
|
|
|
# Constantine
|
|
|
|
|
# Copyright (c) 2018-2019 Status Research & Development GmbH
|
|
|
|
|
# Copyright (c) 2020-Present Mamy André-Ratsimbazafy
|
|
|
|
|
# Licensed and distributed under either of
|
|
|
|
|
# * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
|
|
|
|
|
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
|
|
|
|
|
import
|
|
|
|
|
# Internals
|
2022-02-27 00:49:08 +00:00
|
|
|
|
../../constantine/math/extension_fields,
|
|
|
|
|
../../constantine/math/config/curves,
|
2020-09-22 23:21:35 +00:00
|
|
|
|
# Test utilities
|
|
|
|
|
./t_fp_tower_frobenius_template
|
|
|
|
|
|
|
|
|
|
const TestCurves = [
|
2020-09-25 19:58:20 +00:00
|
|
|
|
BN254_Nogami,
|
|
|
|
|
BN254_Snarks,
|
2020-09-27 07:15:14 +00:00
|
|
|
|
BLS12_377,
|
2020-09-22 23:21:35 +00:00
|
|
|
|
BLS12_381,
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
runFrobeniusTowerTests(
|
|
|
|
|
ExtDegree = 12,
|
2022-02-27 00:49:08 +00:00
|
|
|
|
Iters = 2,
|
2020-09-22 23:21:35 +00:00
|
|
|
|
TestCurves = TestCurves,
|
|
|
|
|
moduleName = "test_fp12_frobenius",
|
2022-02-06 14:38:26 +00:00
|
|
|
|
testSuiteDesc = "𝔽p12 Frobenius map: Frobenius(a, k) = a^(pᵏ) (mod p^12)"
|
2020-09-22 23:21:35 +00:00
|
|
|
|
)
|