pub struct BLS2Params;Expand description
Poseidon sponge hash function parameters for FpBLS12 field instance with
state size of 2.
Trait Implementations§
Source§impl PoseidonParams<Fp<BLS12Param, {
usize::div_ceil(
$bits,
$crate::arithmetic::limb::Limb::BITS as usize,
)
}>> for BLS2Params
impl PoseidonParams<Fp<BLS12Param, { usize::div_ceil( $bits, $crate::arithmetic::limb::Limb::BITS as usize, ) }>> for BLS2Params
Source§const CAPACITY: usize = 1usize
const CAPACITY: usize = 1usize
Capacity of the sponge construction.
Determines the number of elements not affected directly by input
or not reflected in the output of the sponge hash function.
Source§const MAT_INTERNAL_DIAG_M_1: &'static [FpBLS12]
const MAT_INTERNAL_DIAG_M_1: &'static [FpBLS12]
MDS (Maximum Distance Separable) matrix used in the Poseidon
permutation.
Source§const ROUND_CONSTANTS: &'static [&'static [FpBLS12]]
const ROUND_CONSTANTS: &'static [&'static [FpBLS12]]
The round constants used in the full and partial rounds of the Poseidon
permutation.
Auto Trait Implementations§
impl Freeze for BLS2Params
impl RefUnwindSafe for BLS2Params
impl Send for BLS2Params
impl Sync for BLS2Params
impl Unpin for BLS2Params
impl UnwindSafe for BLS2Params
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more