Oleksandr Brezhniev
e5cf066b8b
Poseidon Sponge Hash with different frame sizes ( #52 )
...
* Poseidon Sponge Hash with different frame sizes
* Update deps. Bump go version
* Update & fix linter.
* Refactor a bit.
* Reduce gc pressure
2023-03-08 20:18:55 +02:00
Oleksandr Brezhniev
64e757cc4a
Better keccac256 ( #41 )
...
* Switch to keccac256 implementation from golang.org/x/crypto instead of go-ethereum
2021-11-19 17:00:10 +02:00
arnaucube
6d75396b4b
Upgrade linters
2020-12-16 15:07:19 +01:00
arnaucube
3a9171000b
Poseidon & MiMC7 HashBytes remove return of err
2020-05-22 00:42:14 +02:00
Eduard S
0ac8b46493
Fix linters errors
2020-04-14 16:53:24 +02:00
arnaucube
4750e9c83c
Remove field package which is no longer used
2020-03-06 16:24:41 +01:00
arnaucube
16a8a18a6d
Optimize MiMC7 migrating from *big.Int to goff
...
Optimize MiMC7 migrating from *big.Int to goff generated finite field
operations.
There is still a lot of room for optimization for MiMC7 in the way that is done internally, but will be done in the future.
Benchmarks:
Tested on a Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, with 16GB of RAM.
- Before:
```
BenchmarkMIMC7-4 1026 1160298 ns/op
```
- After this commit:
```
BenchmarkMIMC7-4 19263 61651 ns/op
```
2020-03-05 17:35:25 +01:00
arnaucube
83f87bfa46
Resolve #4
2020-03-03 16:31:09 +01:00
Eduard S
a5b6afcb16
Add poseidon and babyjub benchmarks
2019-12-16 13:08:34 +01:00
arnaucube
c95c95b7b1
add Poseidon multihash ([]*big.Int), add HashBytes for MiMC7 & Poseidon
2019-08-31 20:07:03 +02:00
arnaucube
2b1935299c
MiMC7 finite field over R comprovation moved inside hash, same approach as Poseidon impl
2019-08-30 11:58:10 +02:00
arnaucube
c4b3b7a09c
update babyjub B8, clean unused funcs & errs in mimc7, small update in mimc7 tests
2019-08-03 20:55:08 +02:00
Eduard S
5b79ded540
Move constants and utils to package, apply small fixes
2019-07-01 12:51:34 +02:00
arnaucube
7b219e15ec
add travis, add go.mod go.sum, update babyjub hex encoders to avoid
...
importing go-iden3
2019-06-25 15:46:45 +02:00
arnaucube
e92a15d3b0
add mimc7 & fields
2019-06-25 15:01:38 +02:00