9 #ifndef TOR_SHARED_RANDOM_CLIENT_H
10 #define TOR_SHARED_RANDOM_CLIENT_H
33 #define SHARED_RANDOM_N_ROUNDS 12
35 #define SHARED_RANDOM_N_PHASES 2
This file contains ABI/API of the shared random protocol defined in proposal #250....
char * sr_get_previous_for_control(void)
sr_srv_t * sr_parse_srv(const smartlist_t *args)
int get_voting_interval(void)
const sr_srv_t * sr_get_previous(const networkstatus_t *ns)
time_t sr_state_get_start_time_of_previous_protocol_run(void)
unsigned int sr_state_get_protocol_run_duration(void)
void sr_srv_encode(char *dst, size_t dst_len, const sr_srv_t *srv)
char * sr_get_current_for_control(void)
time_t sr_state_get_start_time_of_current_protocol_run(void)
unsigned int sr_state_get_phase_duration(void)
const sr_srv_t * sr_get_current(const networkstatus_t *ns)