def RawCompressed(self) -> DataBytes: """ Return raw compressed public key. Returns: DataBytes object: DataBytes object """ return DataBytes(self.m_ver_key)
def Raw(self) -> DataBytes: """ Return raw private key. Returns: DataBytes object: DataBytes object """ return DataBytes(self.m_sign_key)
def RawDecoded(self) -> DataBytes: """ Return the decoded point raw bytes. Returns: DataBytes object: DataBytes object """ return DataBytes(self.m_pub_key.format(False)[1:])
def RawDecoded(self) -> DataBytes: """ Return the decoded point raw bytes. Returns: DataBytes object: DataBytes object """ try: return DataBytes(self.m_point.to_bytes()) # ECDSA < 0.17 doesn't have to_bytes method for PointJacobi except AttributeError: x_bytes = IntegerUtils.ToBytes(self.m_point.x(), EcdsaKeysConst.POINT_COORD_BYTE_LEN) y_bytes = IntegerUtils.ToBytes(self.m_point.y(), EcdsaKeysConst.POINT_COORD_BYTE_LEN) return DataBytes(x_bytes + y_bytes)
def RawUncompressed(self) -> DataBytes: """ Return raw uncompressed public key. Returns: DataBytes object: DataBytes object """ return DataBytes(self.m_ver_key.format(False))
def RawEncoded(self) -> DataBytes: """ Return the encoded point raw bytes. Returns: DataBytes object: DataBytes object """ return DataBytes(ed25519_monero_lib.encodepoint(self.m_point))
def RawEncoded(self) -> DataBytes: """ Return the encoded point raw bytes. Returns: DataBytes object: DataBytes object """ return DataBytes(self.m_pub_key.format(True))
def RawUncompressed(self) -> DataBytes: """ Return raw uncompressed public key. Returns: DataBytes object: DataBytes object """ return DataBytes(self.m_ver_key.to_string("uncompressed"))
def RawCompressed(self) -> DataBytes: """ Return raw compressed public key. Returns: DataBytes object: DataBytes object """ return DataBytes(Ed25519KeysConst.PUB_KEY_PREFIX + self.m_ver_key.to_bytes())
def RawEncoded(self) -> DataBytes: """ Return the encoded point raw bytes. Returns: DataBytes object: DataBytes object """ return DataBytes(self.m_point)
def RawEncoded(self) -> DataBytes: """ Return the encoded point raw bytes. Returns: DataBytes object: DataBytes object """ try: return DataBytes(self.m_point.to_bytes("compressed")) # ECDSA < 0.17 doesn't have to_bytes method for PointJacobi except AttributeError: x_bytes = IntegerUtils.ToBytes(self.m_point.x(), EcdsaKeysConst.POINT_COORD_BYTE_LEN) if self.m_point.y() & 1: enc_bytes = b"\x03" + x_bytes else: enc_bytes = b"\x02" + x_bytes return DataBytes(enc_bytes)
def RawDecoded(self) -> DataBytes: """ Return the decoded point raw bytes. Returns: DataBytes object: DataBytes object """ return DataBytes( ed25519_monero_lib.encodeint(self.X()) + ed25519_monero_lib.encodeint(self.Y()))
def RawDecoded(self) -> DataBytes: """ Return the decoded point raw bytes. Returns: DataBytes object: DataBytes object """ dec = ed25519_lib.point_decode_no_check(self.m_point) return DataBytes( ed25519_lib.encode_int(dec[0]) + ed25519_lib.encode_int(dec[1]))