tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

networkstatus_voter_info_st.h (1374B)


      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-2021, The Tor Project, Inc. */
      5 /* See LICENSE for licensing information */
      6 
      7 /**
      8 * @file networkstatus_voter_info_st.h
      9 * @brief Single consensus voter structure.
     10 **/
     11 
     12 #ifndef NETWORKSTATUS_VOTER_INFO_ST_H
     13 #define NETWORKSTATUS_VOTER_INFO_ST_H
     14 
     15 /** Information about a single voter in a vote or a consensus. */
     16 struct networkstatus_voter_info_t {
     17  /** Declared SHA-1 digest of this voter's identity key */
     18  char identity_digest[DIGEST_LEN];
     19  char *nickname; /**< Nickname of this voter */
     20  /** Digest of this voter's "legacy" identity key, if any.  In vote only; for
     21   * consensuses, we treat legacy keys as additional signers. */
     22  char legacy_id_digest[DIGEST_LEN];
     23  char *address; /**< Address of this voter, in string format. */
     24  tor_addr_t ipv4_addr;
     25  uint16_t ipv4_dirport; /**< Directory port of this voter */
     26  uint16_t ipv4_orport; /**< OR port of this voter */
     27  char *contact; /**< Contact information for this voter. */
     28  char vote_digest[DIGEST_LEN]; /**< Digest of this voter's vote, as signed. */
     29 
     30  /* Nothing from here on is signed. */
     31  /** The signature of the document and the signature's status. */
     32  smartlist_t *sigs;
     33 };
     34 
     35 #endif /* !defined(NETWORKSTATUS_VOTER_INFO_ST_H) */