pub struct KeyGenDriver { /* private fields */ }
Expand description
FROST Ed25519 key generation driver.
Implementations§
Source§impl KeyGenDriver
impl KeyGenDriver
Sourcepub fn new(
transport: Transport,
session: SessionState,
max_signers: u16,
min_signers: u16,
identifiers: Vec<Identifier>,
) -> Result<Self>
pub fn new( transport: Transport, session: SessionState, max_signers: u16, min_signers: u16, identifiers: Vec<Identifier>, ) -> Result<Self>
Create a new FROST key generator.
Trait Implementations§
Source§impl Driver for KeyGenDriver
impl Driver for KeyGenDriver
Source§type Output = (KeyPackage<Ed25519Sha512>, PublicKeyPackage<Ed25519Sha512>)
type Output = (KeyPackage<Ed25519Sha512>, PublicKeyPackage<Ed25519Sha512>)
Output yielded when the driver completes.
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 From<KeyGenDriver> for Transport
impl From<KeyGenDriver> for Transport
Source§fn from(value: KeyGenDriver) -> Self
fn from(value: KeyGenDriver) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyGenDriver
impl !RefUnwindSafe for KeyGenDriver
impl Send for KeyGenDriver
impl Sync for KeyGenDriver
impl Unpin for KeyGenDriver
impl !UnwindSafe for KeyGenDriver
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