Struct poseidon_parameters::InputParameters
source · pub struct InputParameters<T: BigInteger> {
pub allow_inverse: bool,
pub M: usize,
pub t: usize,
pub p: T,
pub log_2_p: f64,
}
Expand description
Input parameters that are used to generate Poseidon parameters.
Fields§
§allow_inverse: bool
Whether or not to allow inverse alpha.
M: usize
Security level in bits.
t: usize
Width of desired hash function, e.g. $t=3$ corresponds to 2-to-1 hash.
p: T
Modulus of the prime field.
log_2_p: f64
log_2(p)
Trait Implementations§
source§impl<T: Clone + BigInteger> Clone for InputParameters<T>
impl<T: Clone + BigInteger> Clone for InputParameters<T>
source§fn clone(&self) -> InputParameters<T>
fn clone(&self) -> InputParameters<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> RefUnwindSafe for InputParameters<T>where T: RefUnwindSafe,
impl<T> Send for InputParameters<T>
impl<T> Sync for InputParameters<T>
impl<T> Unpin for InputParameters<T>where T: Unpin,
impl<T> UnwindSafe for InputParameters<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more