From 2663e73bfbff0bb7a5bd012eb873676aa0155cdb Mon Sep 17 00:00:00 2001 From: jMyles Date: Fri, 13 Jul 2018 11:51:03 -0700 Subject: [PATCH] Function had improper case. --- nucypher/characters.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nucypher/characters.py b/nucypher/characters.py index 5581e381e..94c93e714 100644 --- a/nucypher/characters.py +++ b/nucypher/characters.py @@ -842,7 +842,7 @@ class Bob(Character): return generated_work_orders - def get_reencrypted_c_frags(self, work_order): + def get_reencrypted_cfrags(self, work_order): cfrags = self.network_middleware.reencrypt(work_order) if not len(work_order) == len(cfrags): raise ValueError("Ursula gave back the wrong number of cfrags. She's up to something.") @@ -881,10 +881,8 @@ class Bob(Character): if len(intersection) < treasure_map.m: raise RuntimeError("Not enough known nodes. Try following the TreasureMap again.") - work_orders = self.generate_work_orders(hrac, message_kit.capsule) - for node_id in self.treasure_maps[hrac]: - node = self._known_nodes[UmbralPublicKey.from_bytes(node_id)] - cfrags = self.get_reencrypted_c_frags(work_orders[bytes(node.stamp)]) + for work_order in work_orders.values(): + cfrags = self.get_reencrypted_cfrags(work_order) message_kit.capsule.attach_cfrag(cfrags[0]) verified, delivered_cleartext = self.verify_from(data_source, message_kit,