Apple's swift-crypto has support for serialisation of PublicKey to/from X-only, for NIST curves (P256, P384 and P521), using this technique in "Compact representation of an elliptic curve point" from 2014. Does that only work for NIST curves, or would that work for SECG curves, specifically secp256k1 as well?
I cannot see how it would work, without the parity bit... but isn't NIST curves also symmetric alongside the x-axis? i.e. for any point on the curve, there exist a "mirror" point on the otherside of the X-axis (apart from point at infinity)
If it works for secp256k1 we should perhaps add support for it, what it would mean is that we could parse a secp256k1_pubkey from a secp256k1_xonly_pubkey (or otherwise the 32 bytes of the x component), right?