pub struct Output<V: Variant, P> { /* private fields */ }Expand description
The output of a successful DKG.
Implementations§
Source§impl<V: Variant, P: Ord> Output<V, P>
impl<V: Variant, P: Ord> Output<V, P>
Sourcepub fn quorum(&self) -> u32
pub fn quorum(&self) -> u32
Return the quorum, i.e. the number of players needed to reconstruct the key.
Sourcepub const fn public(&self) -> &Sharing<V>
pub const fn public(&self) -> &Sharing<V>
Get the public polynomial associated with this output.
This is useful for verifying partial signatures, with crate::bls12381::primitives::ops::partial_verify_message.
Sourcepub const fn dealers(&self) -> &Set<P>
pub const fn dealers(&self) -> &Set<P>
Return the dealers who were selected in this round of the DKG.
Trait Implementations§
Source§impl<V: Variant, P: PublicKey> EncodeSize for Output<V, P>
impl<V: Variant, P: PublicKey> EncodeSize for Output<V, P>
Source§fn encode_size(&self) -> usize
fn encode_size(&self) -> usize
Returns the encoded size of this value (in bytes).
Source§impl<V: Variant, P: PublicKey> Read for Output<V, P>
impl<V: Variant, P: PublicKey> Read for Output<V, P>
impl<V: Eq + Variant, P: Eq> Eq for Output<V, P>
impl<V: Variant, P> StructuralPartialEq for Output<V, P>
Auto Trait Implementations§
impl<V, P> Freeze for Output<V, P>
impl<V, P> RefUnwindSafe for Output<V, P>
impl<V, P> Send for Output<V, P>where
P: Send,
impl<V, P> Sync for Output<V, P>where
P: Sync,
impl<V, P> Unpin for Output<V, P>where
P: Unpin,
impl<V, P> UnwindSafe for Output<V, P>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Encode for Twhere
T: Write + EncodeSize,
impl<T> Encode for Twhere
T: Write + EncodeSize,
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