pub struct SignatureDriver { /* private fields */ }
Available on crate feature
frost-ed25519
only.Expand description
FROST signature driver.
Implementations§
Source§impl SignatureDriver
impl SignatureDriver
Sourcepub fn new(
party_number: NonZeroU16,
identifiers: Vec<Identifier>,
min_signers: u16,
key_share: KeyShare,
message: Vec<u8>,
) -> Result<Self>
pub fn new( party_number: NonZeroU16, identifiers: Vec<Identifier>, min_signers: u16, key_share: KeyShare, message: Vec<u8>, ) -> Result<Self>
Create a driver.
Trait Implementations§
Source§impl ProtocolDriver for SignatureDriver
impl ProtocolDriver for SignatureDriver
Source§type Error = Error
type Error = Error
Available on crate features
cggmp
or frost-ed25519
only.Error type for results.
Source§type Message = RoundMsg<SignPackage, Identifier<Ed25519Sha512>>
type Message = RoundMsg<SignPackage, Identifier<Ed25519Sha512>>
Available on crate features
cggmp
or frost-ed25519
only.Outgoing message type.
Source§type Output = Signature<Ed25519Sha512>
type Output = Signature<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 SignatureDriver
impl RefUnwindSafe for SignatureDriver
impl Send for SignatureDriver
impl Sync for SignatureDriver
impl Unpin for SignatureDriver
impl UnwindSafe for SignatureDriver
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