pub struct KeyGenDriver { /* private fields */ }
Available on crate feature
frost-ed25519
only.Expand description
FROST keygen driver.
Implementations§
Source§impl KeyGenDriver
impl KeyGenDriver
Sourcepub fn new(
party_number: NonZeroU16,
max_signers: u16,
min_signers: u16,
identifiers: Vec<Identifier>,
) -> Result<Self>
pub fn new( party_number: NonZeroU16, max_signers: u16, min_signers: u16, identifiers: Vec<Identifier>, ) -> Result<Self>
Create a key generator.
Trait Implementations§
Source§impl ProtocolDriver for KeyGenDriver
impl ProtocolDriver for KeyGenDriver
Source§type Error = Error
type Error = Error
Available on crate features
cggmp
or frost-ed25519
only.Error type for results.
Source§type Message = RoundMessage<DkgPackage, Identifier<Ed25519Sha512>>
type Message = RoundMessage<DkgPackage, Identifier<Ed25519Sha512>>
Available on crate features
cggmp
or frost-ed25519
only.Outgoing message type.
Source§type Output = (KeyPackage<Ed25519Sha512>, PublicKeyPackage<Ed25519Sha512>)
type Output = (KeyPackage<Ed25519Sha512>, PublicKeyPackage<Ed25519Sha512>)
Available on crate features
cggmp
or frost-ed25519
only.Output when the protocol is completed.
Source§fn round_info(&self) -> Result<RoundInfo>
fn round_info(&self) -> Result<RoundInfo>
Available on crate features
cggmp
or frost-ed25519
only.Information about the current round for the driver.
Source§fn proceed(&mut self) -> Result<Vec<Self::Message>>
fn proceed(&mut self) -> Result<Vec<Self::Message>>
Available on crate features
cggmp
or frost-ed25519
only.Proceed to the next round.
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