[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Drop private '_outer_layer' attribute
commit e5f43e1c691c76d552b71ad33acb38de2f5b5e52
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Tue Oct 15 12:56:19 2019 -0700
Drop private '_outer_layer' attribute
Inner layers reference outer layers. This private attribute is both redundant
and unused.
---
stem/descriptor/hidden_service.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/stem/descriptor/hidden_service.py b/stem/descriptor/hidden_service.py
index b7bf9a08..ede278cc 100644
--- a/stem/descriptor/hidden_service.py
+++ b/stem/descriptor/hidden_service.py
@@ -1042,7 +1042,6 @@ class HiddenServiceDescriptorV3(BaseHiddenServiceDescriptor):
super(HiddenServiceDescriptorV3, self).__init__(raw_contents, lazy_load = not validate)
self._inner_layer = None
- self._outer_layer = None
entries = _descriptor_components(raw_contents, validate)
if validate:
@@ -1108,8 +1107,8 @@ class HiddenServiceDescriptorV3(BaseHiddenServiceDescriptor):
subcredential = hsv3_crypto.get_subcredential(identity_public_key, blinded_key)
- self._outer_layer = OuterLayer._decrypt(self.superencrypted, self.revision_counter, subcredential, blinded_key)
- self._inner_layer = InnerLayer._decrypt(self._outer_layer, self.revision_counter, subcredential, blinded_key)
+ outer_layer = OuterLayer._decrypt(self.superencrypted, self.revision_counter, subcredential, blinded_key)
+ self._inner_layer = InnerLayer._decrypt(outer_layer, self.revision_counter, subcredential, blinded_key)
return self._inner_layer
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits