Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Use the shared random value in the consensus for the random seed #56

Open
teor2345 opened this issue Jan 23, 2018 · 3 comments
Open

Use the shared random value in the consensus for the random seed #56

teor2345 opened this issue Jan 23, 2018 · 3 comments

Comments

@teor2345
Copy link
Collaborator

Using the hash of the consensus means that authorities, and possibly relays, can manipulate the hash.

@aagbsn
Copy link
Collaborator

aagbsn commented Jan 24, 2018

Are you referring to @david415 's ProbeAll2HopCircuits scanner? I think the hashed consensus is hashed again with a local secret - I'm not sure how the authorities/relays can influence the output here...

@teor2345
Copy link
Collaborator Author

teor2345 commented Jan 24, 2018 via email

@aagbsn
Copy link
Collaborator

aagbsn commented Jan 25, 2018

Thanks for the explanation. I think this should be a fairly simple fix but requires refactoring @david415's unit tests because they currently mock out txtorcon's TorState and don't seem to support GETINFO. I've pushed a branch https://github.com/TheTorProject/bwscanner/tree/56_used_shared_random_for_seed to track this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants