Type Alias Poseidon2InternalLayerBabyBear

Source
pub type Poseidon2InternalLayerBabyBear<const WIDTH: usize> = Poseidon2InternalLayerMonty31<BabyBearParameters, WIDTH, BabyBearInternalLayerParameters>;

Aliased Type§

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

Trait Implementations

Source§

impl<MP, const WIDTH: usize, ILP> Clone for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
where MP: Clone + MontyParameters, ILP: Clone + InternalLayerBaseParameters<MP, WIDTH>,

Source§

fn clone(&self) -> Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<MP, const WIDTH: usize, ILP> Debug for Poseidon2InternalLayerMonty31<MP, WIDTH, ILP>
where MP: Debug + MontyParameters, ILP: Debug + InternalLayerBaseParameters<MP, WIDTH>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<FP, const WIDTH: usize, P2P, const D: u64> InternalLayer<MontyField31<FP>, WIDTH, D> for Poseidon2InternalLayerMonty31<FP, WIDTH, P2P>
where FP: FieldParameters, P2P: InternalLayerParameters<FP, WIDTH>,

Source§

fn permute_state(&self, state: &mut [MontyField31<FP>; WIDTH])

Perform the internal layers of the Poseidon2 permutation on the given state.

Source§

impl<FP, ILP, const WIDTH: usize, const D: u64> InternalLayer<PackedMontyField31Neon<FP>, WIDTH, D> for Poseidon2InternalLayerMonty31<FP, WIDTH, ILP>
where FP: FieldParameters, ILP: InternalLayerBaseParameters<FP, WIDTH>,

Source§

fn permute_state(&self, state: &mut [PackedMontyField31Neon<FP>; WIDTH])

Perform the internal layers of the Poseidon2 permutation on the given state.

Source§

impl<FP, const WIDTH: usize, ILP> InternalLayerConstructor<PackedMontyField31Neon<FP>> for Poseidon2InternalLayerMonty31<FP, WIDTH, ILP>
where FP: FieldParameters, ILP: InternalLayerBaseParameters<FP, WIDTH>,

Source§

fn new_from_constants( internal_constants: Vec<MontyField31<FP>>, ) -> Poseidon2InternalLayerMonty31<FP, WIDTH, ILP>

A constructor which internally will convert the supplied constants into the appropriate form for the implementation.