PHP Class Airship\Engine\Keyggdrasil\Peer

Represents a peer for a given channel
Show file Open project: paragonie/airship

Public Methods

Method Description
__construct ( array $config = [] ) Peer constructor.
getAllURLs ( string $suffix = '', boolean $doNotShuffle = false ) : array Get all URLs
getPublicKey ( ) : SignaturePublicKey Get the Ed25519 public key for this peer
hasOnionAddress ( ) : boolean Does this domain have a .onion address?

Method Details

__construct() public method

Peer constructor.
public __construct ( array $config = [] )
$config array

getAllURLs() public method

Get all URLs
public getAllURLs ( string $suffix = '', boolean $doNotShuffle = false ) : array
$suffix string
$doNotShuffle boolean
return array

getPublicKey() public method

Get the Ed25519 public key for this peer
public getPublicKey ( ) : SignaturePublicKey
return ParagonIE\Halite\Asymmetric\SignaturePublicKey

hasOnionAddress() public method

Does this domain have a .onion address?
public hasOnionAddress ( ) : boolean
return boolean