Struct poseidon_parameters::v2::PoseidonParameters
source · pub struct PoseidonParameters<F: PrimeField> {
pub M: usize,
pub t: usize,
pub alpha: Alpha,
pub rounds: RoundNumbers,
pub m_e: SquareMatrix<F>,
pub m_i: SquareMatrix<F>,
pub arc: ArcMatrix<F>,
}Expand description
A set of Poseidon2 parameters for a given set of input parameters.
Fields§
§M: usizeSecurity level.
t: usizeWidth of desired hash function, e.g. $t=3$ corresponds to a 2-to-1 hash.
alpha: AlphaExponent of the Sbox, i.e. S-box(x) = x^{\alpha} used in the SubWords step
rounds: RoundNumbersRound numbers
m_e: SquareMatrix<F>External matrix
m_i: SquareMatrix<F>Internal matrix
arc: ArcMatrix<F>Round constants
Trait Implementations§
source§impl<F: Clone + PrimeField> Clone for PoseidonParameters<F>
impl<F: Clone + PrimeField> Clone for PoseidonParameters<F>
source§fn clone(&self) -> PoseidonParameters<F>
fn clone(&self) -> PoseidonParameters<F>
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<F> RefUnwindSafe for PoseidonParameters<F>where F: RefUnwindSafe,
impl<F> Send for PoseidonParameters<F>
impl<F> Sync for PoseidonParameters<F>
impl<F> Unpin for PoseidonParameters<F>where F: Unpin,
impl<F> UnwindSafe for PoseidonParameters<F>where F: 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