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
```
4 years ago
arnaucube
83f87bfa46
Resolve #4
4 years ago
arnaucube
17bad75853
Add goff generated finite field arithmetic code for used field
4 years ago
arnaucube
97c76ce614
Update BabyJubJub signature with Poseidon
4 years ago
arnau
937500b203
Merge pull request #12 from iden3/feature/optimizeposeidon
Optimize Poseidon
4 years ago
Eduard S
c0c4ff2dd7
Optimize Poseidon
4 years ago
Eduard S
8d5a7a7ccb
Merge pull request #11 from iden3/fix/issue-9
Fix/issue #9
4 years ago
arnaucube
c754d01ce0
poseidon consistent use of T
4 years ago
arnaucube
fcb586591a
fix #9
4 years ago
Eduard S
7c6170453e
Add test that breaks poseidion due to padding
4 years ago
Eduard S
27ec5b26df
Add test that breaks poseidon due to a security issue
4 years ago
Eduard S
53b9050d0a
Add babujub eddsa benchmarks
4 years ago
Eduard S
a5b6afcb16
Add poseidon and babyjub benchmarks
4 years ago
arnau
4356f44a3d
Merge pull request #6 from iden3/feature/testBJPKField
Test that babyjub pk is always < Q
5 years ago
Eduard S
5ade04e079
Test that babyjub pk is always < Q
5 years ago
Eduard S
eb7d86c5b3
Merge pull request #5 from iden3/decompress-modsqrt
return error if no ModSqrt(x, q) exist in babyjubjub decompress point
5 years ago
arnaucube
a60e154d86
return error if no ModSqrt(x, q) exist in babyjubjub decompress point
5 years ago
arnaucube
c95c95b7b1
add Poseidon multihash ([]*big.Int), add HashBytes for MiMC7 & Poseidon
5 years ago
arnaucube
2b1935299c
MiMC7 finite field over R comprovation moved inside hash, same approach as Poseidon impl
5 years ago
arnaucube
0bac1c84ba
add babyjub-eddsa Poseidon sign & verify
5 years ago
arnaucube
c4b3b7a09c
update babyjub B8, clean unused funcs & errs in mimc7, small update in mimc7 tests
5 years ago
Eduard S
16423cc315
Merge pull request #1 from iden3/feature/poseidon
add Poseidon
5 years ago
Eduard S
5b79ded540
Move constants and utils to package, apply small fixes
5 years ago
arnaucube
09c29da99e
add Poseidon
5 years ago
arnaucube
7b219e15ec
add travis, add go.mod go.sum, update babyjub hex encoders to avoid
importing go-iden3
5 years ago
arnaucube
e92a15d3b0
add mimc7 & fields
5 years ago
Eduard S
0f93c8ce38
Add babyjub from go-iden3/crypto/babyjub
5 years ago
arnau
eea757956c
Initial commit
5 years ago