pub fn phase(&self) -> Result<Phase, Error> {
        if let Some(ref key_gen) = self.inner.lock().unwrap().key_gen {
            Ok(key_gen.phase())
        } else {
            Err(Error::QuicP2P("NO DKG INSTANCE FOUND".to_string()))
        }
    }
/// Returns the Phase the Node is at.
Returns the Phase the Node is at.
Returns the Phase the Node is at .
pub fn phase(&self) -> Result<Phase, Error> {
        if let Some(ref key_gen) = self.inner.lock().unwrap().key_gen {
            Ok(key_gen.phase())
        } else {
            Err(Error::QuicP2P("NO DKG INSTANCE FOUND".to_string()))
        }
    }
pub fn phase ( & self ) -> Result < Phase , Error > { if let Some ( ref key_gen ) = self . inner . lock ( ) . unwrap ( ) . key_gen { Ok ( key_gen . phase ( ) ) } else { Err ( Error :: QuicP2P ( " " . to_string ( ) ) ) } }
Returns the Phase the Node is at.
Returns the Phase the Node is at .
&self