getPublicKey()
Get the public key from a private key
Method signature
private function getPublicKey($privateKey)
Parameters
Name
Type
Description
privateKey
string
The Private Key from where to derive the Public Key
Example
<?php
require 'vendor/autoload.php';
use CircularProtocol\Api\CircularProtocolAPI;
$circular = new CircularProtocolAPI();
$blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";
$address = "0x8b1dd25076c04c5139acba458f86c69cd2d322c61d19bc28daa3bbd945083738";
$result = $circular->getPublicKey($blockchain, $address, $privateKey);
echo $result;
Result
The result will be an object of type String:
04b92abae6932e0faa578231fe4f6d83237acccb09f5343a5455abfaf8e2091a989e64dae6e4ebb9f6a1be5bd48d0bab6dbc99641514f19ee43052ab27178fd9ce
Last updated