pub struct SignatureDriver<P>where
P: SchemeParams + 'static,{ /* private fields */ }
Available on crate feature
cggmp
only.Expand description
CGGMP signature driver.
Implementations§
Source§impl<P> SignatureDriver<P>where
P: SchemeParams + 'static,
impl<P> SignatureDriver<P>where
P: SchemeParams + 'static,
Sourcepub fn new(
session_id: SessionId,
signer: SigningKey,
verifiers: Vec<VerifyingKey>,
key_share: &KeyShare<P, VerifyingKey>,
aux_info: &AuxInfo<P, VerifyingKey>,
prehashed_message: &PrehashedMessage,
) -> Result<Self>
pub fn new( session_id: SessionId, signer: SigningKey, verifiers: Vec<VerifyingKey>, key_share: &KeyShare<P, VerifyingKey>, aux_info: &AuxInfo<P, VerifyingKey>, prehashed_message: &PrehashedMessage, ) -> Result<Self>
Create a driver.
Trait Implementations§
Source§impl<P> ProtocolDriver for SignatureDriver<P>where
P: SchemeParams + 'static,
impl<P> ProtocolDriver for SignatureDriver<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 = RoundMsg<MessageBundle<Signature<Secp256k1>>, VerifyingKey<Secp256k1>>
type Message = RoundMsg<MessageBundle<Signature<Secp256k1>>, VerifyingKey<Secp256k1>>
Available on crate features
cggmp
or frost-ed25519
only.Outgoing message type.
Source§type Output = RecoverableSignature
type Output = RecoverableSignature
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 SignatureDriver<P>
impl<P> !RefUnwindSafe for SignatureDriver<P>
impl<P> Send for SignatureDriver<P>
impl<P> !Sync for SignatureDriver<P>
impl<P> Unpin for SignatureDriver<P>
impl<P> !UnwindSafe for SignatureDriver<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