pub struct BLS4Params;Expand description
Poseidon sponge hash function parameters for FpBLS12 field instance with
Trait Implementations§
Source§impl PoseidonParams<Fp<BLS12Param, {
usize::div_ceil(
$bits,
$crate::arithmetic::limb::Limb::BITS as usize,
)
}>> for BLS4Params
impl PoseidonParams<Fp<BLS12Param, { usize::div_ceil( $bits, $crate::arithmetic::limb::Limb::BITS as usize, ) }>> for BLS4Params
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 BLS4Params
impl RefUnwindSafe for BLS4Params
impl Send for BLS4Params
impl Sync for BLS4Params
impl Unpin for BLS4Params
impl UnwindSafe for BLS4Params
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