compressP256

Compresses a P-256 public key from x/y coordinates.

Return

33-byte compressed key (0x02 if y is even, 0x03 if y is odd)

Parameters

x

32-byte x coordinate

y

32-byte y coordinate