Policy now takes multiple kFrags and a URI as arguments.

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

View File

@ -160,7 +160,7 @@ class PolicyGroup(object):
def publish_treasure_map(self):
encrypted_treasure_map, signature_for_bob = self.alice.encrypt_for(self.bob,
self.treasure_map.packed_payload())
self.treasure_map.packed_payload())
signature_for_ursula = self.alice.seal(self.hrac()) # TODO: Great use-case for Ciphertext class
# In order to know this is safe to propagate, Ursula needs to see a signature, our public key,
@ -189,7 +189,7 @@ class Policy(object):
hashed_part = None
_id = None
def __init__(self, alice, bob=None, kfrag=UNKNOWN_KFRAG, pfrag=None, alices_signature=NOT_SIGNED, challenge_size=20,
def __init__(self, alice, bob=None, kfrags=(UNKNOWN_KFRAG,), pfrag=None, uri=None, alices_signature=NOT_SIGNED, challenge_size=20,
set_id=True, encrypted_challenge_pack=None):
"""
:param kfrag: