ParagonIE_Sodium_Core32_Ed25519::sk_to_pk

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Ed25519::sk_to_pk( string $sk )

Parameters Parameters

$sk

(string) (Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Core32/Ed25519.php

    public static function sk_to_pk($sk)
    {
        return self::ge_p3_tobytes(
            self::ge_scalarmult_base(
                self::substr($sk, 0, 32)
            )
        );
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.