[][src]Struct bls_dkg::member::Member

pub struct Member { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,