pub trait PoseidonParams<F: PrimeField> {
const T: usize;
const D: u8;
const CAPACITY: usize;
const ROUNDS_F: usize;
const ROUNDS_P: usize;
const MAT_INTERNAL_DIAG_M_1: &'static [F];
const ROUND_CONSTANTS: &'static [&'static [F]];
}Expand description
Poseidon hash parameters.
Required Associated Constants§
Sourceconst CAPACITY: usize
const CAPACITY: usize
Capacity of the sponge construction. Determines the number of elements not affected directly by input or not reflected in the output of the sponge hash function.
Sourceconst MAT_INTERNAL_DIAG_M_1: &'static [F]
const MAT_INTERNAL_DIAG_M_1: &'static [F]
MDS (Maximum Distance Separable) matrix used in the Poseidon permutation.
Sourceconst ROUND_CONSTANTS: &'static [&'static [F]]
const ROUND_CONSTANTS: &'static [&'static [F]]
The round constants used in the full and partial rounds of the Poseidon permutation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.