ParagonIE_Sodium_Core32_Ed25519::publickey

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Ed25519::publickey( string $keypair )

Parameters Parameters

$keypair

(string) (Required)

Return Return

(string)

Source Source

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

    public static function publickey($keypair)
    {
        if (self::strlen($keypair) !== self::KEYPAIR_BYTES) {
            throw new RangeException('crypto_sign keypair must be 96 bytes long');
        }
        return self::substr($keypair, 64, 32);
    }

Advertisement

Advertisement

Leave a Reply

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