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 */
8 * @file hsdir_index_st.h
9 * @brief HS directory index structure
12 #ifndef HSDIR_INDEX_ST_H
13 #define HSDIR_INDEX_ST_H
15 /** Hidden service directory index used in a node_t which is set once we set
17 struct hsdir_index_t
{
18 /** HSDir index to use when fetching a descriptor. */
19 uint8_t fetch
[DIGEST256_LEN
];
21 /** HSDir index used by services to store their first and second
22 * descriptor. The first descriptor is chronologically older than the second
23 * one and uses older TP and SRV values. */
24 uint8_t store_first
[DIGEST256_LEN
];
25 /** Newer index, for second descriptor. */
26 uint8_t store_second
[DIGEST256_LEN
];
29 #endif /* !defined(HSDIR_INDEX_ST_H) */