Consensys / goff

goff (go finite field) is a unix-like tool that generates fast field arithmetic in Go.
https://hackmd.io/@zkteam/goff
Apache License 2.0
76 stars 12 forks source link

Fast conversion #15

Closed ThomasPiellard closed 4 years ago

ThomasPiellard commented 4 years ago

I changed the conversion of the SetBigInt(..) function -> it uses the big.Int Mod function, instead of substracting the modulus an unreasonnable number of times^^ (it's untractable).