Tor 0.4.9.1-alpha-dev
networkstatus_voter_info_st.h
Go to the documentation of this file.
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. */
17 /** Declared SHA-1 digest of this voter's identity key */
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. */
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. */
33};
34
35#endif /* !defined(NETWORKSTATUS_VOTER_INFO_ST_H) */
#define DIGEST_LEN
Definition: digest_sizes.h:20