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

Neptune Hash Implementation #49

Closed cool-develope closed 2 years ago

cool-develope commented 2 years ago

What does this PR do?

Benchmark Results

cpu: Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz BenchmarkPoseidonHash-6 21825 53427 ns/op BenchmarkNeptuneHash-6 61786 18725 ns/op BenchmarkPoseidonHash12Inputs-6 10000 120578 ns/op

References

cool-develope commented 2 years ago

I general looks good. But do you need two implementations of the same hash function: original one and the optimized one?

OK, I will remove the original one