[][src]Struct darktoken::parameters::Parameters

pub struct Parameters<R: RngInstance> {
    pub g1: G1Affine,
    pub hs: Vec<G1Affine>,
    pub g2: G2Affine,
    // some fields omitted
}

Fields

g1: G1Affinehs: Vec<G1Affine>g2: G2Affine

Methods

impl<R: RngInstance> Parameters<R>[src]

pub fn new(attributes_size: u32) -> Self[src]

pub fn random_scalar(&self) -> Scalar[src]

pub fn random_scalars(&self, n: usize) -> Vec<Scalar>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Parameters<R> where
    R: RefUnwindSafe

impl<R> Send for Parameters<R> where
    R: Send

impl<R> Sync for Parameters<R> where
    R: Sync

impl<R> Unpin for Parameters<R> where
    R: Unpin

impl<R> UnwindSafe for Parameters<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,