5 unstable releases

0.4.0 Jan 17, 2023
0.4.0-alpha.2 Dec 28, 2022
0.4.0-alpha.1 Nov 29, 2022
0.3.0 Jun 6, 2021
0.2.0 Mar 25, 2021

#2428 in Cryptography

Download history 14/week @ 2023-12-18 8/week @ 2023-12-25 5/week @ 2024-01-01 16/week @ 2024-01-08 18/week @ 2024-01-15 199/week @ 2024-01-22 1/week @ 2024-01-29 12/week @ 2024-02-05 9/week @ 2024-02-12 59/week @ 2024-02-19 59/week @ 2024-02-26 35/week @ 2024-03-04 52/week @ 2024-03-11 36/week @ 2024-03-18 62/week @ 2024-03-25 90/week @ 2024-04-01

247 downloads per month
Used in 9 crates

MIT/Apache

25KB
260 lines

This library implements the MNT4_298 curve generated by [BCTV14]. The name denotes that it is a Miyaji--Nakabayashi--Takano curve of embedding degree 4, defined over a 298-bit (prime) field. The main feature of this curve is that its scalar field and base field respectively equal the base field and scalar field of MNT6_298.

Curve information:

  • Base field: q = 475922286169261325753349249653048451545124879242694725395555128576210262817955800483758081
  • Scalar field: r = 475922286169261325753349249653048451545124878552823515553267735739164647307408490559963137
  • valuation(q - 1, 2) = 17
  • valuation(r - 1, 2) = 34
  • G1 curve equation: y^2 = x^3 + ax + b, where
    • a = 2
    • b = 423894536526684178289416011533888240029318103673896002803341544124054745019340795360841685
  • G2 curve equation: y^2 = x^3 + Ax + B, where
    • A = Fq2 = (a * NON_RESIDUE, 0)
    • B = Fq2(0, b * NON_RESIDUE)
    • NON_RESIDUE = 17 is the quadratic non-residue used for constructing the extension field Fq2

Dependencies

~5.5MB
~111K SLoC