mirror of https://github.com/nucypher/nucypher.git
Beginning of creation of Policy from bytes payload.
parent
753905f04f
commit
7c3b62fb58
|
@ -201,6 +201,10 @@ class Policy(object):
|
||||||
|
|
||||||
return policy
|
return policy
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def from_payload(payload):
|
||||||
|
payload
|
||||||
|
|
||||||
def payload(self):
|
def payload(self):
|
||||||
return bytes(self.kfrag) + msgpack.dumps(self.encrypted_treasure_map())
|
return bytes(self.kfrag) + msgpack.dumps(self.encrypted_treasure_map())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue