Type Alias Plonky3Poseidon2Air

Source
pub type Plonky3Poseidon2Air<F, LinearLayers, const SBOX_REGISTERS: usize> = Poseidon2Air<F, LinearLayers, POSEIDON2_WIDTH, BABY_BEAR_POSEIDON2_SBOX_DEGREE, SBOX_REGISTERS, BABY_BEAR_POSEIDON2_HALF_FULL_ROUNDS, BABY_BEAR_POSEIDON2_PARTIAL_ROUNDS>;

Aliased Type§

struct Plonky3Poseidon2Air<F, LinearLayers, const SBOX_REGISTERS: usize> { /* private fields */ }

Implementations

Source§

impl<F, LinearLayers, const WIDTH: usize, const SBOX_DEGREE: u64, const SBOX_REGISTERS: usize, const HALF_FULL_ROUNDS: usize, const PARTIAL_ROUNDS: usize> Poseidon2Air<F, LinearLayers, WIDTH, SBOX_DEGREE, SBOX_REGISTERS, HALF_FULL_ROUNDS, PARTIAL_ROUNDS>
where F: Field,

Source

pub fn new( constants: RoundConstants<F, WIDTH, HALF_FULL_ROUNDS, PARTIAL_ROUNDS>, ) -> Poseidon2Air<F, LinearLayers, WIDTH, SBOX_DEGREE, SBOX_REGISTERS, HALF_FULL_ROUNDS, PARTIAL_ROUNDS>

Trait Implementations

Source§

impl<AB, LinearLayers, const WIDTH: usize, const SBOX_DEGREE: u64, const SBOX_REGISTERS: usize, const HALF_FULL_ROUNDS: usize, const PARTIAL_ROUNDS: usize> Air<AB> for Poseidon2Air<<AB as AirBuilder>::F, LinearLayers, WIDTH, SBOX_DEGREE, SBOX_REGISTERS, HALF_FULL_ROUNDS, PARTIAL_ROUNDS>
where AB: AirBuilder, LinearLayers: GenericPoseidon2LinearLayers<<AB as AirBuilder>::Expr, WIDTH>,

Source§

fn eval(&self, builder: &mut AB)

Source§

impl<F, LinearLayers, const WIDTH: usize, const SBOX_DEGREE: u64, const SBOX_REGISTERS: usize, const HALF_FULL_ROUNDS: usize, const PARTIAL_ROUNDS: usize> BaseAir<F> for Poseidon2Air<F, LinearLayers, WIDTH, SBOX_DEGREE, SBOX_REGISTERS, HALF_FULL_ROUNDS, PARTIAL_ROUNDS>
where F: Field, LinearLayers: Sync,

Source§

fn width(&self) -> usize

The number of columns (a.k.a. registers) in this AIR.
Source§

fn preprocessed_trace(&self) -> Option<DenseMatrix<F>>

Source§

impl<F, LinearLayers, const WIDTH: usize, const SBOX_DEGREE: u64, const SBOX_REGISTERS: usize, const HALF_FULL_ROUNDS: usize, const PARTIAL_ROUNDS: usize> Debug for Poseidon2Air<F, LinearLayers, WIDTH, SBOX_DEGREE, SBOX_REGISTERS, HALF_FULL_ROUNDS, PARTIAL_ROUNDS>
where F: Debug + Field, LinearLayers: Debug,

Source§

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

Formats the value using the given formatter. Read more