constantine/sage
Mamy Ratsimbazafy 0e4dbfe400
BLS12-377 (#91)
* add Sage for constant time tonelli shanks

* Fused sqrt and invsqrt via Tonelli Shanks

* isolate sqrt in their own folder

* Implement constant-time Tonelli Shanks for any prime

* Implement Fp2 sqrt for any non-residue

* Add tests for BLS12_377

* Lattice decomposition script for BLS12_377 G1

* BLS12-377 G1 GLV ok, G2 GLV issue

* Proper endomorphism acceleration support for BLS12-377

* Add naive pairing support for BLS12-377

* Activate more bench for BLS12-377

* Fix MSB computation

* Optimize final exponentiation + add benches
2020-09-27 09:15:14 +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 BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
curve_family_bn.sage Frobenius endomorphism ψ = φ−1 πp φ (psi = untwist-Frobenius-Twist) (#78) 2020-08-31 23:18:48 +02:00
frobenius_bls12_377.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
frobenius_bls12_381.sage Pairings for BN254-Nogami and BN254-Snarks (#86) 2020-09-25 21:58:20 +02:00
frobenius_bn254_nogami.sage Pairings for BN254-Nogami and BN254-Snarks (#86) 2020-09-25 21:58:20 +02:00
frobenius_bn254_snarks.sage Pairings for BN254-Nogami and BN254-Snarks (#86) 2020-09-25 21:58:20 +02:00
lattice_decomposition_bls12_377_g1.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
lattice_decomposition_bls12_377_g2.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
lattice_decomposition_bls12_381_g1.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
lattice_decomposition_bls12_381_g2.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
lattice_decomposition_bn254_snarks_g1.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
lattice_decomposition_bn254_snarks_g2.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
lattice_decomposition_finder.sage publish the lattice decomposition finder mentioned in https://github.com/scipr-lab/zexe/issues/267 2020-09-26 15:33:41 +02:00
non_residues.sage Properly distinguish between Nogami and Snark/Ethereum BN254 closes #19 2020-04-12 03:01:50 +02:00
square_root_bls12_377.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
testgen_bls12_377.sage BLS12-377 (#91) 2020-09-27 09:15:14 +02:00
testgen_bls12_381.sage Endomorphism G2 (#79) 2020-09-03 23:10:48 +02:00
testgen_bn254_snarks.sage Endomorphism G2 (#79) 2020-09-03 23:10:48 +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.