(self, a)
Encode an element to a 33-byte bytes for feeding into a cryptographic hash function
        :param a: TwistedEdwardsCurveElement
        :return:
Encode an element to a 33-byte bytes for feeding into a cryptographic hash function
        :param a: TwistedEdwardsCurveElement
        :return:
Encode an element to a 33 - byte bytes for feeding into a cryptographic hash function : param a : TwistedEdwardsCurveElement : return :
def encode(self, a):
        """
        Encode an element to a 33-byte bytes for feeding into a cryptographic hash function
        :param a: TwistedEdwardsCurveElement
        :return:
        """
        pos_sign = "00"
        neg_sign = "FF"
        if self.FA.is_positive(a.x):
            return bytes.fromhex(pos_sign) + int_to_bytes(a.y.val)
        else:
            return bytes.fromhex(neg_sign) + int_to_bytes(a.y.val)
def encode ( self , a ) : pos_sign = "00" neg_sign = "FF" if self . FA . is_positive ( a . x ) : return bytes . fromhex ( pos_sign ) + int_to_bytes ( a . y . val ) else : return bytes . fromhex ( neg_sign ) + int_to_bytes ( a . y . val )