[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #21102 [Core Tor/Stem]: Shared Random Not Parsing Correctly



#21102: Shared Random Not Parsing Correctly
-------------------------------+--------------------
     Reporter:  tom            |      Owner:  atagar
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:
    Component:  Core Tor/Stem  |    Version:
     Severity:  Normal         |   Keywords:
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+--------------------
 None of the shared random attributes are being parsed or populated on
 votes:

 Latest stem version: 32ec5374c73b8c5f93d30723b629736a4070f314

 {{{

 >>> import stem
 >>> from stem.descriptor import DocumentHandler
 >>> from stem.descriptor.remote import DescriptorDownloader,
 get_authorities
 >>>
 >>> downloader = DescriptorDownloader()
 >>> query = downloader.get_vote(get_authorities()['moria1'],
 document_handler = DocumentHandler.DOCUMENT, validate = False)
 >>> r = query.run()[0]
 >>> r.is_shared_randomness_participate
 False
 >>> r.shared_randomness_commitments
 []
 >>> r.shared_randomness_previous_reveal_count
 >>> r.shared_randomness_previous_value
 >>> r.shared_randomness_current_reveal_count
 >>> r.shared_randomness_current_value
 >>> lines = r._raw_contents.split("\n")
 >>> sharedlines = [bob for bob in lines if "shared" in bob]
 >>> sharedlines
 ['shared-rand-participate', 'shared-rand-commit 1 sha3-256
 0232AF901C31A04EE9848595AF9BB7620D4C5B2E
 AAAAAFhkUgDfD5O57GTaW03nOXG6NYzK5d4pbl5bvY0Gl+ltdeDWJw==', 'shared-rand-
 commit 1 sha3-256 14C131DFC5C6F93646BE72FA1401C02A8DF2E8B4
 AAAAAFhkUgB1DTDby0B2+4wR/BT50pNinCALsi7dAfB7K6WcFBCXYg==', 'shared-rand-
 commit 1 sha3-256 23D15D965BC35114467363C165C4F724B64B4F66
 AAAAAFhkUgAZDvoCYkpssoN4ths9bsf6JF+XoT3XpEaVbLwHTEoGFg==', 'shared-rand-
 commit 1 sha3-256 49015F787433103580E3B66A1707A00E60F2D15B
 AAAAAFhkUgDhiYVny8VXGIz/+swCKcuRTy25JaZpQYQqJ3aiFqTTxg==', 'shared-rand-
 commit 1 sha3-256 D586D18309DED4CD6D57C18FDB97EFA96D330566
 AAAAAFhkUgDN/MbqvEG3IMLiAGv/MLp1arbCKGZFwLAptgYFY/N4qQ==', 'shared-rand-
 commit 1 sha3-256 E8A9C45EDE6D711294FADF8E7951F4DE6CA56B58
 AAAAAFhkUgCcnmLxs4+uPPHJrTnOMH+ZgfJ289AjbI/+ZI62sIJRcQ==', 'shared-rand-
 commit 1 sha3-256 ED03BB616EB2F60BEC80151114BB25CEF515B226
 AAAAAFhkUgD159ckYKLunWoreLKfCV/Rsmv5hel5TaX4SifHIC3/8g==', 'shared-rand-
 previous-value 7 1giXfU4CDR2aqxPprE2tx/Y/QXM8EmSJN+yyfs0UBhk=', 'shared-
 rand-current-value 6 oKd3173SXw2YYMgsWTDelUlpR5VlD/lFt264S2140R0=']

 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21102>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs