ParagonIE_Sodium_Core32_Ed25519::sk_to_pk

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Ed25519::sk_to_pk( string $sk )

Parameters Parameters

$sk

(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