pub struct PoseidonDefaultParametersEntry {
pub rate: usize,
pub alpha: usize,
pub full_rounds: usize,
pub partial_rounds: usize,
pub skip_matrices: usize,
}
Expand description
An entry in the default Poseidon parameters
Fields§
§rate: usize
The rate (in terms of number of field elements).
alpha: usize
Exponent used in S-boxes.
full_rounds: usize
Number of rounds in a full-round operation.
partial_rounds: usize
Number of rounds in a partial-round operation.
skip_matrices: usize
Number of matrices to skip when generating parameters using the Grain LFSR.
The matrices being skipped are those that do not satisfy all the desired properties. See the reference implementation for more detail.
Implementations§
Auto Trait Implementations§
impl Freeze for PoseidonDefaultParametersEntry
impl RefUnwindSafe for PoseidonDefaultParametersEntry
impl Send for PoseidonDefaultParametersEntry
impl Sync for PoseidonDefaultParametersEntry
impl Unpin for PoseidonDefaultParametersEntry
impl UnwindSafe for PoseidonDefaultParametersEntry
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> 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