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

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

- Before the optimizations:
```
BenchmarkPoseidon-4                  470           2489678 ns/op
BenchmarkPoseidonLarge-4             476           2530568 ns/op
```

- With the optimizations of #12:
```
BenchmarkPoseidon-4                  766           1550013 ns/op
BenchmarkPoseidonLarge-4             782           1547572 ns/op
```

- With the changes of this PR, where uses goff generated code instead of *big.Int:
```
BenchmarkPoseidon-4                 9638            121651 ns/op
BenchmarkPoseidonLarge-4            9781            119921 ns/op
```
2020-03-03 16:31:40 +01:00
2020-03-03 16:31:09 +01:00
2019-06-25 15:01:38 +02:00
2020-03-03 16:31:09 +01:00
2020-03-03 16:31:09 +01:00
2019-06-30 18:06:58 +02:00
2019-06-25 14:50:17 +02:00
2019-06-30 18:06:58 +02:00

go-iden3-crypto Go Report Card Build Status GoDoc

Go implementation of some cryptographic primitives (that fit inside the SNARK field) used in iden3

Description
No description provided
Readme GPL-3.0 2.2 MiB
Languages
Go 100%