pub struct Poseidon2Params<F: PrimeField> { /* private fields */ }Implementations§
Source§impl<F: PrimeField> Poseidon2Params<F>
impl<F: PrimeField> Poseidon2Params<F>
pub const INIT_SHAKE: &'static str = "Poseidon2"
pub fn new( t: usize, d: usize, rounds_f: usize, rounds_p: usize, mat_internal_diag_m_1: &[F], mat_internal: &[Vec<F>], round_constants: &[Vec<F>], ) -> Self
pub fn equivalent_round_constants( round_constants: &[Vec<F>], mat_internal: &[Vec<F>], rounds_f_beginning: usize, rounds_p: usize, ) -> Vec<Vec<F>>
pub fn mat_vec_mul(mat: &[Vec<F>], input: &[F]) -> Vec<F>
Trait Implementations§
Source§impl<F: Clone + PrimeField> Clone for Poseidon2Params<F>
impl<F: Clone + PrimeField> Clone for Poseidon2Params<F>
Source§fn clone(&self) -> Poseidon2Params<F>
fn clone(&self) -> Poseidon2Params<F>
Returns a duplicate 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> Freeze for Poseidon2Params<F>
impl<F> RefUnwindSafe for Poseidon2Params<F>where
F: RefUnwindSafe,
impl<F> Send for Poseidon2Params<F>
impl<F> Sync for Poseidon2Params<F>
impl<F> Unpin for Poseidon2Params<F>where
F: Unpin,
impl<F> UnwindSafe for Poseidon2Params<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more