pub struct SharedRandomness {
pub num_reveals: u32,
pub value: String,
}Expand description
Shared randomness value from directory authority collaboration.
Directory authorities collaboratively generate random values that are used for hidden service directory assignment. Each consensus includes the current and previous shared randomness values.
§Fields
num_reveals: Number of authorities that revealed their commitmentvalue: The base64-encoded random value
Fields§
§num_reveals: u32Number of authorities that participated in the reveal phase.
value: StringThe shared random value (base64-encoded).
Trait Implementations§
Source§fn clone(&self) -> SharedRandomness
fn clone(&self) -> SharedRandomness
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more