WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Ed25519::seed_keypair() public WP 1.0

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Core_Ed25519::seed_keypair( $pk, $sk, $seed );
$pk(string) (required) (passed by reference — &)
-
$sk(string) (required) (passed by reference — &)
-
$seed(string) (required)
-

Code of ParagonIE_Sodium_Core_Ed25519::seed_keypair() WP 5.8.2

public static function seed_keypair(&$pk, &$sk, $seed)
{
    if (self::strlen($seed) !== self::SEED_BYTES) {
        throw new RangeException('crypto_sign keypair seed must be 32 bytes long');
    }

    /** @var string $pk */
    $pk = self::publickey_from_secretkey($seed);
    $sk = $seed . $pk;
    return $sk;
}