Struct light_poseidon::PoseidonParameters
source · pub struct PoseidonParameters<F: PrimeField> {
pub ark: Vec<F>,
pub mds: Vec<Vec<F>>,
pub full_rounds: usize,
pub partial_rounds: usize,
pub width: usize,
pub alpha: u64,
}
Expand description
Parameters for the Poseidon hash algorithm.
Fields§
§ark: Vec<F>
Round constants.
mds: Vec<Vec<F>>
MDS matrix.
full_rounds: usize
Number of full rounds (where S-box is applied to all elements of the state).
partial_rounds: usize
Number of partial rounds (where S-box is applied only to the first element of the state).
width: usize
Number of prime fields in the state.
alpha: u64
Exponential used in S-box to power elements of the state.
Implementations§
Auto 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