[−][src]Struct bls_dkg::member::Member
Implementations
impl Member
[src]
pub fn new<R: RngCore>(config: Config, rng: &mut R) -> Result<Self, Error>
[src]
Setup a Member to start DKG
pub fn connect_to_group(&mut self, group: HashMap<NodeID, SocketAddr>)
[src]
Connects to every member in the given group
pub fn init_dkg(&mut self, threshold: usize) -> Result<Message, Error>
[src]
Initialize DKG with the connected nodes and returns back the proposal
pub fn broadcast(&mut self, msg: Message) -> Result<(), Error>
[src]
Broadcast given message to all the connected peers
pub fn start_timed_phase_transition(&mut self) -> Result<Vec<Message>, Error>
[src]
Begins timed phase transition
pub fn id(&self) -> NodeID
[src]
Fetches our NodeID
pub fn is_ready(&self) -> Result<bool, Error>
[src]
Check if our node is ready to generate Keys safely
pub fn close(&mut self)
[src]
Terminate the QUIC connections gracefully.
pub fn generate_keys(&self) -> Result<(BTreeSet<XorName>, Outcome), Error>
[src]
Generate keys from the key_gen
pub fn phase(&self) -> Result<Phase, Error>
[src]
Returns the Phase the Node is at.
Trait Implementations
impl Eq for Member
[src]
impl Ord for Member
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Member> for Member
[src]
impl PartialOrd<Member> for Member
[src]
Auto Trait Implementations
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnwindSafe for Member
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,