Function: getPublicKey()

getPublicKey(privateKey, isCompressed): Uint8Array

Defined in: crypto.ts:56

Get PublicKey function Derives public key from Uint8Array or hexstring private key

Parameters

privateKey

The Uint8Array or hexstring representation of a compressed private key.

string | Uint8Array

isCompressed

boolean = true

Specifies whether to return a compressed or uncompressed public key. Defaults to true.

Returns

Uint8Array

  • The public key in Uin8Array representation.

Function: getPublicKey()

getPublicKey(privateKey, isCompressed): Uint8Array

Defined in: crypto.ts:56

Get PublicKey function Derives public key from Uint8Array or hexstring private key

Parameters

privateKey

The Uint8Array or hexstring representation of a compressed private key.

string | Uint8Array

isCompressed

boolean = true

Specifies whether to return a compressed or uncompressed public key. Defaults to true.

Returns

Uint8Array

  • The public key in Uin8Array representation.