MCPcopy
hub / github.com/spaceandtimefdn/SxT-Python-SDK / public_key

Method public_key

src/spaceandtime/sxtkeymanager.py:80–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 ''

Callers

nothing calls this directly

Calls 3

convert_keyMethod · 0.95
__callback__Method · 0.95
get_encoding_typeMethod · 0.95

Tested by

no test coverage detected