Trait frost_schnorrkel::frost::sign::Writable

source ·
pub trait Writable {
    // Required method
    fn write<W>(&self, writer: &mut W) -> Result<(), Error>
       where W: Write;

    // Provided method
    fn serialize(&self) -> Vec<u8> { ... }
}
Expand description

Trait enabling writing preprocesses and signature shares.

Required Methods§

source

fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write,

Provided Methods§

source

fn serialize(&self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Writable for Vec<T>
where T: Writable,

source§

fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write,

Implementors§

source§

impl<C> Writable for SignatureShare<C>
where C: Curve,

source§

impl<C, A> Writable for Preprocess<C, A>
where C: Curve, A: Addendum,