pub struct Node<C: Curve>(/* private fields */);Expand description
Node is a participant in the DKG protocol. In a DKG protocol, each participant must be identified both by an index and a public key. At the end of the protocol, if sucessful, the index is used to verify the validity of the share this node holds.
Implementations§
Trait Implementations§
Source§impl<'de, C: Curve> Deserialize<'de> for Node<C>where
C::Point: Deserialize<'de>,
impl<'de, C: Curve> Deserialize<'de> for Node<C>where
C::Point: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<C: Curve> StructuralPartialEq for Node<C>
Auto Trait Implementations§
impl<C> Freeze for Node<C>
impl<C> RefUnwindSafe for Node<C>
impl<C> Send for Node<C>
impl<C> Sync for Node<C>
impl<C> Unpin for Node<C>
impl<C> UnwindSafe for Node<C>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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