4 Commits

Author SHA1 Message Date
Jacek Sieka
a1560b915e
Cleanups, bump stint/stew (#13)
* prefer stew/staticfor
* cleanup pragmas
* unroll a few more things

These simplifications also bring a nice little 10-15% perf boost:

```
arnetheduck@praeceps:~/status/nimbus-eth1/vendor/nim-bncurve$
/home/arnetheduck/status/nimbus-eth1/vendor/nim-bncurve/benchmarks/bench
G1 Jacobian add: 578 ns
G1 toAffine: 3067 ns
G2 Jacobian add: 3141 ns
G2 toAffine: 3772 ns
G1 Jacobian mul: 191442 ns
G2 Jacobian mul: 819047 ns
Pairing: 2111668 ns
arnetheduck@praeceps:~/status/nimbus-eth1/vendor/nim-bncurve$
/home/arnetheduck/status/nimbus-eth1/vendor/nim-bncurve/benchmarks/bench
G1 Jacobian add: 497 ns
G1 toAffine: 2774 ns
G2 Jacobian add: 2701 ns
G2 toAffine: 3461 ns
G1 Jacobian mul: 147267 ns
G2 Jacobian mul: 633992 ns
Pairing: 1816686 ns
```
2024-12-11 12:12:35 +01:00
Jacek Sieka
5e64912cc3
Port tests to unittest2, add simple benchmark (#12) 2024-12-10 14:16:47 +01:00
jangko
edc8371274
fix styles 2022-04-08 09:04:30 +07:00
cheatfate
7709d551c8 Added Ethereum specific serialization procedures.
Added tests for Ethereum ecAdd, ecMul, ecPairing procedures.
Bump version to 1.0.1.
2018-10-16 11:30:14 +03:00