polysig_driver::cggmp

Struct KeyRefreshDriver

Source
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,

Source

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,

Source§

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>>

Available on crate features cggmp or frost-ed25519 only.
Outgoing message type.
Source§

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>

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>>

Available on crate features cggmp or frost-ed25519 only.
Proceed to the next round.
Source§

fn handle_incoming(&mut self, message: Self::Message) -> Result<()>

Available on crate features cggmp or frost-ed25519 only.
Handle an incoming message.
Source§

fn try_finalize_round(&mut self) -> Result<Option<Self::Output>>

Available on crate features cggmp or frost-ed25519 only.
Try to finalize a round if the protocol is completed the result is returned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V