private function hash($payload)
    {
        if (class_exists(SignHasher::class)) {
            $hasher = new SignHasher($this->config->getHashingAlgorithm());

            return $hasher->makeHash($payload, $this->config->getGenerator());
        }

        $signer = new EccSigner($this->adapter);

        return $signer->hashData($this->config->getGenerator(), $this->config->getHashingAlgorithm(), $payload);
    }