Skip to main content

Function: getPublicKey()

function getPublicKey(privateKey, isCompressed): 0x${string}

Returns the public key from the private key using the secp256k1 curve.

Parameters

ParameterTypeDefault value

privateKey

0x${string}

undefined

isCompressed

boolean

false

Returns

0x${string}

Defined

@nilfoundation/niljs/src/signers/publicKey.ts:14