Trait halo2_gadgets::primitives::poseidon::Domain
source · [−]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
type Padding: IntoIterator<Item = F>
type Padding: IntoIterator<Item = F>
Iterator that outputs padding field elements.
Required Methods
fn initial_capacity_element() -> F
fn initial_capacity_element() -> F
The initial capacity element, encoding this domain.