Bitpay\PrivateKey::setHex PHP Method

setHex() public method

If you have a private key, you can derive your public key and also your sin.
public setHex ( $hex )
    public function setHex($hex)
    {
        $this->hex = $hex;
        $this->dec = Util::decodeHex($this->hex);
    }