Alice passes uri and kFrags to make a Policy.

pull/145/head
jMyles 2017-12-14 11:22:20 -08:00
parent 847a0e0e99
commit c4135b520f
1 changed files with 7 additions and 6 deletions

View File

@ -202,8 +202,9 @@ class Policy(object):
self.alice = alice
self.bob = bob
self.alices_signature = alices_signature
self.kfrag = kfrag
self.kfrags = kfrags
self.pfrag = pfrag
self.uri = uri
self.random_id_portion = api.secure_random(32) # TOOD: Where do we actually want this to live?
self.challenge_size = challenge_size
self.treasure_map = []
@ -235,13 +236,13 @@ class Policy(object):
self._ursula = ursula_object
@staticmethod
def from_alice(kfrag,
def from_alice(kfrags,
pfrag,
alice,
bob,
uri,
):
policy = Policy(alice, bob, kfrag, pfrag)
policy.generate_challenge_pack()
policy = Policy(alice, bob, kfrags, pfrag, uri)
return policy