GroupInfoUpdater

Trait GroupInfoUpdater 

Source
pub trait GroupInfoUpdater<C: Curve> {
    // Required methods
    fn save_task_info<'life0, 'async_trait>(
        &'life0 mut self,
        self_index: usize,
        task: DKGTask,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn save_successful_output<'life0, 'async_trait>(
        &'life0 mut self,
        index: usize,
        epoch: usize,
        output: DKGOutput<C>,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<(C::Point, C::Point, Vec<Address>)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn save_failed_output<'life0, 'async_trait>(
        &'life0 mut self,
        index: usize,
        epoch: usize,
        disqualified_node_indices: Vec<u32>,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<Vec<Address>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_dkg_status<'life0, 'async_trait>(
        &'life0 mut self,
        index: usize,
        epoch: usize,
        dkg_status: DKGStatus,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn save_committers<'life0, 'async_trait>(
        &'life0 mut self,
        index: usize,
        epoch: usize,
        committer_indices: Vec<Address>,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sync_up_members<'life0, 'async_trait>(
        &'life0 mut self,
        index: usize,
        epoch: usize,
        members: BTreeMap<Address, Member<C>>,
    ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn save_task_info<'life0, 'async_trait>( &'life0 mut self, self_index: usize, task: DKGTask, ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn save_successful_output<'life0, 'async_trait>( &'life0 mut self, index: usize, epoch: usize, output: DKGOutput<C>, ) -> Pin<Box<dyn Future<Output = DataAccessResult<(C::Point, C::Point, Vec<Address>)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn save_failed_output<'life0, 'async_trait>( &'life0 mut self, index: usize, epoch: usize, disqualified_node_indices: Vec<u32>, ) -> Pin<Box<dyn Future<Output = DataAccessResult<Vec<Address>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_dkg_status<'life0, 'async_trait>( &'life0 mut self, index: usize, epoch: usize, dkg_status: DKGStatus, ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn save_committers<'life0, 'async_trait>( &'life0 mut self, index: usize, epoch: usize, committer_indices: Vec<Address>, ) -> Pin<Box<dyn Future<Output = DataAccessResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sync_up_members<'life0, 'async_trait>( &'life0 mut self, index: usize, epoch: usize, members: BTreeMap<Address, Member<C>>, ) -> Pin<Box<dyn Future<Output = DataAccessResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§