BLS2Params

Struct BLS2Params 

Source
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

Source§

const T: usize = 2usize

State size.
Source§

const D: u8 = 5u8

Sbox degree.
Source§

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 ROUNDS_F: usize = 8usize

Number of full rounds.
Source§

const ROUNDS_P: usize = 56usize

Number of partial rounds.
Source§

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]]

The round constants used in the full and partial rounds of the Poseidon permutation.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.