Mamy André-Ratsimbazafy
1559bda56c
Use our prng through most of the test suite
2020-04-15 00:04:44 +02:00
Mamy André-Ratsimbazafy
0115d3fd8e
Rename the test PRNG to unsafe and prepare random number generation for integer ranges to not depend on the stdlib and have a single unified seed.
2020-04-15 00:04:44 +02:00
Mamy André-Ratsimbazafy
d61680e1ad
Fix substraction being addition following tower refactor
2020-04-15 00:04:44 +02:00
Mamy André-Ratsimbazafy
5784e78606
Towered extension comparison bug: squaring in 𝔽p6 is not properly implemented
2020-04-15 00:04:44 +02:00
Mamy Ratsimbazafy
c04721a04e
Refactor: Higher-Kinded Tower of Extension Fields ( #25 )
...
* Mention that the inverse of 0 is 0 (TODO tests)
* Introduce "Higher-Kinded tower extensions"
* rename isCOmplexExtension -> fromComplexExtension
* update benchmarks with the new tower scheme
* Try to recover some speed on mul/squaring for an optimal tower (but this was not it)
2020-04-14 02:05:42 +02:00
Mamy André-Ratsimbazafy
33314fe725
Properly distinguish between Nogami and Snark/Ethereum BN254 closes #19
2020-04-12 03:01:50 +02:00
Mamy André-Ratsimbazafy
a6e4517be2
Implement 𝔽p12 inversion, enable 𝔽p12 tests and bench
2020-04-09 14:28:01 +02:00
Mamy André-Ratsimbazafy
3a1a5f8847
More coverage and crosscheck between multiplication, squaring, addition, substraction, negation
2020-04-09 13:58:56 +02:00
Mamy André-Ratsimbazafy
3a2b35ba26
Fix multiplication in 𝔽p12
2020-04-09 13:37:45 +02:00
Mamy André-Ratsimbazafy
f24d87fb00
Fix squaring in 𝔽p12, mul in 𝔽p6 MUST NOT share buffer (i.e. broken value semantics)
2020-04-09 02:00:45 +02:00
Mamy André-Ratsimbazafy
8c478df0c1
𝔽p12 extension - initial commit of squaring
2020-04-09 01:23:10 +02:00