xy_to_pubkey

function xy_to_pubkey(x: big_integer, y: big_integer, compressed: boolean): byte_array

Constructs a public key (compressed or uncompressed) from EC point coordinates.

Since

0.13.5

Parameters

x

The x-coordinate of the EC point.

y

The y-coordinate of the EC point.

compressed

Boolean flag indicating whether to return the compressed (33-byte) or uncompressed (65-byte) public key. Defaults to false (uncompressed).