|
Tor 0.4.9.3-alpha-dev
|
#include <hs_pow.h>
Data Fields | |
| hs_pow_desc_type_t | type |
| uint8_t | seed [HS_POW_SEED_LEN] |
| uint32_t | suggested_effort |
| time_t | expiration_time |
Proof-of-Work parameters for DoS defense located in a descriptor.
| time_t expiration_time |
Timestamp after which the above seed expires.
Definition at line 74 of file hs_pow.h.
Referenced by can_client_refetch_desc(), connection_ap_handle_onion(), decode_pow_params(), get_inner_encrypted_layer_plaintext(), and update_all_descriptors_pow_params().
| uint8_t seed[HS_POW_SEED_LEN] |
Random 32-byte seed used as input the the PoW hash function
Definition at line 67 of file hs_pow.h.
Referenced by consider_sending_introduce1(), decode_pow_params(), get_inner_encrypted_layer_plaintext(), and update_all_descriptors_pow_params().
| uint32_t suggested_effort |
Specifies effort value that clients should aim for when contacting the service.
Definition at line 71 of file hs_pow.h.
Referenced by consider_sending_introduce1(), decode_pow_params(), get_inner_encrypted_layer_plaintext(), and update_all_descriptors_pow_params().
| hs_pow_desc_type_t type |
Type of PoW system being used.
Definition at line 64 of file hs_pow.h.
Referenced by decode_pow_params(), get_inner_encrypted_layer_plaintext(), and update_all_descriptors_pow_params().