(self)
| 78 | |
| 79 | @property |
| 80 | def public_key(self): |
| 81 | if self.__pv and len(self.__pb)==0: |
| 82 | kp = KeyPair.from_private_key(PrivateKey.from_hex( self.convert_key(self.__pv, encoding_out = SXTKeyEncodings.HEX))) |
| 83 | self.__pb = bytes(kp.public_key.to_bytes()) |
| 84 | self.__callback__('public_key') |
| 85 | return self.convert_key(self.__pb, encoding_out= self.encoding) |
| 86 | @public_key.setter |
| 87 | def public_key(self, value): |
| 88 | self.__pb = self.convert_key(value, self.get_encoding_type(value), SXTKeyEncodings.BYTES) if value else '' |
nothing calls this directly
no test coverage detected