Function: getPublicKey()
getPublicKey(Defined in: crypto.ts:56 Get PublicKey function Derives public key from Uint8Array or hexstring private keyprivateKey,isCompressed):Uint8Array
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.