Skip to content

getPublicKey

function getPublicKey(
privateKey: Uint8Array<ArrayBufferLike>,
network: Network,
type: "SECP256K1" | "BLS"): IAccount

Defined in: packages/iso-filecoin/src/wallet.js:181

Get public key from private key

Parameters

ParameterTypeDescription
privateKeyUint8Array<ArrayBufferLike>
networkNetwork
type"SECP256K1" | "BLS"

Returns

IAccount