sodium_crypto_box_publickey_from_secretkey

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Calculate the public key from a secret key
<?php sodium_crypto_box_publickey_from_secretkey(string $secret_key): string