pub trait Domain<F: FieldExt, const RATE: usize> {
    type Padding: IntoIterator<Item = F>;

    fn name() -> String;
    fn initial_capacity_element() -> F;
    fn padding(input_len: usize) -> Self::Padding;
}
Expand description

A domain in which a Poseidon hash function is being used.

Required Associated Types

Iterator that outputs padding field elements.

Required Methods

The name of this domain, for debug formatting purposes.

The initial capacity element, encoding this domain.

Returns the padding to be appended to the input.

Implementors