WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core32_Ed25519::secretkey() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core32_Ed25519{}

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Core32_Ed25519::secretkey( $keypair );
$keypair(string) (required)
-

Code of ParagonIE_Sodium_Core32_Ed25519::secretkey() WP 5.8.2

public static function secretkey($keypair)
{
    if (self::strlen($keypair) !== self::KEYPAIR_BYTES) {
        throw new RangeException('crypto_sign keypair must be 96 bytes long');
    }
    return self::substr($keypair, 0, 64);
}