networkstatus_voter_info_st.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef NETWORKSTATUS_VOTER_INFO_ST_H
  7. #define NETWORKSTATUS_VOTER_INFO_ST_H
  8. /** Information about a single voter in a vote or a consensus. */
  9. struct networkstatus_voter_info_t {
  10. /** Declared SHA-1 digest of this voter's identity key */
  11. char identity_digest[DIGEST_LEN];
  12. char *nickname; /**< Nickname of this voter */
  13. /** Digest of this voter's "legacy" identity key, if any. In vote only; for
  14. * consensuses, we treat legacy keys as additional signers. */
  15. char legacy_id_digest[DIGEST_LEN];
  16. char *address; /**< Address of this voter, in string format. */
  17. uint32_t addr; /**< Address of this voter, in IPv4, in host order. */
  18. uint16_t dir_port; /**< Directory port of this voter */
  19. uint16_t or_port; /**< OR port of this voter */
  20. char *contact; /**< Contact information for this voter. */
  21. char vote_digest[DIGEST_LEN]; /**< Digest of this voter's vote, as signed. */
  22. /* Nothing from here on is signed. */
  23. /** The signature of the document and the signature's status. */
  24. smartlist_t *sigs;
  25. };
  26. #endif