Trait sda_client::Receiving
[−]
[src]
pub trait Receiving { fn upload_aggregation(&self,
aggregation: &Aggregation)
-> SdaClientResult<()>; fn begin_aggregation(&self,
aggregation: &AggregationId)
-> SdaClientResult<()>; fn end_aggregation(&self,
aggregation: &AggregationId)
-> SdaClientResult<()>; fn reveal_aggregation(&self,
aggregation: &AggregationId)
-> SdaClientResult<RecipientOutput>; }
Basic tasks typically performed by a recipient.
Required Methods
fn upload_aggregation(&self, aggregation: &Aggregation) -> SdaClientResult<()>
Upload aggregation to service.
fn begin_aggregation(&self, aggregation: &AggregationId) -> SdaClientResult<()>
Opens the aggregation for participations.
Assigns a service chosen committee to the aggregation if none if elected already.
fn end_aggregation(&self, aggregation: &AggregationId) -> SdaClientResult<()>
Closes the aggregation for participations.
fn reveal_aggregation(&self,
aggregation: &AggregationId)
-> SdaClientResult<RecipientOutput>
aggregation: &AggregationId)
-> SdaClientResult<RecipientOutput>
Downloads result from service and decrypts it.
Implementors
impl Receiving for SdaClient