\CryptoManana\DataStructuresExchangeInformation

Class ExchangeInformation - The key exchange information data object.

Summary

Methods
Properties
Constants
__construct()
__destruct()
__toString()
__get()
__set()
__isset()
__unset()
$prime
$generator
$private
$public
No constants found
No protected methods found
$prime
$generator
$private
$public
N/A
No private methods found
No private properties found
N/A

Properties

$prime

$prime : string

The hexadecimal representation of a prime number, also knows as p.

Type

string

$generator

$generator : string

The hexadecimal generator number, a primitive root modulo of p, also known as g.

Type

string

$private

$private : string

The private key.

Type

string

$public

$public : string

The public key.

Type

string

$prime

$prime : string

The prime number property storage.

Type

string — The chosen prime number, also knows as `p`

$generator

$generator : string

The generator number property storage.

Type

string — The chosen generator number, also knows as `g`

$private

$private : string

The private key property storage.

Type

string — The private key.

$public

$public : string

The public key property storage.

Type

string — The public key.

Methods

__construct()

__construct(string  $prime = '', string  $generator = '', string  $privateKey = '', string  $publicKey = '') 

Exchange information constructor.

Parameters

string $prime

The hexadecimal representation of a prime number, also knows as p.

string $generator

The hexadecimal generator number, a primitive root modulo of p, also known as g.

string $privateKey

The private key.

string $publicKey

The public key.

Throws

\Exception

Validation errors.

__destruct()

__destruct() 

Exchange information destructor

__toString()

__toString() : string

The key exchange information data string representation.

Returns

string

__get()

__get(mixed  $name) : mixed

Magic method invoked when attempting to get the value of an inaccessible or a non-existent property.

Parameters

mixed $name

The property name.

Returns

mixed —

The property value.

__set()

__set(mixed  $name, mixed  $value) 

Magic method invoked when attempting to create or modify of an inaccessible or a non-existent property.

Parameters

mixed $name

The property name.

mixed $value

The property value.

Throws

\Exception|\InvalidArgumentException

The property does not exist or is from another type.

__isset()

__isset(mixed  $name) : boolean

Magic method invoked when checking of an inaccessible or a non-existent property is set.

Parameters

mixed $name

The property name.

Returns

boolean —

The existence check result.

__unset()

__unset(mixed  $name) 

Magic method invoked when attempting to unset an inaccessible or a non-existent property.

Parameters

mixed $name

The property name.

Throws

\Exception|\LogicException

The object does not allow dynamic property removal.