Commit Graph

16 Commits

Author SHA1 Message Date
04d20b9e05 Update sign&verify (poseidon) to last optimization
(On a Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz, with 32 GB of RAM)

- before:
```
sign_poseidon           time:   [383.01 ms 384.46 ms 385.98 ms]
verify_poseidon         time:   [250.56 ms 251.46 ms 252.43 ms]
```

- current:
```
sign_poseidon           time:   [973.38 us 973.83 us 974.41 us]
verify_poseidon         time:   [835.34 us 839.94 us 845.29 us]
```

sign_poseidon: `394x` improvement
verify_poseidon: `300x` improvement
2020-08-02 16:23:40 +02:00
2d94206899 Optimize point add & mul_scalar methods
(On a Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz, with 32 GB of RAM)

- before:
```
add                     time:   [53.447 us 53.467 us 53.492 us]
mul_scalar              time:   [121.19 ms 121.22 ms 121.25 ms]
```

- current:
```
add                     time:   [317.34 ns 317.44 ns 317.54 ns]
mul_scalar              time:   [131.05 us 131.28 us 131.58 us]
```

Which is `168x` improvement for `add`, and `923x` improvement for `mul_scalar`.
2020-08-01 18:18:43 +02:00
30218dc1f3 Add benchmarks 2020-07-25 18:33:51 +02:00
df8a21200f add Schnorr signature & verification 2019-09-11 11:22:15 +02:00
d7c383695d reference param in mul_scalar 2019-09-10 11:28:57 +02:00
addcca64e5 add some error handling 2019-09-09 20:42:17 +02:00
2ab48ff3ad add sign & verify with Poseidon hash, update MiMC use to v0.0.2 2019-09-07 19:52:48 +02:00
ad33bbd537 fix point & signature compress & decompress 2019-09-07 19:28:09 +02:00
48085c5a83 constants with lazy_static, refactor 2019-08-28 00:25:27 +02:00
1ff5a567a7 compress & decompress signature (wip) 2019-08-27 23:44:44 +02:00
eb42f48c65 add point compress&decompress, add modsqrt with Tonelli-Shanks algorithm 2019-08-24 16:15:05 +02:00
a2122dadce add travis & crate config 2019-08-04 14:16:51 +02:00
9bc3000898 signature & verification done 2019-08-04 14:13:51 +02:00
fffcb66143 add new private key generation, signature started 2019-08-03 20:37:14 +02:00
6658d975da add point scalar multiplication 2019-07-28 23:15:23 +02:00
35f4686198 add point addition 2019-07-28 21:18:08 +02:00