Expand description
This is a wrapper around the Plonky3 p3_poseidon2_air used only for integration convenience to get around some complications with field-specific generics associated with Poseidon2. Currently it is only intended for use in OpenVM with BabyBear.
We do not recommend external use of this crate, and suggest using the p3_poseidon2_air crate directly.
Re-exports§
pub use openvm_stark_sdk::p3_baby_bear;
pub use p3_poseidon2;
pub use p3_poseidon2_air;
pub use p3_symmetric;
Structs§
- This type needs to implement GenericPoseidon2LinearLayers generic in F so that our Poseidon2SubAir can also be generic in F, but in reality each implementation of this struct’s functions should be field specific. To circumvent this, Poseidon2LinearLayers is generic in F but currently requires that F is BabyBear.
- Assumes the field size is at least 16 bits.
SBOX_REGISTERS
affects the max constraint degree of the AIR. See p3_poseidon2_air for more details.
Enums§
Constants§
Traits§
- A permutation in the mathematical sense.