sodium_crypto_sign_secretkey

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Extract the Ed25519 secret key from a keypair
<?php sodium_crypto_sign_secretkey(string $key_pair): string