LLFourn / secp256kfun

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

Can we get rid of `XOnly`? #102

Closed LLFourn closed 1 year ago

LLFourn commented 2 years ago

It's usually better to just use Point<EvenY>. I think I had the idea that it was faster and used less memory to just have the pre-serialized x coordinate rather than representing them as full points (3 field elements). But is this tiny speedup worth the complexity of having two types of xonly things?

LLFourn commented 1 year ago

I decided to remove as described above in #114