Tor 0.4.9.3-alpha-dev
Loading...
Searching...
No Matches
Data Fields
hs_pow_desc_params_t Struct Reference

#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
 

Detailed Description

Proof-of-Work parameters for DoS defense located in a descriptor.

Definition at line 62 of file hs_pow.h.

Field Documentation

◆ expiration_time

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().

◆ seed

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().

◆ suggested_effort

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().

◆ 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().


The documentation for this struct was generated from the following file: