Poseidon load static ref avoiding load each time

Benchmarks (On a Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz, with 32 GB of RAM):
- Old:
```
sign                    time:   [953.50 us 953.73 us 953.98 us]
verify                  time:   [832.24 us 832.38 us 832.52 us]
```

- New:
```
sign                    time:   [559.84 us 568.41 us 576.26 us]
verify                  time:   [376.59 us 376.68 us 376.78 us]
```
This commit is contained in:
arnaucube
2020-09-07 23:09:08 +02:00
parent 693c7be161
commit d893ecc5f6
2 changed files with 2 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ generic-array = "0.13.2"
tiny-keccak = "1.5"
rustc-hex = "1.0.0"
mimc-rs = "0.0.2"
poseidon-rs = "0.0.3"
poseidon-rs = "0.0.4"
arrayref = "0.3.5"
lazy_static = "1.4.0"