WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey() public WP 1.0

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

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey( $sk, $pk );
$sk(string) (required)
-
$pk(string) (required)
-

Code of ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey() WP 5.7

<?php
public static function crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk)
{
    ParagonIE_Sodium_Core_Util::declareScalarType($sk, 'string', 1);
    ParagonIE_Sodium_Core_Util::declareScalarType($pk, 'string', 1);
    $sk = (string) $sk;
    $pk = (string) $pk;

    if (ParagonIE_Sodium_Core_Util::strlen($sk) !== self::CRYPTO_SIGN_SECRETKEYBYTES) {
        throw new SodiumException('secretkey should be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes');
    }
    if (ParagonIE_Sodium_Core_Util::strlen($pk) !== self::CRYPTO_SIGN_PUBLICKEYBYTES) {
        throw new SodiumException('publickey should be SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES bytes');
    }

    if (self::useNewSodiumAPI()) {
        return sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk);
    }
    return $sk . $pk;
}