snarkvm_fields::traits

Trait PoseidonDefaultParameters

Source
pub trait PoseidonDefaultParameters {
    const PARAMS_OPT_FOR_CONSTRAINTS: [PoseidonDefaultParametersEntry; 7];
}
Expand description

A trait for default Poseidon parameters associated with a prime field

Required Associated Constants§

Source

const PARAMS_OPT_FOR_CONSTRAINTS: [PoseidonDefaultParametersEntry; 7]

An array of the parameters optimized for constraints (rate, alpha, full_rounds, partial_rounds, skip_matrices) for rate = 2, 3, 4, 5, 6, 7, 8

Here, skip_matrices denote how many matrices to skip before finding one that satisfy all the requirements.

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.

Implementors§