pub enum SecretShare {
Random {
from_addr: String,
to_addr: Option<String>,
random_id: RandomId,
index: usize,
secret: Vec<u8>,
},
Answer {
from_addr: String,
decision_id: DecisionId,
secret: Vec<u8>,
},
}Variants§
Implementations§
pub fn new_for_random( random_id: RandomId, index: usize, from_addr: Addr, to_addr: Option<Addr>, secret: SecretKey, ) -> Self
pub fn new_for_answer( decision_id: DecisionId, from_addr: Addr, secret: SecretKey, ) -> Self
Trait Implementations§
Source§fn clone(&self) -> SecretShare
fn clone(&self) -> SecretShare
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