134-robust-voting.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Filename: 134-robust-voting.txt
  2. Title: More robust consensus voting with diverse authority sets
  3. Author: Peter Palfrader
  4. Created: 2008-04-01
  5. Status: Draft
  6. Overview:
  7. A means to arrive at a valid directory consensus even when voters
  8. disagree on who is an authority.
  9. Motivation:
  10. Right now there are about five authoritative directory servers in the
  11. Tor network, tho this number is expected to rise to about 15 eventually.
  12. Adding a new authority requires synchronized action from all operators of
  13. directory authorities so that at any time during the update at least half of
  14. all authorities are running and agree on who is an authority. The latter
  15. requirement is there so that the authorities can arrive at a common
  16. consensus: Each authority builds the consensus based on the votes from
  17. all authorities it recognizes, and so a different set of recognized
  18. authorities will lead to a different consensus document.
  19. Objective:
  20. The modified voting procedure outlined in this proposal obsoletes the
  21. requirement for most authorities to exactly agree on the list of
  22. authorities.
  23. Proposal:
  24. The vote document each authority generates contains a list of
  25. authorities recognized by the generating authority. This will be
  26. a list of authority identity fingerprints.
  27. Authorities will accept votes from and serve/mirror votes also for
  28. authorities they do not recognize. (Votes contain the signing,
  29. authority key, and the certificate linking them so they can be
  30. verified even without knowing the authority beforehand.)
  31. Before building the consensus we will check which votes to use for
  32. building:
  33. 1) We build a directed graph of which authority/vote recognizes
  34. whom.
  35. 2) (Parts of the graph that aren't reachable, directly or
  36. indirectly, from any authorities we recognize can be discarded
  37. immediately.)
  38. 3) We find the largest fully connected subgraph.
  39. (Should there be more than one subgraph of the same size there
  40. needs to be some arbitrary ordering so we always pick the same.
  41. E.g. pick the one who has the smaller (XOR of all votes' digests)
  42. or something.)
  43. 4) If we are part of that subgraph, great. This is the list of
  44. votes we build our consensus with.
  45. 5) If we are not part of that subgraph, remove all the nodes that
  46. are part of it and go to 3.
  47. Using this procedure authorities that are updated to recognize a
  48. new authority will continue voting with the old group until a
  49. sufficient number has been updated to arrive at a consensus with
  50. the recently added authority.
  51. In fact, the old set of authorities will probably be voting among
  52. themselves until all but one has been updated to recognize the
  53. new authority. Then which set of votes is used for consensus
  54. building depends on which of the two equally large sets gets
  55. ordered before the other in step (3) above.
  56. It is necessary to continue with the process in (5) even if we
  57. are not in the largest subgraph. Otherwise one rogue authority
  58. could create a number of extra votes (by new authorities) so that
  59. everybody stops at 5 and no consensus is built, even tho it would
  60. be trusted by all clients.
  61. Anonymity Implications:
  62. The author does not believe this proposal to have anonymity
  63. implications.
  64. Possible Attacks/Open Issues/Some thinking required:
  65. Q: Can a number (less or exactly half) of the authorities cause an honest
  66. authority to vote for "their" consensus rather than the one that would
  67. result were all authorities taken into account?
  68. Q: Can a set of votes from external authorities, i.e of whom we trust either
  69. none or at least not all, cause us to change the set of consensus makers we
  70. pick?
  71. A: Yes, if other authorities decide they rather build a consensus with them
  72. then they'll be thrown out in step 3. But that's ok since those other
  73. authorities will never vote with us anyway.
  74. If we trust none of them then we throw them out even sooner, so no harm done.
  75. Q: Can this ever force us to build a consensus with authorities we do not
  76. recognize?
  77. A: No, we can never build a fully connected set with them in step 3.