constantine/research/kzg
Mamy Ratsimbazafy b1ef2682d6
Modular exponentiation (arbitrary output) and EIP-198 (#242)
* implement arbitrary precision modular exponentiation (prerequisite EIP-198)

* [modexp] implement exponentiation modulo 2ᵏ

* add inversion (mod 2ᵏ)

* [modexp] High-level wrapper for powmod with odd modulus

* [modexp] faster exponentiation (mod 2ᵏ) for even case and Euler's totient function odd case

* [modexp] implement general fast modular exponentiation

* Fix modular reduction with 64-bit modulus + fuzz powmod vs GMP

* add benchmark

* add EIP-198 support

* fixups following self review

* fix test paths
2023-06-01 23:38:41 +02:00
..
README.md move research sanity check to research/ [skip ci] 2023-01-30 20:57:12 +01:00
fft_fr.nim move research sanity check to research/ [skip ci] 2023-01-30 20:57:12 +01:00
fft_g1.nim move research sanity check to research/ [skip ci] 2023-01-30 20:57:12 +01:00
fft_lut.nim Modular exponentiation (arbitrary output) and EIP-198 (#242) 2023-06-01 23:38:41 +02:00
kzg_single_proofs.nim move research sanity check to research/ [skip ci] 2023-01-30 20:57:12 +01:00
polynomials.nim move research sanity check to research/ [skip ci] 2023-01-30 20:57:12 +01:00
strided_views.nim move research sanity check to research/ [skip ci] 2023-01-30 20:57:12 +01:00