Trait frost_schnorrkel::frost::sign::PreprocessMachine

source ·
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>(self, rng: &mut R) -> (Self::SignMachine, Self::Preprocess)
       where R: RngCore + CryptoRng;
}
Expand description

Trait for the initial state machine of a two-round signing protocol.

Required Associated Types§

source

type Preprocess: Clone + PartialEq + Writable

Preprocess message for this machine.

source

type Signature: Clone + PartialEq + Debug

Signature produced by this machine.

source

type SignMachine: SignMachine<Self::Signature, Preprocess = Self::Preprocess>

SignMachine this PreprocessMachine turns into.

Required Methods§

source

fn preprocess<R>(self, rng: &mut R) -> (Self::SignMachine, Self::Preprocess)
where R: RngCore + CryptoRng,

Perform the preprocessing round required in order to sign. Returns a preprocess message to be broadcast to all participants, over an authenticated channel.

Object Safety§

This trait is not object safe.

Implementors§