I'm using bouncycastle which uses X and Y coordinates for public keys.
An EC public key is more compactly represented by the X coordinate and the sign of the Y coordinate.
How do I use bouncycastle to transform X and Y into X and Y-sign, and vice versa. (The curve is secp256k1 if that makes any difference.)