Struct cryptid::threshold::ThresholdGenerator [−][src]
pub struct ThresholdGenerator { /* fields omitted */ }Implementations
impl ThresholdGenerator[src]
impl ThresholdGenerator[src]pub fn new<R: Rng + CryptoRng>(
rng: &mut R,
index: usize,
min_trustees: usize,
trustee_count: usize
) -> Self[src]
rng: &mut R,
index: usize,
min_trustees: usize,
trustee_count: usize
) -> Self
pub fn get_commitment(&self) -> KeygenCommitment[src]
pub fn get_polynomial_share(&self, index: usize) -> Result<Scalar, CryptoError>[src]
pub fn receive_commitment(
&mut self,
sender_id: usize,
commitment: &KeygenCommitment
) -> Result<(), CryptoError>[src]
&mut self,
sender_id: usize,
commitment: &KeygenCommitment
) -> Result<(), CryptoError>
pub fn received_commitments(&self) -> bool[src]
pub fn receive_share(
&mut self,
sender_id: usize,
share: &Scalar
) -> Result<(), CryptoError>[src]
&mut self,
sender_id: usize,
share: &Scalar
) -> Result<(), CryptoError>
pub fn index(&self) -> usize[src]
pub fn min_trustees(&self) -> usize[src]
pub fn trustee_count(&self) -> usize[src]
Trait Implementations
impl Threshold for ThresholdGenerator[src]
impl Threshold for ThresholdGenerator[src]type Error = CryptoError
type Destination = ThresholdParty
fn is_complete(&self) -> bool[src]
fn finish(&self) -> Result<ThresholdParty, CryptoError>[src]
Auto Trait Implementations
impl RefUnwindSafe for ThresholdGenerator
impl Send for ThresholdGenerator
impl Sync for ThresholdGenerator
impl Unpin for ThresholdGenerator
impl UnwindSafe for ThresholdGenerator
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T[src]
impl<T> Pointable for T[src]