getPublicKey()

Get the public key from a private key

Method signature

function getPublicKey(privateKey)

Parameters

NameTypeDescription

privateKey

string

The Private Key from where to derive the Public Key

Example

var privateKey = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";

var publicKey = CircularProtocolAPI.getPublicKey(privateKey);

Result

The result will be an object of type String:

04b92abae6932e0faa578231fe4f6d83237acccb09f5343a5455abfaf8e2091a989e64dae6e4ebb9f6a1be5bd48d0bab6dbc99641514f19ee43052ab27178fd9ce

Last updated