public function sign(string $request) : string
    {
        try {
            return \sodium_crypto_sign_detached(
                $request,
                $this->signatureSecretKey
            );
        } catch (SodiumException $e) {
            throw new InvalidArgumentException($e->getMessage());
        }
    }
public function sign(string $request) : string
    {
        try {
            return \sodium_crypto_sign_detached(
                $request,
                $this->signatureSecretKey
            );
        } catch (SodiumException $e) {
            throw new InvalidArgumentException($e->getMessage());
        }
    }
public function sign ( string $ request ) : string { try { return \ sodium_crypto_sign_detached ( $ request , $ this -> signatureSecretKey ) ; } catch ( SodiumException $ e ) { throw new InvalidArgumentException ( $ e -> getMessage ( ) ) ; } }
Creates a detached signature for the keypair

@param string $request
@param string $secretKey
@return string

@throws InvalidArguementException
Creates a detached signature for the keypair