mirror of https://github.com/nucypher/nucypher.git
Moving decryption request creation outside loop - it doesn't need to occur per iteration; just once is fine.
parent
a577bd709e
commit
e1dcaab7fb
|
@ -579,8 +579,6 @@ class Bob(Character):
|
|||
elif variant == FerveoVariant.SIMPLE:
|
||||
share_type = DecryptionShareSimple
|
||||
|
||||
decryption_request_mapping = {}
|
||||
for ursula in cohort:
|
||||
conditions = Conditions(json.dumps(lingo))
|
||||
if context:
|
||||
context = Context(json.dumps(context))
|
||||
|
@ -591,6 +589,9 @@ class Bob(Character):
|
|||
conditions=conditions,
|
||||
context=context,
|
||||
)
|
||||
|
||||
decryption_request_mapping = {}
|
||||
for ursula in cohort:
|
||||
decryption_request_mapping[
|
||||
to_checksum_address(ursula.checksum_address)
|
||||
] = bytes(decryption_request)
|
||||
|
|
Loading…
Reference in New Issue