Bitpay\PrivateKey::getPublicKey PHP Method

getPublicKey() public method

public getPublicKey ( ) : PublicKey
return PublicKey
    public function getPublicKey()
    {
        if (null === $this->publicKey) {
            $this->publicKey = new PublicKey();
            $this->publicKey->setPrivateKey($this);
            $this->publicKey->generate();
        }
        return $this->publicKey;
    }