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

#include <shared_random.h>

Data Fields

digest_algorithm_t alg
 
unsigned int valid:1
 
char rsa_identity [DIGEST_LEN]
 
char rsa_identity_hex [HEX_DIGEST_LEN+1]
 
uint64_t reveal_ts
 
char hashed_reveal [DIGEST256_LEN]
 
char encoded_commit [SR_COMMIT_BASE64_LEN+1]
 
uint8_t random_number [SR_RANDOM_NUMBER_LEN]
 
uint64_t commit_ts
 
char encoded_reveal [SR_REVEAL_BASE64_LEN+1]
 

Detailed Description

A commit (either ours or from another authority).

Definition at line 70 of file shared_random.h.

Field Documentation

◆ alg

◆ commit_ts

uint64_t commit_ts

Timestamp of commit. Correspond to TIMESTAMP.

Definition at line 99 of file shared_random.h.

Referenced by commit_decode(), commit_encode(), commit_log(), sr_generate_our_commit(), and verify_commit_and_reveal().

◆ encoded_commit

char encoded_commit[SR_COMMIT_BASE64_LEN+1]

Definition at line 90 of file shared_random.h.

◆ encoded_reveal

char encoded_reveal[SR_REVEAL_BASE64_LEN+1]

◆ hashed_reveal

char hashed_reveal[DIGEST256_LEN]

Definition at line 88 of file shared_random.h.

◆ random_number

uint8_t random_number[SR_RANDOM_NUMBER_LEN]

H(RN) which is what we used as the random value for this commit. We don't use the raw bytes since those are sent on the network thus avoiding possible information leaks of our PRNG.

Definition at line 97 of file shared_random.h.

Referenced by reveal_decode(), reveal_encode(), sr_commit_free_(), sr_generate_our_commit(), and sr_state_copy_reveal_info().

◆ reveal_ts

uint64_t reveal_ts

Timestamp of reveal. Correspond to TIMESTAMP.

Definition at line 86 of file shared_random.h.

Referenced by commit_log(), reveal_decode(), reveal_encode(), sr_generate_our_commit(), sr_state_copy_reveal_info(), and verify_commit_and_reveal().

◆ rsa_identity

char rsa_identity[DIGEST_LEN]

The RSA identity key of the authority and its base16 representation, which includes the NUL terminated byte.

Definition at line 80 of file shared_random.h.

Referenced by commit_add_to_state(), commit_is_authoritative(), commit_new(), save_commit_during_reveal_phase(), and should_keep_commit().

◆ rsa_identity_hex

char rsa_identity_hex[HEX_DIGEST_LEN+1]

Definition at line 81 of file shared_random.h.

◆ valid

unsigned int valid

Indicate if this commit has been verified thus valid.

Definition at line 74 of file shared_random.h.

Referenced by disk_state_parse_commits(), and sr_generate_our_commit().


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