Skip to content

Commit 4488f94

Browse files
committed
crandall-primes: reactivate tests for secp256k1
1 parent cba2139 commit 4488f94

11 files changed

+60
-60
lines changed

tests/math_elliptic_curves/t_ec_shortw_jac_g1_add_double.nim

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ run_EC_addition_tests(
2222
moduleName = "test_ec_shortweierstrass_jacobian_g1_add_double_" & $BN254_Snarks
2323
)
2424

25-
# run_EC_addition_tests(
26-
# ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
27-
# Iters = Iters,
28-
# moduleName = "test_ec_shortweierstrass_jacobian_g1_add_double_" & $Secp256k1
29-
# )
25+
run_EC_addition_tests(
26+
ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
27+
Iters = Iters,
28+
moduleName = "test_ec_shortweierstrass_jacobian_g1_add_double_" & $Secp256k1
29+
)
3030

3131
run_EC_addition_tests(
3232
ec = EC_ShortW_Jac[Fp[BLS12_381], G1],
@@ -64,11 +64,11 @@ run_EC_addition_vartime_tests(
6464
moduleName = "test_ec_shortweierstrass_jacobian_g1_add_double_vartime_" & $BN254_Snarks
6565
)
6666

67-
# run_EC_addition_vartime_tests(
68-
# ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
69-
# Iters = Iters,
70-
# moduleName = "test_ec_shortweierstrass_jacobian_g1_add_double_vartime_" & $Secp256k1
71-
# )
67+
run_EC_addition_vartime_tests(
68+
ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
69+
Iters = Iters,
70+
moduleName = "test_ec_shortweierstrass_jacobian_g1_add_double_vartime_" & $Secp256k1
71+
)
7272

7373
run_EC_addition_vartime_tests(
7474
ec = EC_ShortW_Jac[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_jac_g1_mixed_add.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ run_EC_mixed_add_impl(
2323
moduleName = "test_ec_shortweierstrass_jacobian_mixed_add_" & $BN254_Snarks
2424
)
2525

26-
# run_EC_mixed_add_impl(
27-
# ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
28-
# Iters = Iters,
29-
# moduleName = "test_ec_shortweierstrass_jacobian_mixed_add_" & $Secp256k1
30-
# )
26+
run_EC_mixed_add_impl(
27+
ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
28+
Iters = Iters,
29+
moduleName = "test_ec_shortweierstrass_jacobian_mixed_add_" & $Secp256k1
30+
)
3131

3232
run_EC_mixed_add_impl(
3333
ec = EC_ShortW_Jac[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_jac_g1_mul_sanity.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ suite "Order checks on BN254_Snarks":
6868
bool not ay.isSquare()
6969
bool not ay.sqrt_if_square()
7070

71-
# run_EC_mul_sanity_tests(
72-
# ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
73-
# ItersMul = ItersMul,
74-
# moduleName = "test_ec_shortweierstrass_jacobian_g1_mul_sanity_" & $Secp256k1
75-
# )
71+
run_EC_mul_sanity_tests(
72+
ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
73+
ItersMul = ItersMul,
74+
moduleName = "test_ec_shortweierstrass_jacobian_g1_mul_sanity_" & $Secp256k1
75+
)
7676

7777
run_EC_mul_sanity_tests(
7878
ec = EC_ShortW_Jac[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_jac_g1_mul_vs_ref.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ run_EC_mul_vs_ref_impl(
2323
moduleName = "test_ec_shortweierstrass_jacobian_g1_mul_vs_ref_" & $BN254_Snarks
2424
)
2525

26-
# run_EC_mul_vs_ref_impl(
27-
# ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
28-
# ItersMul = ItersMul,
29-
# moduleName = "test_ec_shortweierstrass_jacobian_g1_mul_vs_ref_" & $Secp256k1
30-
# )
26+
run_EC_mul_vs_ref_impl(
27+
ec = EC_ShortW_Jac[Fp[Secp256k1], G1],
28+
ItersMul = ItersMul,
29+
moduleName = "test_ec_shortweierstrass_jacobian_g1_mul_vs_ref_" & $Secp256k1
30+
)
3131

3232
run_EC_mul_vs_ref_impl(
3333
ec = EC_ShortW_Jac[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_jacext_g1_add_double.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ run_EC_addition_tests(
2222
moduleName = "test_ec_shortweierstrass_jacobian_extended_g1_add_double_" & $BN254_Snarks
2323
)
2424

25-
# run_EC_addition_tests(
26-
# ec = EC_ShortW_JacExt[Fp[Secp256k1], G1],
27-
# Iters = Iters,
28-
# moduleName = "test_ec_shortweierstrass_jacobian_extended_g1_add_double_" & $Secp256k1
29-
# )
25+
run_EC_addition_tests(
26+
ec = EC_ShortW_JacExt[Fp[Secp256k1], G1],
27+
Iters = Iters,
28+
moduleName = "test_ec_shortweierstrass_jacobian_extended_g1_add_double_" & $Secp256k1
29+
)
3030

3131
run_EC_addition_tests(
3232
ec = EC_ShortW_JacExt[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_jacext_g1_mixed_add.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ run_EC_mixed_add_impl(
2323
moduleName = "test_ec_shortweierstrass_jacobian_extendedmixed_add_" & $BN254_Snarks
2424
)
2525

26-
# run_EC_mixed_add_impl(
27-
# ec = EC_ShortW_JacExt[Fp[Secp256k1], G1],
28-
# Iters = Iters,
29-
# moduleName = "test_ec_shortweierstrass_jacobian_extendedmixed_add_" & $Secp256k1
30-
# )
26+
run_EC_mixed_add_impl(
27+
ec = EC_ShortW_JacExt[Fp[Secp256k1], G1],
28+
Iters = Iters,
29+
moduleName = "test_ec_shortweierstrass_jacobian_extendedmixed_add_" & $Secp256k1
30+
)
3131

3232
run_EC_mixed_add_impl(
3333
ec = EC_ShortW_JacExt[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_prj_g1_add_double.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ run_EC_addition_tests(
2222
moduleName = "test_ec_shortweierstrass_projective_g1_add_double_" & $BN254_Snarks
2323
)
2424

25-
# run_EC_addition_tests(
26-
# ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
27-
# Iters = Iters,
28-
# moduleName = "test_ec_shortweierstrass_projective_g1_add_double_" & $Secp256k1
29-
# )
25+
run_EC_addition_tests(
26+
ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
27+
Iters = Iters,
28+
moduleName = "test_ec_shortweierstrass_projective_g1_add_double_" & $Secp256k1
29+
)
3030

3131
run_EC_addition_tests(
3232
ec = EC_ShortW_Prj[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_prj_g1_mixed_add.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ run_EC_mixed_add_impl(
2323
moduleName = "test_ec_shortweierstrass_projective_mixed_add_" & $BN254_Snarks
2424
)
2525

26-
# run_EC_mixed_add_impl(
27-
# ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
28-
# Iters = Iters,
29-
# moduleName = "test_ec_shortweierstrass_projective_mixed_add_" & $Secp256k1
30-
# )
26+
run_EC_mixed_add_impl(
27+
ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
28+
Iters = Iters,
29+
moduleName = "test_ec_shortweierstrass_projective_mixed_add_" & $Secp256k1
30+
)
3131

3232
run_EC_mixed_add_impl(
3333
ec = EC_ShortW_Prj[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_prj_g1_mul_distri.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ run_EC_mul_distributive_tests(
2323
moduleName = "test_ec_shortweierstrass_projective_g1_mul_distributive_" & $BN254_Snarks
2424
)
2525

26-
# run_EC_mul_distributive_tests(
27-
# ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
28-
# ItersMul = ItersMul,
29-
# moduleName = "test_ec_shortweierstrass_projective_g1_mul_distributive_" & $Secp256k1
30-
# )
26+
run_EC_mul_distributive_tests(
27+
ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
28+
ItersMul = ItersMul,
29+
moduleName = "test_ec_shortweierstrass_projective_g1_mul_distributive_" & $Secp256k1
30+
)
3131

3232
run_EC_mul_distributive_tests(
3333
ec = EC_ShortW_Prj[Fp[BLS12_381], G1],

tests/math_elliptic_curves/t_ec_shortw_prj_g1_mul_sanity.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ suite "Order checks on BN254_Snarks":
6767
bool not ay.isSquare()
6868
bool not ay.sqrt_if_square()
6969

70-
# run_EC_mul_sanity_tests(
71-
# ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
72-
# ItersMul = ItersMul,
73-
# moduleName = "test_ec_shortweierstrass_projective_g1_mul_sanity_" & $Secp256k1
74-
# )
70+
run_EC_mul_sanity_tests(
71+
ec = EC_ShortW_Prj[Fp[Secp256k1], G1],
72+
ItersMul = ItersMul,
73+
moduleName = "test_ec_shortweierstrass_projective_g1_mul_sanity_" & $Secp256k1
74+
)
7575

7676
run_EC_mul_sanity_tests(
7777
ec = EC_ShortW_Prj[Fp[BLS12_381], G1],

0 commit comments

Comments
 (0)