PHP Class Bitpay\PublicKey

Inheritance: extends bitpay\Key
Afficher le fichier Open project: bitpay/php-client Class Usage Examples

Protected Properties

Свойство Type Description
$privateKey PrivateKey
$sin SinKey

Méthodes publiques

Méthode Description
__toString ( ) : string Returns the compressed public key value
createFromPrivateKey ( PrivateKey $private )
generate ( PrivateKey $privateKey = null ) : Bitpay\PublicKey Generates an uncompressed and compressed EC public key.
getSin ( ) : SinKey
isValid ( ) : boolean Checks to see if the public key is not blank and contains valid decimal and hex valules for this->hex & this->dec
setPrivateKey ( PrivateKey $privateKey ) : bitpay\KeyInterface

Method Details

__toString() public méthode

Returns the compressed public key value
public __toString ( ) : string
Résultat string

createFromPrivateKey() public static méthode

public static createFromPrivateKey ( PrivateKey $private )
$private PrivateKey

generate() public méthode

Generates an uncompressed and compressed EC public key.
public generate ( PrivateKey $privateKey = null ) : Bitpay\PublicKey
$privateKey PrivateKey
Résultat Bitpay\PublicKey

getSin() public méthode

public getSin ( ) : SinKey
Résultat SinKey

isValid() public méthode

Checks to see if the public key is not blank and contains valid decimal and hex valules for this->hex & this->dec
public isValid ( ) : boolean
Résultat boolean

setPrivateKey() public méthode

public setPrivateKey ( PrivateKey $privateKey ) : bitpay\KeyInterface
$privateKey PrivateKey
Résultat bitpay\KeyInterface

Property Details

$privateKey protected_oe property

protected PrivateKey,bitpay $privateKey
Résultat PrivateKey

$sin protected_oe property

protected SinKey,bitpay $sin
Résultat SinKey