pub struct KeyRefreshDriver<P>where
P: SchemeParams + 'static,{ /* private fields */ }
Available on crate feature
cggmp
only.Expand description
CGGMP keygen driver.
Implementations§
Source§impl<P> KeyRefreshDriver<P>where
P: SchemeParams + 'static,
impl<P> KeyRefreshDriver<P>where
P: SchemeParams + 'static,
Sourcepub fn new(
session_id: SessionId,
signer: SigningKey,
verifiers: Vec<VerifyingKey>,
) -> Result<Self>
pub fn new( session_id: SessionId, signer: SigningKey, verifiers: Vec<VerifyingKey>, ) -> Result<Self>
Create a key init generator.
Trait Implementations§
Source§impl<P> ProtocolDriver for KeyRefreshDriver<P>where
P: SchemeParams + 'static,
impl<P> ProtocolDriver for KeyRefreshDriver<P>where
P: SchemeParams + 'static,
Source§type Error = Error
type Error = Error
Available on crate features
cggmp
or frost-ed25519
only.Error type for results.
Source§type Message = RoundMessage<MessageBundle<Signature<Secp256k1>>, VerifyingKey<Secp256k1>>
type Message = RoundMessage<MessageBundle<Signature<Secp256k1>>, VerifyingKey<Secp256k1>>
Available on crate features
cggmp
or frost-ed25519
only.Outgoing message type.
Source§type Output = (KeyShareChange<P, VerifyingKey<Secp256k1>>, AuxInfo<P, VerifyingKey<Secp256k1>>)
type Output = (KeyShareChange<P, VerifyingKey<Secp256k1>>, AuxInfo<P, VerifyingKey<Secp256k1>>)
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<P> Freeze for KeyRefreshDriver<P>
impl<P> !RefUnwindSafe for KeyRefreshDriver<P>
impl<P> Send for KeyRefreshDriver<P>
impl<P> !Sync for KeyRefreshDriver<P>
impl<P> Unpin for KeyRefreshDriver<P>
impl<P> !UnwindSafe for KeyRefreshDriver<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