WordPress at a glance
function is not described

ParagonIE_Sodium_Core_Ed25519::publickey_from_secretkey() public WP 1.0

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

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core_Ed25519::publickey_from_secretkey( $sk );
$sk(string) (required)
-

Code of ParagonIE_Sodium_Core_Ed25519::publickey_from_secretkey() WP 5.7

<?php
public static function publickey_from_secretkey($sk)
{
    /** @var string $sk */
    $sk = hash('sha512', self::substr($sk, 0, 32), true);
    $sk[0] = self::intToChr(
        self::chrToInt($sk[0]) & 248
    );
    $sk[31] = self::intToChr(
        (self::chrToInt($sk[31]) & 63) | 64
    );
    return self::sk_to_pk($sk);
}