iden3 / go-iden3-crypto

Go implementation of some cryptographic primitives (that fit inside the SNARK field) and compatible with circomlib
Apache License 2.0
117 stars 38 forks source link

Optimize Poseidon from *big.Int to goff #14

Closed arnaucube closed 4 years ago

arnaucube commented 4 years ago

Optimize Poseidon from *big.Int to goff generated finite field operations.

Also fixes #4 and updates the Mimc7 usage of the CheckBigIntArrayInField, and updates BabyJubJub EDDSA to the new Poseidon methods.

Benchmarks: Tested on a Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, with 16GB of RAM.

Warning: do not merge until we check license