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

Create an entry in PoseidonDefaultParameters.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more