pub struct Poseidon2ParamsBls2;
Expand description
Poseidon parameters for Bls12-381 scalar field, with
- state size = $state_size
- sbox size = $sbox_size
- external rounds = $ext_rounds
- internal rounds = $int_rounds
Trait Implementations§
Source§impl Clone for Poseidon2ParamsBls2
impl Clone for Poseidon2ParamsBls2
Source§fn clone(&self) -> Poseidon2ParamsBls2
fn clone(&self) -> Poseidon2ParamsBls2
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Poseidon2ParamsBls2
impl Debug for Poseidon2ParamsBls2
Source§impl Poseidon2Params<Fp<MontBackend<FrConfig, 4>, 4>, 2> for Poseidon2ParamsBls2
impl Poseidon2Params<Fp<MontBackend<FrConfig, 4>, 4>, 2> for Poseidon2ParamsBls2
Source§const EXT_ROUNDS: usize = 8usize
const EXT_ROUNDS: usize = 8usize
round_F: number of external rounds (incl. initial and terminal)
round_F = 2 * round_f
Source§const INT_ROUNDS: usize = 56usize
const INT_ROUNDS: usize = 56usize
round_P: number of internal rounds
Source§fn external_rc() -> &'static [[Fr; 2]]
fn external_rc() -> &'static [[Fr; 2]]
round constants for all external rounds
Source§fn internal_rc() -> &'static [Fr] ⓘ
fn internal_rc() -> &'static [Fr] ⓘ
round constants for internal rounds
Source§fn internal_mat_diag_m_1() -> &'static [Fr; 2]
fn internal_mat_diag_m_1() -> &'static [Fr; 2]
diffusion (diagonal) matrix minus one used in internal rounds
Source§fn sanity_check() -> bool
fn sanity_check() -> bool
A default sanity check on the parameters and constant getters Read more
Auto Trait Implementations§
impl Freeze for Poseidon2ParamsBls2
impl RefUnwindSafe for Poseidon2ParamsBls2
impl Send for Poseidon2ParamsBls2
impl Sync for Poseidon2ParamsBls2
impl Unpin for Poseidon2ParamsBls2
impl UnwindSafe for Poseidon2ParamsBls2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more