pub type Poseidon2BabyBear<const WIDTH: usize> = Poseidon2<<BabyBear as Field>::Packing, Poseidon2ExternalLayerBabyBear<WIDTH>, Poseidon2InternalLayerBabyBear<WIDTH>, WIDTH, BABYBEAR_S_BOX_DEGREE>;
Expand description
An implementation of the Poseidon2 hash function specialised to run on the current architecture.
It acts on arrays of the form either [BabyBear::Packing; WIDTH]
or [BabyBear; WIDTH]
. For speed purposes,
wherever possible, input arrays should of the form [BabyBear::Packing; WIDTH]
.
Aliased Typeยง
struct Poseidon2BabyBear<const WIDTH: usize> { /* private fields */ }