pub trait CeremonyCoordinatorService: Send + Sync + 'static {
    type ParticipateStream: Stream<Item = Result<ParticipateResponse, Status>> + Send + 'static;

    // Required method
    fn participate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<ParticipateRequest>>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ParticipateStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature rpc only.
Expand description

Generated trait containing gRPC methods that should be implemented for use with CeremonyCoordinatorServiceServer.

Required Associated Types§

source

type ParticipateStream: Stream<Item = Result<ParticipateResponse, Status>> + Send + 'static

Server streaming response type for the Participate method.

Required Methods§

source

fn participate<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<ParticipateRequest>> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ParticipateStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The protocol used to participate in the ceremony.

The message flow is

Client                     Server
Identify     ===========>
             <=========== Position (repeated)
             <=========== ContributeNow
Contribution ===========>
             <=========== Confirm

Implementors§