php8.5
Home/ Manual/ sodium / functions/ sodium_crypto_scalarmult_ristretto255_base

sodium_crypto_scalarmult_ristretto255_base

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.1)

Calculates the public key from a secret key

Description

sodium_crypto_scalarmult_ristretto255_base(string $n): string

Given a secret key, calculates the corresponding public key. Available as of libsodium 1.0.18.

Func

Parameters

n

A secret key.

Return Values

Returns a 32-byte random String.

See Also

Source: reference/sodium/functions/sodium-crypto-scalarmult-ristretto255-base.xml · from the official PHP manual (php/doc-en)