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

#1129 in Cryptography

Download history 43/week @ 2022-11-28 35/week @ 2022-12-05 341/week @ 2022-12-12 346/week @ 2022-12-19 78/week @ 2022-12-26 83/week @ 2023-01-02 229/week @ 2023-01-09 140/week @ 2023-01-16 81/week @ 2023-01-23 74/week @ 2023-01-30 94/week @ 2023-02-06 55/week @ 2023-02-13 79/week @ 2023-02-20 67/week @ 2023-02-27 65/week @ 2023-03-06 74/week @ 2023-03-13

286 downloads per month

MIT/Apache

19KB
167 lines

Curve implementations

This repository contains implementations of some popular elliptic curves. The curve API implemented here matches the curve traits defined here in the arkworks-rs/algebra repository.

BLS12-381 and embedded curves

  • ark-bls12-377: Implements the BLS12-377 pairing-friendly curve

  • ark-ed-on-bls12-377: Implements a Twisted Edwards curve atop the scalar field of BLS12-377

  • ark-bw6-761: Implements the BW6-761 pairing-friendly curve, which is a curve whose scalar field equals the base field of BLS12-377

  • ark-ed-on-bw6-761: Implements a Twisted Edwards curve atop the scalar field of BW6-761

  • ark-cp6-782: Implements the CP6-782 pairing-friendly curve, which is a curve whose scalar field equals the base field of BLS12-377

  • ark-ed-on-cp6-782: Implements a Twisted Edwards curve atop the scalar field of CP6-782. This is the same curve as in ark-ed-on-bw6-761

  • ark-bn254: Implements the BN254 pairing-friendly curve
  • ark-ed-on-bn254: Implements a Twisted Edwards curve atop the scalar field of BN254
  • ark-mnt4-298: Implements the MNT4-298 pairing-friendly curve. This curve forms a pairing-friendly cycle with MNT6-298
  • ark-mnt6-298: Implements the MNT6-298 pairing-friendly curve. This curve forms a pairing-friendly cycle with MNT4-298
  • ark-ed-on-mnt4-298: Implements a Twisted Edwards curve atop the scalar field of MNT4-298
  • ark-mnt4-753: Implements the MNT4-753 pairing-friendly curve. This curve forms a pairing-friendly cycle with MNT6-753
  • ark-mnt6-753: Implements the MNT6-753 pairing-friendly curve. This curve forms a pairing-friendly cycle with MNT4-753
  • ark-ed-on-mnt4-753: Implements a Twisted Edwards curve atop the scalar field of MNT4-753

Pasta cycle of curves

  • ark-pallas: Implements Pallas, a prime-order curve that forms an amicable pair with Vesta
  • ark-vesta: Implements Vesta, a prime-order curve that forms an amicable pair with Pallas

lib.rs:

This library implements the prime-order curve Vesta, generated by Daira Hopwood. The main feature of this curve is that it forms a cycle with Pallas, i.e. its scalar field and base field respectively are the base field and scalar field of Pallas.

Curve information: Vesta:

  • Base field: q = 28948022309329048855892746252171976963363056481941647379679742748393362948097
  • Scalar field: r = 28948022309329048855892746252171976963363056481941560715954676764349967630337
  • Curve equation: y^2 = x^3 + 5
  • Valuation(q - 1, 2) = 32
  • Valuation(r - 1, 2) = 32

Dependencies

~4.5MB
~95K SLoC