[][src]Struct fawkes_crypto_powersoftau::parameters::CeremonyParams

pub struct CeremonyParams<E> {
    pub curve: CurveParams<E>,
    pub powers_g1_length: usize,
    pub powers_length: usize,
    pub size: usize,
    pub batch_size: usize,
    pub public_key_size: usize,
    pub accumulator_size: usize,
    pub contribution_size: usize,
    pub hash_size: usize,
}

The parameters used for the trusted setup ceremony

Fields

curve: CurveParams<E>

The type of the curve being used (currently only supports BN256)

powers_g1_length: usize

The number of Powers of Tau G1 elements which will be accumulated

powers_length: usize

The number of Powers of Tau Alpha/Beta/G2 elements which will be accumulated

size: usize

The circuit size exponent (ie length will be 2^size), depends on the computation you want to support

batch_size: usize

The empirical batch size for the batched accumulator. This is a hyper parameter and may be different for each curve.

public_key_size: usizeaccumulator_size: usize

Total size of the accumulator used for the ceremony

contribution_size: usize

Total size of the contribution

hash_size: usize

Size of the hash of the previous contribution

Implementations

impl<E: Engine> CeremonyParams<E>[src]

pub fn new(size: usize, batch_size: usize) -> Self[src]

Constructs a new ceremony parameters object from the type of provided curve

pub fn new_with_curve(
    curve: CurveParams<E>,
    size: usize,
    batch_size: usize
) -> Self
[src]

Constructs a new ceremony parameters object from the directly provided curve with parameters Consider using the new method if you want to use one of the pre-implemented curves

Trait Implementations

impl<E: Clone> Clone for CeremonyParams<E>[src]

impl<E: Eq> Eq for CeremonyParams<E>[src]

impl<E: PartialEq> PartialEq<CeremonyParams<E>> for CeremonyParams<E>[src]

impl<E> StructuralEq for CeremonyParams<E>[src]

impl<E> StructuralPartialEq for CeremonyParams<E>[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for CeremonyParams<E> where
    E: RefUnwindSafe

impl<E> Send for CeremonyParams<E> where
    E: Send

impl<E> Sync for CeremonyParams<E> where
    E: Sync

impl<E> Unpin for CeremonyParams<E> where
    E: Unpin

impl<E> UnwindSafe for CeremonyParams<E> where
    E: 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[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.