LLFourn / secp256kfun

A pure-rust secp256k1 library optimised for fun
BSD Zero Clause License
100 stars 28 forks source link

[backend] re-introduce mixed point addition #183

Closed LLFourn closed 2 weeks ago

LLFourn commented 2 weeks ago

The underlying k256 backend has Projective + Affine addition (a little faster than Projective + Projective). We had at some point stopped using it (or maybe we never were!). This reintroduces it while also cleaning up the backend API a bit.

The actual perf improvement is ~310ns instead of ~335ns per addition.