Skip to main content

SymInstance

Trait SymInstance 

Source
pub trait SymInstance: Sealed {
    // Required methods
    fn num_scalars() -> usize;
    fn num_points() -> usize;
    fn from_values(
        scalars: &[Scalar],
        points: &[RistrettoPoint],
    ) -> SigmaProofResult<Self>
       where Self: Sized;
    fn get_field_names() -> Vec<&'static str>;
    fn points(&self) -> Vec<SymPoint>;
    fn scalars(&self) -> Vec<SymScalar>;
}

Required Methods§

Source

fn num_scalars() -> usize

Source

fn num_points() -> usize

Source

fn from_values( scalars: &[Scalar], points: &[RistrettoPoint], ) -> SigmaProofResult<Self>
where Self: Sized,

Source

fn get_field_names() -> Vec<&'static str>

Source

fn points(&self) -> Vec<SymPoint>

Source

fn scalars(&self) -> Vec<SymScalar>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§