ParagonIE_Sodium_Core32_Ed25519::secretkey() public WP 1.0
{} It's a method of the class: ParagonIE_Sodium_Core32_Ed25519{}
No Hooks.
Return
String
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Core32_Ed25519::secretkey( $keypair );
- $keypair(string) (required)
- -
Code of ParagonIE_Sodium_Core32_Ed25519::secretkey() ParagonIE Sodium Core32 Ed25519::secretkey WP 5.7
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);
}