pub trait Driver {
type Output;
// Required methods
fn handle_event<'life0, 'async_trait>(
&'life0 mut self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn execute<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn into_transport(self) -> Transport;
}Expand description
Drives a protocol to completion bridging between the network transport and local computation.
Required Associated Types§
Required Methods§
Sourcefn handle_event<'life0, 'async_trait>(
&'life0 mut self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_event<'life0, 'async_trait>(
&'life0 mut self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle an incoming event.
Sourcefn execute<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start running the protocol.
Sourcefn into_transport(self) -> Transport
fn into_transport(self) -> Transport
Consume this driver into the underlying transport.
Implementors§
Source§impl Driver for polysig_client::frost::ed25519::KeyGenDriver
Available on crate feature frost-ed25519 only.
impl Driver for polysig_client::frost::ed25519::KeyGenDriver
Available on crate feature
frost-ed25519 only.Source§impl Driver for polysig_client::frost::ed25519::SignatureDriver
Available on crate feature frost-ed25519 only.
impl Driver for polysig_client::frost::ed25519::SignatureDriver
Available on crate feature
frost-ed25519 only.type Output = Signature<Ed25519Sha512>
Source§impl<P> Driver for AuxGenDriver<P>where
P: SchemeParams + 'static,
Available on crate feature cggmp only.
impl<P> Driver for AuxGenDriver<P>where
P: SchemeParams + 'static,
Available on crate feature
cggmp only.Source§impl<P> Driver for polysig_client::cggmp::KeyGenDriver<P>where
P: SchemeParams + 'static,
Available on crate feature cggmp only.
impl<P> Driver for polysig_client::cggmp::KeyGenDriver<P>where
P: SchemeParams + 'static,
Available on crate feature
cggmp only.type Output = (KeyShare<P, VerifyingKey<Secp256k1>>, AuxInfo<P, VerifyingKey<Secp256k1>>)
Source§impl<P> Driver for KeyInitDriver<P>where
P: SchemeParams + 'static,
Available on crate feature cggmp only.
impl<P> Driver for KeyInitDriver<P>where
P: SchemeParams + 'static,
Available on crate feature
cggmp only.Source§impl<P> Driver for KeyRefreshDriver<P>where
P: SchemeParams + 'static,
Available on crate feature cggmp only.
impl<P> Driver for KeyRefreshDriver<P>where
P: SchemeParams + 'static,
Available on crate feature
cggmp only.type Output = (KeyShareChange<P, VerifyingKey<Secp256k1>>, AuxInfo<P, VerifyingKey<Secp256k1>>)
Source§impl<P> Driver for KeyResharingDriver<P>where
P: SchemeParams + 'static,
Available on crate feature cggmp only.
impl<P> Driver for KeyResharingDriver<P>where
P: SchemeParams + 'static,
Available on crate feature
cggmp only.type Output = ThresholdKeyShare<P, VerifyingKey<Secp256k1>>
Source§impl<P> Driver for polysig_client::cggmp::SignatureDriver<P>where
P: SchemeParams + 'static,
Available on crate feature cggmp only.
impl<P> Driver for polysig_client::cggmp::SignatureDriver<P>where
P: SchemeParams + 'static,
Available on crate feature
cggmp only.