fedimint_core::config

Trait SGroup

Source
pub trait SGroup: Sized {
    // Required methods
    fn serialize2<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>;
    fn deserialize2<'d, D: Deserializer<'d>>(d: D) -> Result<Self, D::Error>;
}

Required Methods§

Source

fn serialize2<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Source

fn deserialize2<'d, D: Deserializer<'d>>(d: D) -> Result<Self, D::Error>

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.

Implementations on Foreign Types§

Source§

impl SGroup for G1Projective

Source§

fn serialize2<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Source§

fn deserialize2<'d, D: Deserializer<'d>>(d: D) -> Result<Self, D::Error>

Source§

impl SGroup for G2Projective

Source§

fn serialize2<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Source§

fn deserialize2<'d, D: Deserializer<'d>>(d: D) -> Result<Self, D::Error>

Implementors§