constantine/sage
Mamy Ratsimbazafy d376f08d1b
G2 / Operations on the twisted curve E'(Fp2) (#51)
* Split elliptic curve tests to better use parallel testing

* Add support for printing points on G2

* Implement multiplication and division by optimal sextic non-residue (BLS12-381)

* Implement modular square root in 𝔽p2

* Support EC add and EC double on G2 (for BLS12-381)

* Support G2 divisive twists with non-unit sextic-non-residue like BN254 snarks

* Add EC G2 bench

* cleanup some unused warnings

* Reorg the tests for parallelization and to avoid instantiating huge files
2020-06-15 22:58:56 +02:00
..
README.md Add sage script for BN and BLS12 curve families 2020-03-21 15:50:39 +01:00
curve_family_bls12.sage G2 / Operations on the twisted curve E'(Fp2) (#51) 2020-06-15 22:58:56 +02:00
curve_family_bn.sage G2 / Operations on the twisted curve E'(Fp2) (#51) 2020-06-15 22:58:56 +02:00
lattice_decomposition_bls12_381_g1.sage Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
lattice_decomposition_bn254_snarks_g1.sage Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
non_residues.sage Properly distinguish between Nogami and Snark/Ethereum BN254 closes #19 2020-04-12 03:01:50 +02:00
testgen_bls12_381.sage Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00
testgen_bn254_snarks.sage Endomorphism acceleration for Scalar Multiplication (#44) 2020-06-14 15:39:06 +02:00

README.md

Sage scripts

This folder holds sage scripts:

  • either for automating curve configuration for example for computing the prime and order of BN or BLS curve families, for irreducible polynomials for extension fields.
  • for test vectors against a reference implementation.