pub trait DKGPhase<C: Curve, B: BoardPublisher<C>, T> {
type Next: Send;
// Required method
fn run<'life0, 'async_trait>(
self,
board: &'life0 mut B,
arg: T,
) -> Pin<Box<dyn Future<Output = Result<Self::Next, DKGNodeError>> + Send + 'async_trait>>
where C: 'async_trait,
T: 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A DKG Phase.
Required Associated Types§
Required Methods§
Sourcefn run<'life0, 'async_trait>(
self,
board: &'life0 mut B,
arg: T,
) -> Pin<Box<dyn Future<Output = Result<Self::Next, DKGNodeError>> + Send + 'async_trait>>where
C: 'async_trait,
T: 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
self,
board: &'life0 mut B,
arg: T,
) -> Pin<Box<dyn Future<Output = Result<Self::Next, DKGNodeError>> + Send + 'async_trait>>where
C: 'async_trait,
T: 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Executes this DKG Phase and publishes the required result to the board.
The arg is specific to each phase.