pub struct KeyInitDriver<P>where
P: SchemeParams + 'static,{ /* private fields */ }
Expand description
CGGMP key initialization driver.
Implementations§
Source§impl<P> KeyInitDriver<P>where
P: SchemeParams + 'static,
impl<P> KeyInitDriver<P>where
P: SchemeParams + 'static,
Sourcepub fn new(
transport: Transport,
session: SessionState,
session_id: SessionId,
signer: SigningKey,
verifiers: Vec<VerifyingKey>,
) -> Result<Self>
pub fn new( transport: Transport, session: SessionState, session_id: SessionId, signer: SigningKey, verifiers: Vec<VerifyingKey>, ) -> Result<Self>
Create a new CGGMP key generator.
Trait Implementations§
Source§impl<P> Driver for KeyInitDriver<P>where
P: SchemeParams + 'static,
impl<P> Driver for KeyInitDriver<P>where
P: SchemeParams + 'static,
Source§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 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.
Source§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 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.
Source§fn into_transport(self) -> Transport
fn into_transport(self) -> Transport
Consume this driver into the underlying transport.
Source§impl<P> From<KeyInitDriver<P>> for Transportwhere
P: SchemeParams + 'static,
impl<P> From<KeyInitDriver<P>> for Transportwhere
P: SchemeParams + 'static,
Source§fn from(value: KeyInitDriver<P>) -> Self
fn from(value: KeyInitDriver<P>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for KeyInitDriver<P>
impl<P> !RefUnwindSafe for KeyInitDriver<P>
impl<P> Send for KeyInitDriver<P>
impl<P> !Sync for KeyInitDriver<P>
impl<P> Unpin for KeyInitDriver<P>
impl<P> !UnwindSafe for KeyInitDriver<P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more