9 #ifndef TOR_SHARED_RANDOM_CLIENT_H 10 #define TOR_SHARED_RANDOM_CLIENT_H 13 #include "dirauth/shared_random.h" 16 void sr_srv_encode(
char *dst,
size_t dst_len,
const sr_srv_t *srv);
17 int get_voting_interval(
void);
20 char *sr_get_current_for_control(
void);
21 char *sr_get_previous_for_control(
void);
33 #define SHARED_RANDOM_N_ROUNDS 12 35 #define SHARED_RANDOM_N_PHASES 2 40 time_t get_start_time_of_current_round(
void);
unsigned int sr_state_get_phase_duration(void)
Definition: shared_random_client.c:247
Definition: container.h:18
Definition: shared_random.h:60
time_t sr_state_get_start_time_of_current_protocol_run(time_t now)
Definition: shared_random_client.c:228
unsigned int sr_state_get_protocol_run_duration(void)
Definition: shared_random_client.c:254