PHP Class Bitpay\SinKey

Inheritance: extends bitpay\Key
Mostrar archivo Open project: bitpay/php-client Class Usage Examples

Protected Properties

Property Type Description
$publicKey PublicKey
$value string

Public Methods

Method Description
__toString ( ) : string
generate ( ) : SinKey Generates a Service Identification Number (SIN), see: https://en.bitcoin.it/wiki/Identity_protocol_v1
isValid ( ) : boolean Checks to make sure that this SIN is a valid object.
setPublicKey ( PublicKey $publicKey ) : SinKey

Method Details

__toString() public method

public __toString ( ) : string
return string

generate() public method

Generates a Service Identification Number (SIN), see: https://en.bitcoin.it/wiki/Identity_protocol_v1
public generate ( ) : SinKey
return SinKey

isValid() public method

Checks to make sure that this SIN is a valid object.
public isValid ( ) : boolean
return boolean

setPublicKey() public method

public setPublicKey ( PublicKey $publicKey ) : SinKey
$publicKey PublicKey
return SinKey

Property Details

$publicKey protected_oe property

protected PublicKey,bitpay $publicKey
return PublicKey

$value protected_oe property

protected string $value
return string