mirror of https://github.com/nucypher/nucypher.git
Sending Policy in a MessageKit.
parent
b5bf5557a2
commit
25477c1204
|
@ -194,10 +194,10 @@ class Policy(object):
|
|||
|
||||
def enact(self, networky_stuff):
|
||||
for contract in self._accepted_contracts.values():
|
||||
full_payload = contract.encrypt_payload_for_ursula()
|
||||
policy_message_kit = contract.encrypt_payload_for_ursula()
|
||||
response = networky_stuff.enact_policy(contract.ursula,
|
||||
self.hrac(),
|
||||
bytes(full_payload))
|
||||
bytes(policy_message_kit))
|
||||
# TODO: Parse response for confirmation.
|
||||
response
|
||||
|
||||
|
|
Loading…
Reference in New Issue