mirror of https://github.com/nucypher/nucypher.git
Serialize MessageKit.
parent
50043f68a9
commit
b92b5158e1
|
@ -31,6 +31,12 @@ class MessageKit(CryptoKit):
|
|||
self.alice_pubkey
|
||||
)
|
||||
|
||||
def __bytes__(self):
|
||||
as_bytes = bytes(self.capsule)
|
||||
if self.alice_pubkey:
|
||||
as_bytes += bytes(self.alice_pubkey)
|
||||
as_bytes += self.ciphertext
|
||||
return as_bytes
|
||||
|
||||
class MapKit(MessageKit):
|
||||
|
||||
|
|
Loading…
Reference in New Issue