Struct commonware_cryptography::bls12381::dkg::contributor::P1
source · pub struct P1 { /* private fields */ }Expand description
Track commitments distributed by dealers.
Implementations§
source§impl P1
impl P1
sourcepub fn new(
me: PublicKey,
threshold: u32,
previous: Option<Public>,
dealers: Vec<PublicKey>,
recipients: Vec<PublicKey>,
concurrency: usize,
) -> Self
pub fn new( me: PublicKey, threshold: u32, previous: Option<Public>, dealers: Vec<PublicKey>, recipients: Vec<PublicKey>, concurrency: usize, ) -> Self
Create a new contributor for a DKG/Resharing procedure.
sourcepub fn commitment(
&mut self,
dealer: PublicKey,
commitment: Public,
) -> Result<(), Error>
pub fn commitment( &mut self, dealer: PublicKey, commitment: Public, ) -> Result<(), Error>
Verify and track a commitment from a dealer.
Auto Trait Implementations§
impl !Freeze for P1
impl RefUnwindSafe for P1
impl Send for P1
impl Sync for P1
impl Unpin for P1
impl UnwindSafe for P1
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more