Poseidon2Goldilocks

Type Alias Poseidon2Goldilocks 

Source
pub type Poseidon2Goldilocks<const WIDTH: usize> = Poseidon2<<Goldilocks as Field>::Packing, Poseidon2ExternalLayerGoldilocks<WIDTH>, Poseidon2InternalLayerGoldilocks, WIDTH, GOLDILOCKS_S_BOX_DEGREE>;
Expand description

An implementation of the Poseidon2 hash function for the Goldilocks field.

It acts on arrays of the form [Goldilocks; WIDTH]. Currently the internal layers are unoptimized. These could be sped up in a similar way to how it was done for Monty31 fields.

Aliased Typeยง

pub struct Poseidon2Goldilocks<const WIDTH: usize> { /* private fields */ }