(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign_publickey_from_secretkey — Extract the Ed25519 public key from the secret key
sodium_crypto_sign_publickey_from_secretkey(#[\SensitiveParameter] string $secret_key): string
Extract the Ed25519 public key from the secret key
secret_keyEd25519 secret key
Ed25519 public key
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.sodium-crypto-sign-publickey-from-secretkey.php