Beginning of creation of Policy from bytes payload.

pull/120/head
jMyles 2017-11-17 17:36:45 -08:00
parent 753905f04f
commit 7c3b62fb58
1 changed files with 4 additions and 0 deletions

View File

@ -201,6 +201,10 @@ class Policy(object):
return policy
@staticmethod
def from_payload(payload):
payload
def payload(self):
return bytes(self.kfrag) + msgpack.dumps(self.encrypted_treasure_map())