Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Bitpay
PrivateKey
setHex
Bitpay\PrivateKey::setHex PHP Method
PrivateKey Class Documentation
Show file
Open project: bitpay/php-client
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); }
PrivateKey
__toString
generate
getPublicKey
hasValidDec
hasValidHex
isValid
pemDecode
pemEncode
serializeSig
setHex
sign