public static function generateSignatureKeyPair(): SignatureKeyPair
    {
        // Encryption keypair
        $kp = \sodium_crypto_sign_keypair();
        $secretKey = \sodium_crypto_sign_secretkey($kp);
        
        // Let's wipe our $kp variable
        \sodium_memzero($kp);
        return new SignatureKeyPair(
            new SignatureSecretKey(
                new HiddenString($secretKey)
            )
        );
    }
public static function generateSignatureKeyPair(): SignatureKeyPair
    {
        // Encryption keypair
        $kp = \sodium_crypto_sign_keypair();
        $secretKey = \sodium_crypto_sign_secretkey($kp);
        
        // Let's wipe our $kp variable
        \sodium_memzero($kp);
        return new SignatureKeyPair(
            new SignatureSecretKey(
                new HiddenString($secretKey)
            )
        );
    }
public static function generateSignatureKeyPair ( ) : SignatureKeyPair { // Encryption keypair $ kp = \ sodium_crypto_sign_keypair ( ) ; $ secretKey = \ sodium_crypto_sign_secretkey ( $ kp ) ; // Let's wipe our $kp variable \ sodium_memzero ( $ kp ) ; return new SignatureKeyPair ( new SignatureSecretKey ( new HiddenString ( $ secretKey ) ) ) ; }
Generate a key pair for public key digital signatures

@return SignatureKeyPair
@throws InvalidKey
@throws \TypeError
Generate a key pair for public key digital signatures