(self, element)
return self.tec_arithmetic.decode(element_digest)
Hash a Twisted Edwards Curve element
        :param element: TwistedEdwardsCurveElement
        :return: -1 if hash fails, otherwise the correct TwistedEdwardsCurveElement
Hash a Twisted Edwards Curve element
        :param element: TwistedEdwardsCurveElement
        :return: -1 if hash fails, otherwise the correct TwistedEdwardsCurveElement
Hash a Twisted Edwards Curve element : param element : TwistedEdwardsCurveElement : return : - 1 if hash fails otherwise the correct TwistedEdwardsCurveElement
def _hash_tec_element(self, element):
        """
        Hash a Twisted Edwards Curve element
        :param element: TwistedEdwardsCurveElement
        :return: -1 if hash fails, otherwise the correct TwistedEdwardsCurveElement
        """
        element_bytes = self.tec_arithmetic.encode(element)
        element_digest = self.hash.digest(element_bytes)
        return self.tec_arithmetic.decode(element_digest)
def _hash_tec_element ( self , element ) : element_bytes = self . tec_arithmetic . encode ( element ) element_digest = self . hash . digest ( element_bytes ) return self . tec_arithmetic . decode ( element_digest )