Skip to main content

fromPoint

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / PublicKey / fromPoint

Function: fromPoint()

fromPoint(point, compressed?): PublicKey

Defined in: node_modules/@opcat-labs/opcat/types/publickey.d.cts:175

Instantiate a PublicKey from a Point

Parameters

point

Point

A Point instance

compressed?

boolean

whether to store this public key as compressed format

Returns

PublicKey

A new valid instance of PublicKey