[−][src]Struct fawkes_crypto_powersoftau::parameters::CeremonyParams
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: usize
accumulator_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]
curve: CurveParams<E>,
size: usize,
batch_size: usize
) -> Self
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]
fn clone(&self) -> CeremonyParams<E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Eq> Eq for CeremonyParams<E>
[src]
impl<E: PartialEq> PartialEq<CeremonyParams<E>> for CeremonyParams<E>
[src]
fn eq(&self, other: &CeremonyParams<E>) -> bool
[src]
fn ne(&self, other: &CeremonyParams<E>) -> bool
[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,
E: RefUnwindSafe,
impl<E> Send for CeremonyParams<E> where
E: Send,
E: Send,
impl<E> Sync for CeremonyParams<E> where
E: Sync,
E: Sync,
impl<E> Unpin for CeremonyParams<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for CeremonyParams<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,