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);
    }
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);
    }
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 ) ; }
Hash the payload

@param string $payload

@return GMP
Hash the payload