PHP Class ParagonIE\Halite\SignatureKeyPair

Inheritance: extends KeyPair
Datei anzeigen Open project: paragonie/halite

Protected Properties

Property Type Description
$publicKey SignaturePublicKey
$secretKey SignatureSecretKey

Public Methods

Method Description
__construct ( variadic $keys ) Pass it a secret key, it will automatically generate a public key
getPublicKey ( ) : SignaturePublicKey Get a Key object for the public key
getSecretKey ( ) : SignatureSecretKey Get a Key object for the public key

Protected Methods

Method Description
setupKeyPair ( SignatureSecretKey $secret ) Set up our key pair

Method Details

__construct() public method

Pass it a secret key, it will automatically generate a public key
public __construct ( variadic $keys )
$keys variadic

getPublicKey() public method

Get a Key object for the public key
public getPublicKey ( ) : SignaturePublicKey
return SignaturePublicKey

getSecretKey() public method

Get a Key object for the public key
public getSecretKey ( ) : SignatureSecretKey
return SignatureSecretKey

setupKeyPair() protected method

Set up our key pair
protected setupKeyPair ( SignatureSecretKey $secret )
$secret SignatureSecretKey

Property Details

$publicKey protected_oe property

protected SignaturePublicKey $publicKey
return SignaturePublicKey

$secretKey protected_oe property

protected SignatureSecretKey $secretKey
return SignatureSecretKey