pub trait PreprocessMachine: Send {
type Preprocess: Clone + PartialEq + Writable;
type Signature: Clone + PartialEq + Debug;
type SignMachine: SignMachine<Self::Signature, Preprocess = Self::Preprocess>;
// Required method
fn preprocess<R: RngCore + CryptoRng>(
self,
rng: &mut R,
) -> (Self::SignMachine, Self::Preprocess);
}
Expand description
Trait for the initial state machine of a two-round signing protocol.
Required Associated Types§
Sourcetype Preprocess: Clone + PartialEq + Writable
type Preprocess: Clone + PartialEq + Writable
Preprocess message for this machine.
Sourcetype SignMachine: SignMachine<Self::Signature, Preprocess = Self::Preprocess>
type SignMachine: SignMachine<Self::Signature, Preprocess = Self::Preprocess>
SignMachine this PreprocessMachine turns into.
Required Methods§
Sourcefn preprocess<R: RngCore + CryptoRng>(
self,
rng: &mut R,
) -> (Self::SignMachine, Self::Preprocess)
fn preprocess<R: RngCore + CryptoRng>( self, rng: &mut R, ) -> (Self::SignMachine, Self::Preprocess)
Perform the preprocessing round required in order to sign. Returns a preprocess message to be broadcast to all participants, over an authenticated channel.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.