public function publicKeyHex() {
        // if this is a BIP32 Private key then we first build the public key
        //  that way it will be cached nicely
        if (!$this->path->isPublicPath()) {
            return $this->buildKey($this->path->publicPath())->publicKey()->getHex();
        } else {
            if (is_null($this->publicKeyHex)) {
                $this->publicKeyHex = $this->key->getPublicKey()->getHex();
            }

            return $this->publicKeyHex;
        }
    }
public function publicKeyHex() {
        // if this is a BIP32 Private key then we first build the public key
        //  that way it will be cached nicely
        if (!$this->path->isPublicPath()) {
            return $this->buildKey($this->path->publicPath())->publicKey()->getHex();
        } else {
            if (is_null($this->publicKeyHex)) {
                $this->publicKeyHex = $this->key->getPublicKey()->getHex();
            }

            return $this->publicKeyHex;
        }
    }
public function publicKeyHex ( ) { // if this is a BIP32 Private key then we first build the public key //  that way it will be cached nicely if ( ! $ this -> path -> isPublicPath ( ) ) { return $ this -> buildKey ( $ this -> path -> publicPath ( ) ) -> publicKey ( ) -> getHex ( ) ; } else { if ( is_null ( $ this -> publicKeyHex ) ) { $ this -> publicKeyHex = $ this -> key -> getPublicKey ( ) -> getHex ( ) ; } return $ this -> publicKeyHex ; } }
get the HEX of the plain public key for the current BIP32 key

@return string
get the HEX of the plain public key for the current BIP32 key