pub struct Info<V: Variant, P: PublicKey> { /* private fields */ }Expand description
Information about the current round of the DKG.
This is used to bind signatures to the current round, and to provide the information that dealers, players, and observers need to perform their actions.
Implementations§
Source§impl<V: Variant, P: PublicKey> Info<V, P>
impl<V: Variant, P: PublicKey> Info<V, P>
Sourcepub fn new(
namespace: &[u8],
round: u64,
previous: Option<Output<V, P>>,
mode: Mode,
dealers: Set<P>,
players: Set<P>,
) -> Result<Self, Error>
pub fn new( namespace: &[u8], round: u64, previous: Option<Output<V, P>>, mode: Mode, dealers: Set<P>, players: Set<P>, ) -> Result<Self, Error>
Create a new Info.
namespace must be provided to isolate different applications
performing DKGs from each other.
round should be a counter, always incrementing, even for failed DKGs.
previous should be the result of the previous successful DKG.
dealers should be the list of public keys for the dealers. This MUST
be a subset of the previous round’s players.
players should be the list of public keys for the players.
Trait Implementations§
Auto Trait Implementations§
impl<V, P> Freeze for Info<V, P>
impl<V, P> RefUnwindSafe for Info<V, P>
impl<V, P> Send for Info<V, P>
impl<V, P> Sync for Info<V, P>
impl<V, P> Unpin for Info<V, P>where
P: Unpin,
impl<V, P> UnwindSafe for Info<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> 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